PHPackages                             wpstarter/wp-testbench - 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. wpstarter/wp-testbench

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

wpstarter/wp-testbench
======================

A tool to set up a WordPress test environment for PHPUnit testing

v1.0.2(3y ago)32.7k↓80%11MITPHPPHP ^7.3|^8.0

Since Jun 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wpstarter/wp-testbench)[ Packagist](https://packagist.org/packages/wpstarter/wp-testbench)[ Docs](https://github.com/as247)[ RSS](/packages/wpstarter-wp-testbench/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

About WpTestbench
-----------------

[](#about-wptestbench)

WpTestbench is a tool used to set up a WordPress test environment for PHPUnit testing, in order to test your plugin.

Installation
------------

[](#installation)

Install testbench via composer

```
composer require wpstarter/wp-testbench --dev

```

Install WordPress

```
./vendor/bin/wp-testbench-install   [db-pass] [db-host] [wp-version] [--skip-database-creation]

```

Update phpunit.xml

```

    ...

        ...

```

Custom wp-config.php

```

```

That's all then you can run the PHPUnit test

```
./vendor/bin/phpunit

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

1125d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2641656?v=4)[as247](/maintainers/as247)[@as247](https://github.com/as247)

---

Top Contributors

[![as247](https://avatars.githubusercontent.com/u/2641656?v=4)](https://github.com/as247 "as247 (42 commits)")

---

Tags

phpunittesttestingtesting-toolsunittestwordpresstestingphpunitunittestwordpress

### Embed Badge

![Health badge](/badges/wpstarter-wp-testbench/health.svg)

```
[![Health](https://phpackages.com/badges/wpstarter-wp-testbench/health.svg)](https://phpackages.com/packages/wpstarter-wp-testbench)
```

###  Alternatives

[yoast/wp-test-utils

PHPUnit cross-version compatibility layer for testing plugins and themes build for WordPress

622.6M88](/packages/yoast-wp-test-utils)[albertcht/lumen-testing

Testing Suite For Lumen like Laravel does.

4335.9k1](/packages/albertcht-lumen-testing)[sofa/eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit

10107.6k](/packages/sofa-eloquent-testsuite)

PHPackages © 2026

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