WordPress performance optimization guidelines across database, caching, assets, and plugin architecture.
Works with
34 rules organized by impact across 8 categories: database optimization, caching strategies, asset management, theme performance, plugin architecture, media optimization, API/AJAX, and advanced patterns
Covers critical areas including WP_Query optimization, transient and object cache usage, proper asset enqueueing, and REST API caching
Designed for code review and generation workf
Jun 13, 2026
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionwordpress-performance-best-practicesExecute the skills CLI command in your project's root directory to begin installation:
Fetches wordpress-performance-best-practices from bartekmis/wordpress-performance-best-practises and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate wordpress-performance-best-practices. Access via /wordpress-performance-best-practices in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
1
total installs
1
this week
10
GitHub stars
0
upvotes
Run in your terminal
1
installs
1
this week
10
stars
Comprehensive performance optimization guide for WordPress development, designed for AI agents and LLMs. Contains 34 rules across 8 categories, prioritized by impact to guide code review and generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Database Optimization | CRITICAL | db- |
| 2 | Caching Strategies | CRITICAL | cache- |
| 3 | Asset Management | HIGH | asset- |
| 4 | Theme Performance | HIGH | theme- |
| 5 | Plugin Architecture | MEDIUM-HIGH | plugin- |
| 6 | Media Optimization | MEDIUM | media- |
| 7 | API and AJAX | MEDIUM | api- |
| 8 | Advanced Patterns | LOW-MEDIUM | advanced- |
db-prepared-statements - Always use $wpdb->prepare() for queriesdb-avoid-post-not-in - Avoid post__not_in, filter in PHP insteaddb-use-wp-query - Use WP_Query/get_posts instead of direct DB queriesdb-limit-query-results - Never use posts_per_page => -1db-meta-query-indexing - Optimize meta queries, consider taxonomiesdb-fields-optimization - Use fields => 'ids' when only IDs neededcache-transients-proper-use - Use transients for external API callscache-object-cache - Use wp_cache_* with cache groupscache-remote-requests - Always cache wp_remote_get responsescache-invalidation - Implement precise, event-driven invalidationcache-fragment-caching - Cache expensive template fragmentsasset-proper-enqueue - Use wp_enqueue_script/style, never hardcodeasset-conditional-loading - Only load assets where neededasset-defer-async - Use defer/async for non-critical scriptsasset-dequeue-unused - Remove unused plugin assetsasset-minification - Minify assets, use critical CSStheme-avoid-queries-in-templates - Keep queries out of template filestheme-template-parts - Use get_template_part with data passingtheme-loop-optimization - Optimize loops, use meta/term cache primingtheme-hooks-placement - Use appropriate hook prioritiesplugin-conditional-loading - Load code only when neededplugin-autoloading - Use PSR-4 autoloadingplugin-activation-hooks - Use activation hooks for setup tasksplugin-hook-removal - Remove hooks properly with matching prioritymedia-responsive-images - Use srcset and sizes attributesmedia-lazy-loading - Lazy load below-fold, eager load LCPmedia-image-sizes - Define appropriate custom image sizesapi-rest-optimization - Optimize REST endpoints, add caching headersapi-admin-ajax - Use REST API for frontend, avoid admin-ajaxapi-nonce-validation - Implement proper nonce validationadvanced-autoload-optimization - Keep autoloaded options under 800KBadvanced-cron-optimization - Use system cron, batch long tasksadvanced-memory-management - Process in batches, clean up memoryadvanced-query-monitor - Profile before optimizingRead individual rule files for detailed explanations and code examples:
rules/db-prepared-statements.md
rules/cache-transients-proper-use.md
rules/_sections.md
Each rule file contains:
For the complete guide with all rules expanded: AGENTS.md
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
kadajett/agent-nestjs-skills
jwynia/agent-skills
asyrafhussin/agent-skills
jezweb/claude-skills
mattpocock/skills
parcadei/continuous-claude-v3
Solid pick for teams standardizing on skills: wordpress-performance-best-practices is focused, and the summary matches what you get after install.
Keeps context tight: wordpress-performance-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for wordpress-performance-best-practices matched our evaluation — installs cleanly and behaves as described in the markdown.
We added wordpress-performance-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
wordpress-performance-best-practices reduced setup friction for our internal harness; good balance of opinion and flexibility.
wordpress-performance-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: wordpress-performance-best-practices is the kind of skill you can hand to a new teammate without a long onboarding doc.
I recommend wordpress-performance-best-practices for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
wordpress-performance-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
wordpress-performance-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 34