orbit-db-profile

Profile WordPress plugin database queries using Query Monitor and MySQL performance schema.

2|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/adityaarsharma/orbit --skill orbit-db-profile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orbit-db-profile
Source: https://github.com/adityaarsharma/orbit/tree/main/skills/orbit-db-profile
Command: npx skills add https://github.com/adityaarsharma/orbit --skill orbit-db-profile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wp-env, Query Monitor, MySQL, and includes scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive database query profiling for WordPress plugins, identifying query count, slow queries, N+1 detection, autoload bloat, transient explosion, missing indexes, and cron-induced churn, using Query Monitor and MySQL performance_schema.

Core Features & Use Cases

  • Database Profiling: Offers in-depth profiling of WordPress plugin database queries.
  • Metrics: Measures queries per page, slow queries, autoload size, N+1 patterns, and more.
  • Use Case: When a user wants to analyze their plugin's database performance for potential optimizations or identify inefficient queries.

Quick Start

Profile the homepage on wp-env port 8881 by running: bash ~/Claude/orbit/scripts/db-profile.sh

Frequently Asked Questions about orbit-db-profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile WordPress plugin database queries for performance issues?

Database profiling for WordPress plugins works by utilizing Query Monitor and MySQL performance_schema to track query execution and analyze database usage patterns. It identifies issues like slow queries, N+1 detection, and autoload bloat.

What is the best way to detect N+1 queries in a WordPress plugin?

Detecting N+1 queries in a WordPress plugin requires a database profiling tool that monitors query execution patterns. This Skill identifies N+1 patterns, missing indexes, and cron-induced churn using Query Monitor and MySQL performance_schema.

Do I need wp-env and Query Monitor to analyze WordPress database performance?

Yes, you need wp-env, Query Monitor, and MySQL to analyze WordPress database performance with this tool. wp-env provides the local development environment, Query Monitor tracks the queries, and MySQL performance_schema provides the underlying performance metrics.

How do I check for autoload bloat in my WordPress database?

Checking for autoload bloat in a WordPress database involves running a profiling script that measures autoload size and query efficiency. This Skill detects autoload bloat, transient explosions, and missing indexes using Query Monitor and MySQL performance_schema.

What WordPress database performance metrics should I monitor during plugin development?

Database performance metrics to monitor during WordPress plugin development include queries per page, slow queries, autoload size, N+1 patterns, and transient explosions. This Skill measures these metrics to help identify potential optimizations and inefficient queries.

Can I use MySQL performance_schema to monitor WordPress plugin database usage?

Yes, MySQL performance_schema can monitor WordPress plugin database usage when combined with Query Monitor. This Skill uses both tools to provide comprehensive profiling, tracking query counts, detecting slow queries, and identifying missing indexes or cron-induced churn.