{"id":36997,"date":"2024-12-15T21:46:33","date_gmt":"2024-12-15T21:46:33","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=36997"},"modified":"2024-12-15T22:15:22","modified_gmt":"2024-12-15T22:15:22","slug":"how-to-use-query-monitor-plugin","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/how-to-use-query-monitor-plugin\/","title":{"rendered":"How to use Query Monitor plugin"},"content":{"rendered":"<p>This guide explains how to use the Query Monitor plugin, a powerful tool for identifying performance issues in your WordPress website. Whether the problem lies in database queries, plugin compatibility, or theme conflicts, Query Monitor can help pinpoint the root cause.<\/p>\n<h2>Debugging a Slow Website with Query Monitor<\/h2>\n<p>To get started, install the <strong><a href=\"https:\/\/wordpress.org\/plugins\/query-monitor\/\">Query Monitor<\/a><\/strong> plugin. Once activated, additional information will appear in the admin bar at the top of your WordPress dashboard:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3298\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png\" alt=\"\" width=\"524\" height=\"106\" \/><br \/>\nPerformance issues can stem from various sources, such as:<\/p>\n<ul>\n<li>Sitewide problems<\/li>\n<li>Specific page issues<\/li>\n<li>Particular functions or actions<\/li>\n<\/ul>\n<p>Whatever the issue, replicate the problem while Query Monitor is active. The plugin will display detailed diagnostics, helping you identify the cause:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3299\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor-error.png\" alt=\"\" width=\"366\" height=\"365\" \/><\/p>\n<h3>Steps for Diagnosing Issues with Query Monitor<\/h3>\n<ol>\n<li>Visit the problematic page or trigger the action causing slow performance while Query Monitor is enabled.<\/li>\n<li>Examine the diagnostics displayed in Query Monitor to identify errors or bottlenecks.<\/li>\n<li>Focus on the reported issues, such as:\n<ul>\n<li>PHP Errors<\/li>\n<li>Database query delays<\/li>\n<li>Slow hooks or functions<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>Example: Diagnosing a Plugin\/Theme Conflict<\/h3>\n<p>Here\u2019s an example of how Query Monitor helped resolve a plugin\/theme conflict:<\/p>\n<ol>\n<li>Enabled Query Monitor and visited the problematic page.<\/li>\n<li>Query Monitor displayed:\n<ul>\n<li>PHP Errors (6)<\/li>\n<li>A \u201cDoing It Wrong\u201d warning (1)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-36972\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors.png\" alt=\"\" width=\"1900\" height=\"251\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors.png 1900w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors-300x40.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors-1024x135.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors-768x101.png 768w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/php-errors-1536x203.png 1536w\" sizes=\"auto, (max-width: 1900px) 100vw, 1900px\" \/><\/li>\n<\/ul>\n<\/li>\n<li>The PHP Errors pointed to two problematic plugins:\n<ul>\n<li><em>password-protected<\/em><\/li>\n<li><em>wc-dynamic-pricing-and-discounts\n<p><\/em><\/li>\n<\/ul>\n<\/li>\n<li>After disabling these plugins (the site was running PHP 8.2), the errors and warnings disappeared.<\/li>\n<li>Downgraded the PHP version from 8.2 to 7.4, and no further PHP errors occurred, confirming the plugins were incompatible with PHP 8.2.<\/li>\n<\/ol>\n<p>As a result, the website loaded significantly faster after resolving the plugin compatibility issues.<\/p>\n<h3>Additional Notes<\/h3>\n<p>If the issue persists, consider reviewing database queries or enabling the Staq Query Tool for deeper diagnostics. For more guidance on analyzing database queries, check out our guide on <strong><a href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-staq-query-tool\/\">using the Staq Query Tool<\/a><\/strong>.<\/p>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-36997","knowledgebase","type-knowledgebase","status-publish","hentry","categories-website-diagnose"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use Query Monitor plugin - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Query Monitor plugin - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"This guide explains how to use the Query Monitor plugin, a powerful tool for identifying performance issues in your WordPress website. Whether the problem lies in database queries, plugin compatibility, or theme conflicts, Query Monitor can help pinpoint the root cause. Debugging a Slow Website with Query Monitor To get started, install the Query Monitor&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-15T22:15:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/\",\"name\":\"How to use Query Monitor plugin - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/query-monitor.png\",\"datePublished\":\"2024-12-15T21:46:33+00:00\",\"dateModified\":\"2024-12-15T22:15:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/query-monitor.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/query-monitor.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-query-monitor-plugin\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Query Monitor plugin\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Query Monitor plugin - Managed Hosting Platform for WordPress","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/","og_locale":"en_US","og_type":"article","og_title":"How to use Query Monitor plugin - Managed Hosting Platform for WordPress","og_description":"This guide explains how to use the Query Monitor plugin, a powerful tool for identifying performance issues in your WordPress website. Whether the problem lies in database queries, plugin compatibility, or theme conflicts, Query Monitor can help pinpoint the root cause. Debugging a Slow Website with Query Monitor To get started, install the Query Monitor&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-12-15T22:15:22+00:00","og_image":[{"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/","name":"How to use Query Monitor plugin - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png","datePublished":"2024-12-15T21:46:33+00:00","dateModified":"2024-12-15T22:15:22+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2022\/01\/query-monitor.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-query-monitor-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to use Query Monitor plugin"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase\/36997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=36997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}