wp-test-analyzer
Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
Best use case
wp-test-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "wp-test-analyzer" skill to help with this workflow task. Context: Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/wp-test-analyzer/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How wp-test-analyzer Compares
| Feature / Agent | wp-test-analyzer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# WordPress Test Analyzer Skill
Analyze WordPress theme PHP files to extract testable elements for E2E test generation.
## Usage
Invoke this skill when you need to analyze a WordPress theme for E2E testing:
- "Analyze the theme at /path/to/theme for testable elements"
- "Generate test cases for this WordPress theme"
- "What should I test in this WordPress site?"
## Arguments
- `theme_path` (required): Path to the WordPress theme directory
## Workflow
1. Run the analyzer script on the theme directory
2. Review the JSON output of testable elements
3. Use the output to generate Playwright test files
## Testable Elements Extracted
### Forms
- Form action URLs and methods
- Input fields (name, type, required)
- Submit buttons
- Nonce fields (WordPress security)
- Success/error message patterns
### Navigation
- Menu structures
- Internal links
- External links
- Anchor links
### Dynamic Content
- WP_Query loops
- Conditional displays (if/else)
- Post meta fields
- Custom post types
### JavaScript Interactions
- onclick handlers
- Class toggles
- Data attributes
- Event listeners mentioned in PHP
### WordPress-Specific
- Custom post types
- Meta boxes
- Theme options
- AJAX hooks
## Example Output
```json
{
"forms": [
{
"file": "page-contact.php",
"action": "POST to self",
"fields": [
{"name": "first_name", "type": "text", "required": true},
{"name": "email", "type": "email", "required": true},
{"name": "message", "type": "textarea", "required": true}
],
"nonce": "csr_contact_nonce",
"success_param": "?contact=success",
"error_param": "?contact=error"
}
],
"pages": [
{
"file": "index.php",
"template": "Home",
"sections": ["hero", "philosophy", "featured_works"],
"animations": ["initHomePage"]
}
],
"custom_post_types": ["property"],
"navigation": {
"primary": ["Home", "About", "Portfolio", "Contact"],
"footer": ["Privacy Policy", "Terms of Service"]
}
}
```
## Running the Analyzer
```bash
python3 /root/.claude/skills/wp-test-analyzer/analyze.py /path/to/theme
```Related Skills
testing-strategies
Design comprehensive testing strategies for software quality assurance. Use when planning test coverage, implementing test pyramids, or setting up testing infrastructure. Handles unit testing, integration testing, E2E testing, TDD, and testing best practices.
backend-testing
Write comprehensive backend tests including unit tests, integration tests, and API tests. Use when testing REST APIs, database operations, authentication flows, or business logic. Handles Jest, Pytest, Mocha, testing strategies, mocking, and test coverage.
qa-test-planner
Generate comprehensive test plans, manual test cases, regression test suites, and bug reports for QA engineers. Includes Figma MCP integration for design validation.
game-test-case-generator
基于需求文档(xls/csv)生成专业游戏测试用例,支持完整用例和快速测试点两种模式。当用户提到"游戏测试"、"测试用例生成"、"需求转测试用例"、上传需求文档或原型时使用此技能。
wordpress-penetration-testing
This skill should be used when the user asks to "pentest WordPress sites", "scan WordPress for vulnerabilities", "enumerate WordPress users, themes, or plugins", "exploit WordPress vulnerabilities", or "use WPScan". It provides comprehensive WordPress security assessment methodologies.
web3-testing
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.
web-security-testing
Web application security testing workflow for OWASP Top 10 vulnerabilities including injection, XSS, authentication flaws, and access control issues.
unit-testing-test-generate
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
testing-qa
Comprehensive testing and QA workflow covering unit testing, integration testing, E2E testing, browser automation, and quality assurance.
test-fixing
Run tests and systematically fix all failing tests using smart error grouping. Use when user asks to fix failing tests, mentions test failures, runs test suite and failures occur, or requests to make tests pass.
test-automator
Master AI-powered test automation with modern frameworks, self-healing tests, and comprehensive quality engineering. Build scalable testing strategies with advanced CI/CD integration. Use PROACTIVELY for testing automation or quality assurance.
temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.