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 74repo 1mo 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 $0.00015 $0.06457
Sonnet 5 $0.00006 $0.02583
Haiku 4.5 $0.00003 $0.01291

Measured 10d ago against content hash 23ec8dbe9458, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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. 10d 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 (74 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 12,915 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

cloudflare-workers-testing

Comprehensive testing guide for Cloudflare Workers using Vitest and @cloudflare/vitest-pool-workers. Use for test setup, binding mocks (D1/KV/R2/DO), integration tests, or encountering test failures, mock errors, coverage issues.

secondsky/claude-skills · 57 tokens

Code Coverage Analysis

Measure and enforce test coverage with Istanbul/nyc, c8, Jest, and Vitest. Covers branch versus line coverage, per-directory thresholds, CI gates, and correctly excluding generated code from reports.

PramodDutta/qaskills · 45 tokens

code-qualities-assessment

Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance. Use when you ask to "assess…

rjmurillo/ai-agents · 108 tokens

qa-ci-cd-testing

Guidance for adding automated tests to a CI/CD pipeline, the process that checks and delivers software changes.

Kokxi/qa-test-skills · 135 tokens

jenkins-groovy-scripting-best-practices

Covers writing safe, testable Groovy inside Jenkins pipelines and shared libraries — the script security sandbox and approval workflow, unit testing with JenkinsPipelineUnit, CPS (Continuation-Passing Style) quirks, and common Groovy pitfalls specific to the pipeline execution context. Use when the user hits "script…

selvarajmurugesan90/ops-engineering-skills · 116 tokens

creo-test

Testing orchestration that routes to unit test and E2E test subagents. Manages test plans, coverage tracking, and coordinates test execution across the full stack. Supports Vitest/Jest for unit tests and Playwright for E2E tests. Trigger keywords: test, unit test, e2e test, end to end, test plan, test coverage…

oyusypenko/creo · 82 tokens