PHPackages                             php-stubs/wordpress-tests-stubs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. php-stubs/wordpress-tests-stubs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

php-stubs/wordpress-tests-stubs
===============================

WordPress Tests function and class declaration stubs for static analysis.

v7.0.0(2w ago)51.6M—2.5%20MITPHPCI passing

Since Nov 8Pushed 2w ago2 watchersCompare

[ Source](https://github.com/php-stubs/wordpress-tests-stubs)[ Packagist](https://packagist.org/packages/php-stubs/wordpress-tests-stubs)[ Docs](https://github.com/php-stubs/wordpress-tests-stubs)[ RSS](/packages/php-stubs-wordpress-tests-stubs/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (300)Used By (20)

WordPress Core Test Suite Stubs
===============================

[](#wordpress-core-test-suite-stubs)

This package provides stub declarations for [the WordPress Core Test Suite](https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/) functions, classes and interfaces.

These stubs can help plugin and theme developers leverage static analysis tools like [PHPStan](https://github.com/phpstan/phpstan), when writing tests for WordPress plugins, themes, and core.

Stubs are generated directly from the [source](https://github.com/wordpress/wordpress-develop) using [giacocorsiglia/stubs-generator](https://github.com/GiacoCorsiglia/php-stubs-generator).

### Requirements

[](#requirements)

- PHP &gt;=7.4

### Installation

[](#installation)

Require this package as a development dependency with [Composer](https://getcomposer.org).

```
composer require --dev php-stubs/wordpress-tests-stubs
```

Alternatively you may download `wordpress-tests-stubs.php` directly.

### Usage in PHPStan

[](#usage-in-phpstan)

Include all stubs in PHPStan configuration file.

```
parameters:
    scanFiles:
        - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
        - %rootDir%/../../php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php
```

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance97

Actively maintained with recent releases

Popularity44

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 54.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Recently: every ~0 days

Total

299

Last Release

15d ago

Major Versions

v5.9.9 → v6.0.62024-02-26

v5.9.10 → v6.0.82024-07-17

v5.9.12 → v6.0.102025-10-04

v5.9.13 → v6.0.122026-05-25

v6.9.4 → v7.0.02026-05-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/135d8104cdf926e2b15b6a06413153a9582729f0cd48ccba7bc7e62878a39781?d=identicon)[szepeviktor](/maintainers/szepeviktor)

---

Top Contributors

[![swissspidy](https://avatars.githubusercontent.com/u/841956?v=4)](https://github.com/swissspidy "swissspidy (179 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (150 commits)")[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (2 commits)")

---

Tags

PHPStanwordpressstatic analysis

### Embed Badge

![Health badge](/badges/php-stubs-wordpress-tests-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/php-stubs-wordpress-tests-stubs/health.svg)](https://phpackages.com/packages/php-stubs-wordpress-tests-stubs)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.4k](/packages/larastan-larastan)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3309.4M1.2k](/packages/szepeviktor-phpstan-wordpress)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

74767.9k76](/packages/php-stubs-acf-pro-stubs)[staabm/phpstan-dba

2922.5M2](/packages/staabm-phpstan-dba)[staabm/phpstan-todo-by

2002.0M76](/packages/staabm-phpstan-todo-by)[staabm/phpstan-baseline-analysis

84105.7k1](/packages/staabm-phpstan-baseline-analysis)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
