wp-test-analyzer

Analyze WordPress theme PHP files to extract testable elements for E2E test generation.

25 stars

Best use case

wp-test-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Analyze WordPress theme PHP files to extract testable elements for E2E test generation.

Teams using wp-test-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/wp-test-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/ComeOnOliver/skillshub/main/skills/aiskillstore/marketplace/crazyswami/wp-test-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/wp-test-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How wp-test-analyzer Compares

Feature / Agentwp-test-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

running-load-tests

25
from ComeOnOliver/skillshub

Create and execute load tests for performance validation using k6, JMeter, and Artillery. Use when validating application performance under load conditions or identifying bottlenecks. Trigger with phrases like "run load test", "create stress test", or "validate performance under load".

responsive-breakpoint-analyzer

25
from ComeOnOliver/skillshub

Responsive Breakpoint Analyzer - Auto-activating skill for Frontend Development. Triggers on: responsive breakpoint analyzer, responsive breakpoint analyzer Part of the Frontend Development skill category.

response-time-analyzer

25
from ComeOnOliver/skillshub

Response Time Analyzer - Auto-activating skill for Performance Testing. Triggers on: response time analyzer, response time analyzer Part of the Performance Testing skill category.

tracking-regression-tests

25
from ComeOnOliver/skillshub

This skill enables Claude to track and run regression tests, ensuring new changes don't break existing functionality. It is triggered when the user asks to "track regression", "run regression tests", or uses the shortcut "reg". The skill helps in maintaining code stability by identifying critical tests, automating their execution, and analyzing the impact of changes. It also provides insights into test history and identifies flaky tests. The skill uses the `regression-test-tracker` plugin.

pytest-test-generator

25
from ComeOnOliver/skillshub

Pytest Test Generator - Auto-activating skill for Test Automation. Triggers on: pytest test generator, pytest test generator Part of the Test Automation skill category.

property-based-test-helper

25
from ComeOnOliver/skillshub

Property Based Test Helper - Auto-activating skill for Test Automation. Triggers on: property based test helper, property based test helper Part of the Test Automation skill category.

performance-testing

25
from ComeOnOliver/skillshub

This skill enables Claude to design, execute, and analyze performance tests using the performance-test-suite plugin. It is activated when the user requests load testing, stress testing, spike testing, or endurance testing, and when discussing performance metrics such as response time, throughput, and error rates. It identifies performance bottlenecks related to CPU, memory, database, or network issues. The plugin provides comprehensive reporting, including percentiles, graphs, and recommendations.

percentile-analyzer

25
from ComeOnOliver/skillshub

Percentile Analyzer - Auto-activating skill for Performance Testing. Triggers on: percentile analyzer, percentile analyzer Part of the Performance Testing skill category.

performing-penetration-testing

25
from ComeOnOliver/skillshub

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a "penetration test", "pentest", "vulnerability assessment", or asks to "exploit" a web application. It provides comprehensive reporting on identified security flaws.

penetration-test-planner

25
from ComeOnOliver/skillshub

Penetration Test Planner - Auto-activating skill for Security Advanced. Triggers on: penetration test planner, penetration test planner Part of the Security Advanced skill category.

password-strength-analyzer

25
from ComeOnOliver/skillshub

Password Strength Analyzer - Auto-activating skill for Security Fundamentals. Triggers on: password strength analyzer, password strength analyzer Part of the Security Fundamentals skill category.

network-latency-tester

25
from ComeOnOliver/skillshub

Network Latency Tester - Auto-activating skill for Performance Testing. Triggers on: network latency tester, network latency tester Part of the Performance Testing skill category.