orbit-qa-coverage

Analyze WordPress plugin code coverage during PHPUnit test execution.

2|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/adityaarsharma/orbit --skill orbit-qa-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orbit-qa-coverage
Source: https://github.com/adityaarsharma/orbit/tree/main/skills/orbit-qa-coverage
Command: npx skills add https://github.com/adityaarsharma/orbit --skill orbit-qa-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ensures thorough testing and code quality by automatically measuring the line, branch, and function coverage of a WordPress plugin using PHPUnit and Xdebug or pcov.

Core Features & Use Cases

  • Automated Code Coverage Analysis: Measures line, branch, and function coverage to identify untested parts of code.
  • Uncovered File Ranking: Provides a list of the largest uncovered files for prioritized testing.
  • Integration with PHPUnit: Enhances existing test frameworks by integrating coverage reports into test execution.
  • Use Case: Ideal for plugin developers seeking to improve code coverage before release to catch gaps in their tests.

Quick Start

Analyze code coverage by executing the command:

vendor/bin/phpunit --coverage-html reports/coverage --coverage-text

Frequently Asked Questions about orbit-qa-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure WordPress plugin code coverage using PHPUnit?

Measure WordPress plugin code coverage by executing PHPUnit with coverage flags like --coverage-html and --coverage-text to generate detailed reports on line, branch, and function execution during test suite runs.

What is automated code coverage analysis for WordPress plugins?

Automated code coverage analysis identifies untested parts of a plugin by measuring executed lines, branches, and functions during test suite execution, ensuring thorough testing and improving code quality before release.

Do I need Xdebug or pcov to track line and branch coverage in WordPress?

Yes, you need Xdebug or pcov to track line and branch coverage in WordPress, as these PHP extensions provide the underlying code execution tracking required by PHPUnit to generate accurate coverage reports.

How do I find untested files in my WordPress plugin?

Find untested files by analyzing code coverage reports that rank the largest uncovered files, allowing you to prioritize writing tests for specific code gaps and improve overall test completeness.

Can I integrate code coverage reports into my existing PHPUnit test framework?

Yes, you can integrate code coverage reports into your existing PHPUnit test framework by running the test suite with coverage parameters, which enhances your current setup by outputting text and HTML coverage metrics.