Skip to content

WP Mutate

Run mutation testing on WordPress plugins and themes to find weak tests — Pest —mutate or Infection for PHP, StrykerJS for JavaScript — then triage surviving mutants into concrete test improvements.

  • Version: 1.0.0
  • Compatibility: WordPress plugin/theme projects with an existing PHP test suite (Pest 3+ or PHPUnit) and/or JS tests (Vitest or Jest). Requires Xdebug 3+ with coverage mode or PCOV for PHP.
Terminal window
npx skills add soderlind/skills --skill wp-mutate -g

Use this skill when:

  • Test coverage looks healthy but bugs still ship.
  • You want to know whether tests actually assert behaviour or just execute lines.
  • You need evidence that security controls (capability checks, nonces, sanitization) are genuinely tested.
  • You want a regression ratchet on test quality, not just test quantity.

Do not use this skill to create a test suite from scratch. If there are no tests, stop and point the user at prepare-wordpress.