wp-unit
Enables you to create unit tests for your plugins, run and check the results in a centralized way. Since version 2.0 it has phpunit bundled in so all you need to get started with unit testing is to install this plugin.
Consider an alternative
wp-unit shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in 15 years
- Only tested up to WordPress 3.0 (latest is 7.1)
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where wp-unit stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| phpunit | >100 |
| unit testing | >100 |
Version adoption
Share of active sites per release.
About wp-unit
From the official readme · v1.0Description
Enables you to create unit tests for your plugins, run and check the results in a centralized way.
Since version 2.0 it has phpunit bundled in so all you need to get started with unit testing is to install this plugin.
Its based on the WordPress automated system but distributed as a plugin. Also it does not require a new database and a new configuration file so when you create your unit tests pay special attention to your database access so you keep a consistent database.
Every unit test must extend PHPUnit_Framework_TestCase and be included in the testcase directory you will find under the wp-unit plugin directory.
To run the tests go to the Unit Testing menu in the admin panel and press the Run buttom. The results will be displayed on the same page.
Feel free to give us some feedback.
Installation
- Inside the WordPress admin, go to Plugins > Add New and search for ‘wp-unit’.
- Click ‘Install’.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
wp-unit: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is wp-unit free?
Yes. wp-unit is free to download and use from the official WordPress.org plugin directory.
Is wp-unit safe to use in 2026?
wp-unit shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 16 years ago, and scores 23/100 on our health check.
How many websites use wp-unit?
wp-unit is active on 10+ WordPress websites and has been downloaded 4,485 times since it launched in January 2011. It was downloaded 147 times in the last 30 days.
Does wp-unit work with WordPress 7.1?
wp-unit is officially tested up to WordPress 3.0.5, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was wp-unit last updated?
The latest version, 1.0, was released on January 26, 2011 (16 years ago).
Who makes wp-unit?
wp-unit is developed and maintained by Ana Aires.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
