wordpress-testing-qa

wordpress-testing-qa is a skill for Claude Code from bobmatnyc/claude-mpm-skills. It costs 31 tokens per session (12,915 once invoked), scanned A, original, MIT.

A guide to testing WordPress plugins and themes with unit tests, integration tests, coding checks, and continuous integration. Unit tests check isolated code, while integration tests check how code works with WordPress and its database.

In plain words
What is it for?
Use it to set up PHPUnit, write WP_Mock unit tests, test database and hook behavior, run PHPCS with WordPress standards, and automate checks in CI.
Why use it?
It helps catch broken behavior early and keeps code aligned with WordPress standards. It explains when to test pure PHP logic separately and when to load WordPress or use browser workflows.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # Syntax: bash bin/install-wp-tests.sh <db-name> <db-user> <db-pass> <db-host> <wp-version>.

not rated 79repo +1 4mo ago A scan Socket: passSnyk: passSkillSpector: pass 31 tokens original MIT

Good fit Use it to set up PHPUnit, write WP_Mock unit tests, test database and hook behavior, run PHPCS with WordPress standards, and automate checks in CI.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/claude-mpm-skills
agentmods
npx agentmods add skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wordpress-testing-qa

README.md
[![agentmods](https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa/github.svg)](https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa)
Your own site
<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wordpress-testing-qa

Your own site · 80×15
<a href="https://agentmods.dev/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa"><img src="https://agentmods.dev/badge/skills/bobmatnyc/claude-mpm-skills/wordpress-testing-qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,915 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 20 Apr 2026
  • Snyk pass 20 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.12915
Opus 5.5 $0.00012 $0.05166
Sonnet 5.5 $0.00006 $0.02583
Haiku 4.5 $0.00003 $0.01291

Measured 3mo ago against content hash 23ec8dbe9458, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wordpress-testing-qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

toolchains/php/frameworks/wordpress/wordpress-testing-qa/SKILL.md · 1,970 lines

How it starts

The opening of the file, as written. The whole thing — 1,970 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Test Distribution Guidelines:

  • Unit Tests (60%): Fast, isolated, no WordPress
    • Pure PHP functions
    • Class methods with clear inputs/outputs
    • Business logic without side effects
  • Integration Tests (30%): WordPress-loaded tests
    • Database operations
    • Hook/filter interactions
    • Custom post type registration
    • Settings API functionality
  • E2E Tests (10%): Browser automation
    • Critical user workflows
    • Admin panel interactions
    • Frontend form submissions

When to Use PHPUnit vs WP_Mock

Use PHPUnit (Integration Tests) when:

  • ✅ Testing database operations ($wpdb, post creation, meta data)
  • ✅ Testing WordPress hooks (actions/filters actually firing)
  • ✅ Testing template rendering and output
  • ✅ Testing plugin activation/deactivation logic
  • ✅ Testing with actual WordPress functions

Use WP_Mock (Unit Tests) when:

  • ✅ Testing pure business logic
  • ✅ Testing functions that call WordPress functions but logic is independent
  • ✅ Need fast test execution (no database setup)
  • ✅ Testing in isolation without side effects
  • ✅ Mocking external API calls

Read the full file on GitHub · 1,970 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 1,970 lines · 31 tokens per session scan A 23ec8dbe9458

Subscribe to this mod's changes

wordpress-testing-qa is a skill published in the GitHub repository bobmatnyc/claude-mpm-skills (79 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 12,915 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

wordpress-testing-qa compared with skills from other repositories

wordpress-testing-qa next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wordpress-testing-qabobmatnyc/claude-mpm-skillsSkill794mo agoMITA31Claude Code
test-migrationpetrkindlmann/qa-skillsSkill31113d agoMITA178Claude Code, Codex
cloudflare-workers-testingsecondsky/claude-skillsSkill2578d agoMITA57Claude Code
unit-testingpetrkindlmann/qa-skillsSkill31113d agoMITA174Claude Code, Codex
Code Coverage AnalysisPramodDutta/qaskillsSkill25227d agoMITA45Claude Code, Codex
matlab-testing-ciwzyn20051216/matlab-agent-skillsSkill371mo agoMITA62Claude Code, Codex
matlab-run-testsmatlab/matlab-agentic-toolkitSkill1.4k4d agononeA96Claude Code