Query Monitor: Înregistratorul “cutiei negre” pentru diagnosticarea WordPress

Pe această pagină
  1. The Most Critical Diagnostic Panels
  2. How to Diagnose Performance on mybox
  3. Scenario: Troubleshooting a Slow WooCommerce Checkout
  4. The Call Stack: Finding the “Why”
  5. Working with Cache and CDN on mybox
  6. Summary

Query Monitor is the most powerful free diagnostic tool available for WordPress developers and power users on mybox. In 2026, where sites are a complex mix of Gutenberg blocks, headless APIs, and deep WooCommerce integrations, “guessing” why a site is slow is no longer an option. Query Monitor acts as an X-ray, revealing every database query, PHP hook, and external API call that happens during a single page load.

Because it only displays its findings to logged-in administrators, it is a safe and professional way to debug production sites on mybox without exposing technical data to the public.

The Most Critical Diagnostic Panels

Once activated, Query Monitor adds a set of metrics to your admin bar. Clicking them opens the main console, which is divided into several essential views:

  • Database Queries: This is where you solve performance issues. You can see the exact SQL being executed, which plugin triggered it, and how long it took.
    • Duplicate Queries: It highlights “N+1” problems where the same data is fetched multiple times unnecessarily.
    • Slow Queries: It identifies “bottleneck” queries that take over 100ms, often due to missing database indexes.
  • PHP Errors: Displays warnings, notices, and deprecated functions. In 2026, keeping this panel “green” is vital for compatibility with PHP 8.3+.
  • HTTP API Calls: Shows every time your site “talks” to an external server (e.g., Stripe, Mailchimp, or Google Maps). If your site hangs for 5 seconds, this panel will likely show an external API that timed out.
  • Scripts & Styles: Lists every JS and CSS file loaded on the page. Use this to find “bloat”—scripts like sliders or contact forms loading on pages where they aren’t used.

How to Diagnose Performance on mybox

To optimize your site, use these 2026 Benchmarks:

Metric Healthy Range Red Flag
Page Generation Time < 200ms > 800ms (High TTFB)
Database Queries 50 – 150 > 500 (Check for loops)
Database Time < 50ms > 200ms (Add indexes)
External API Calls 0 – 2 > 5 (Consider background processing)

Scenario: Troubleshooting a Slow WooCommerce Checkout

If your mybox store’s checkout is lagging:

  1. Open Query Monitor on the checkout page.
  2. Check HTTP API Calls: Often, a shipping calculator or tax API is taking 2+ seconds to respond.
  3. Check Database Queries: Look for queries involving wp_postmeta. If a “Join” is taking 300ms, you likely need the Index WP MySQL For Speed plugin.
  4. Check Hooks: See if an “Abandoned Cart” or “Email Marketing” plugin is slowing down the woocommerce_after_checkout_form hook.

The Call Stack: Finding the “Why”

The most underrated feature of Query Monitor is the Call Stack. It doesn’t just tell you that a query happened; it shows you the exact path the code took to get there.

  • If a slow query appears, click on the Component column.
  • The stack will show: wp-includes/plugin.php -> wp-content/plugins/your-plugin/file.php.
  • This allows you to tell exactly which plugin (or theme function) is causing the delay, so you can contact the developer or find an alternative.

Working with Cache and CDN on mybox

Query Monitor bypasses your object cache to show you the “raw” performance. However, if you are using a CDN (like Cloudflare):

  • The “Logged-In” Difference: Remember that Query Monitor only runs for you (an admin). Your visitors see a cached version.
  • The Cold Start: Run your test three times. The first run is the “Cold Start” (no cache); the third run shows you the “Warm Cache” performance, which is a better indicator of server efficiency.

Summary

Query Monitor is the definitive tool for maintaining a healthy WordPress site on mybox. It replaces “I think this plugin is slow” with “I know this plugin is making 400 duplicate queries.” By regularly checking the Overview and PHP Errors panels, you ensure your site remains fast, stable, and ready for the 2026 web.

Nu ai găsit răspunsul?

Echipa noastră de asistență este aici pentru tine 24/7 – scrie-ne și te ajutăm să rezolvi problema.