Wordpress Performance Best Practices
WordPress performance guidelines covering 34 prioritized rules for writing, reviewing, and refactoring plugin and theme PHP code.
- CCM score
- 58 of 100
- skills.sh installs
- 758
- GitHub stars
- 13
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers 8 categories ranked by impact: database, caching, assets, theme, plugin architecture, media, API and AJAX, and advanced patterns
- Includes rules on
$wpdb->prepare(),WP_Querylimits, transient and object cache usage, andwp_enqueue_scriptandwp_enqueue_style - Provides an incorrect and correct code example for each rule, plus a
_sections.mdindex and a compiledAGENTS.md - Designed for agents and LLMs performing code review or generation on WordPress projects that involve queries, caching, hooks, or the REST API
Install
$ npx -y skills add bartekmis/wordpress-performance-best-practices --skill wordpress-performance-best-practices -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WordPress Performance Best Practices
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.
When to Apply
Reference these guidelines when:
- Writing WordPress plugins or themes
- Working with WP_Query or database operations
- Implementing caching (transients, object cache)
- Optimizing asset loading (scripts, styles)
- Reviewing WordPress code for performance issues
- Working with REST API or AJAX handlers
Rule Categories by Priority
| 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- |
Quick Reference
1. Database Optimization (CRITICAL)
Details
- Repository
- github.com/bartekmis/wordpress-performance-best-practices
- Categories
- PHP & Laravel, Code Review & Quality
- First seen
- Jun 3, 2026
Similar to Wordpress Performance Best Practices
More PHP & Laravelwoocommercemindrally/skills895 installsDevelopment guidelines and code patterns for WordPress and WooCommerce plugins, covering PHP standards, security, and extensibility.
wp-performanceautomattic/agent-skills449 installsBackend-only WordPress performance playbook for profiling, query and autoload tuning, caching, cron, and verified fixes.
performance-optimizationmindrally/skills915 installsGuideline set for web performance covering server-side rendering, CSS, JavaScript, assets, and caching.
wp-plugin-developmentwordpress/agent-skills9.7K installsA structured guide for WordPress plugin work covering architecture, lifecycle, settings, security, and data handling.
wp-patternsWordPress/agent-skills3K installsGuide for creating and reviewing WordPress block patterns, covering registration, block markup, theme.json design tokens, and accessibility.
laravel-best-practiceslaravel/boost2.8K installsIndex of Laravel best-practice rule files for code writing, review, and refactoring, covering queries, security, and architecture.