Skip to content
bobmatnyc avatar

Wordpress Testing Qa

Test WordPress plugins and themes with PHPUnit integration tests, WP_Mock unit tests, and PHPCS standards.

CCM score
55 of 100
skills.sh installs
449
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the testing pyramid, when to choose PHPUnit versus WP_Mock, and minimum coverage targets for new and critical code
  • Includes PHPUnit setup with wp scaffold plugin-tests, install-wp-tests.sh, a phpunit.xml.dist config, and a bootstrap file
  • Demonstrates WP_UnitTestCase tests using factory objects to create posts, users, and meta data
  • Designed for plugin and theme developers who need WordPress-loaded tests alongside fast isolated unit tests

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill wordpress-testing-qa -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WordPress Testing & Quality Assurance


progressive_disclosure: entry_point: summary: "WordPress plugin and theme testing with PHPUnit, WP_Mock, PHPCS, and CI/CD for quality assurance" when_to_use: - "Testing WordPress plugins with PHPUnit integration tests" - "Unit testing without loading WordPress core (WP_Mock)" - "Enforcing coding standards with PHPCS" quick_start: - "Set up PHPUnit with WordPress test suite" - "Write unit tests with WP_Mock" - "Configure PHPCS with WPCS ruleset"

Testing Strategy

Testing Pyramid for WordPress

The WordPress Testing Hierarchy:

       /\
      /  \     E2E Tests (Playwright)
     /    \    - Full user workflows
    /------\   - Browser automation
   /        \
  /  INTEG  \  Integration Tests (PHPUnit + WordPress)
 /    TESTS  \ - Database operations
/            \ - Hook interactions
--------------
 UNIT TESTS    Unit Tests (WP_Mock)
               - Pure logic
               - No WordPress dependency

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Testing & QA, PHP & Laravel
First seen
Jun 3, 2026

Questions

What does the wordpress-testing-qa skill help with?

The wordpress-testing-qa skill covers WordPress plugin and theme testing with PHPUnit integration tests, WP_Mock unit tests, PHPCS coding standards, and CI/CD workflows. It guides when to use PHPUnit versus WP_Mock and sets test coverage goals for new code and critical paths.

How do I install the wordpress-testing-qa skill?

Run npx -y skills add bobmatnyc/claude-mpm-skills --skill wordpress-testing-qa -y in your project. Once installed, the agent gains the WordPress testing guidance from this skill's SKILL.md.

Which skills lead the Testing & QA category alongside wordpress-testing-qa?

The other top skills in the Testing & QA category include tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. wordpress-testing-qa is narrower, focusing specifically on WordPress plugins and themes rather than general test practice.

Does wordpress-testing-qa set up the WordPress test suite for me?

The skill walks through the setup steps, including installing PHPUnit and yoast/phpunit-polyfills with Composer, scaffolding tests with WP-CLI, and running bin/install-wp-tests.sh against a test database. It also shows a phpunit.xml.dist configuration and a tests/bootstrap.php file.

More from bobmatnyc/claude-mpm-skills

All 154

Similar to Wordpress Testing Qa

More Testing & QA