
Wordpress Performance Best Practices
This is a structured ruleset for keeping WordPress code performant, with 34 rules across database queries, caching, assets, and theme development. It's designed for code review and generation, triggering when you're working with WP_Query, hooks, or REST API implementations. The rules are prioritized by impact (database and caching are marked critical, things like cron optimization are lower), which is smart because not all WordPress performance issues matter equally. Each rule has a prefix system and points to detailed markdown files with bad/good code examples. If you're building plugins or themes and want Claude to catch performance antipatterns like post__not_in or hardcoded script tags, this gives it a concrete checklist to work from.
- skills.sh installs
- 518
- GitHub stars
- 10
- last updated
- Jul 14, 2026
Install
$ npx -y skills add bartekmis/wordpress-performance-best-practises --skill wordpress-performance-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
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)
Sponsors
Details
- Repository
- github.com/bartekmis/wordpress-performance-best-practises
- Categories
- Debugging, PHP & Laravel
- First seen
- Jun 3, 2026