brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
WordPress performance code review and optimization analysis. Use when reviewing WordPress PHP code for performance issues, auditing themes/plugins for scalability, optimizing WP_Query, analyzing caching strategies, checking code before launch, or detecting anti-patterns, or when
Claude Code
$ npx -y skills add elvismdev/claude-wordpress-skills --skill wp-performance-review --agent claude-code
Codex
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a codex -y
Cursor
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a cursor -y
Gemini CLI
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a gemini-cli -y
GitHub Copilot
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a github-copilot -y
OpenCode
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a opencode -y
Windsurf
$ npx skills add elvismdev/claude-wordpress-skills --skill wp-performance-review -a windsurf -y
name: wp-performance-review description: WordPress performance code review and optimization analysis. Use when reviewing WordPress PHP code for performance issues, auditing themes/plugins for scalability, optimizing WP_Query, analyzing caching strategies, checking code before launch, or detecting anti-patterns, or when user mentions "performance review", "optimization audit", "slow WordPress", "slow queries", "high-traffic", "scale WordPress", "code review", "timeout", "500 error", "out of memory", or "site won't load". Detects anti-patterns in database queries, hooks, object caching, AJAX, and template loading.
Systematic performance code review for WordPress themes, plugins, and custom code. **Core principle:** Scan critical issues first (OOM, unbounded queries, cache bypass), then warnings, then optimizations. Report with line numbers and severity levels.
**Use when:**
**Don't use for:**
1. **Identify file type** and apply relevant checks below 2. **Scan for critical patterns first** (OOM, unbounded queries, cache bypass) 3. **Check warnings** (inefficient but not catastrophic) 4. **Note optimizations** (nice-to-have improvements) 5. **Report with line numbers** using output format below
Scan for:
Scan for:
Scan for:
Scan for:
Scan for:
Scan for:
Scan for:
Scan for:
Scan for:
# Critical issues - scan these first
grep -rn "posts_per_page.*-1\|numberposts.*-1" .
grep -rn "query_posts\s*(" .
grep -rn "session_start\s*(" .
grep -rn "setInterval.*fetch\|setInterval.*ajax\|setInterval.*\\\$\." .
# Database writes on frontend
grep -rn "update_option\|add_option" . | grep -v "admin\|activate\|install"
# Uncached expensive functions
grep -rn "url_to_postid\|attachment_url_to_postid\|count_user_posts" .
# External HTTP without caching
grep -rn "wp_remote_get\|wp_remote_post\|file_get_contents.*http" .
# Cache bypass risks
grep -rn "setcookie\|session_start" .
# PHP code anti-patterns
grep -rn "in_array\s*(" . | grep -v "true\s*)" # Missing strict comparison
grep -rn "<<<" . # Heredoc/nowdoc syntax
grep -rn "cache_results.*false" .
# JavaScript bundle issues
grep -rn "import.*from.*lodash['\"]" . # Full lodash import
grep -rn "registerBlockStyle" . # Many block styles = performance issue
# Asset loading issues
grep -rn "wp_enqueue_script\|wp_enqueue_style" . | grep -v "is_page\|is_singular\|is_admin"
# Transient misuse
grep -rn "set_transient.*Professional WordPress engineering skills for Claude Code - performance optimization, security auditing, Gutenberg block development, and theme/plugin best practices.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.