How to Add a Query Monitor On Your WordPress Site

A query monitor gives you behind the scene look into your WordPress site. Query Monitor allows you to debug AJAX calls, REST API requests or redirects. You can further check your database queries, filter hooks, search for PHP errors and many more. Query Monitor also supports a couple of add-ons from other plugins, like add-ons from the Debug Bar plugin. So let’s take a look at how to add a WordPress query monitor on your site and debug performance issues.

 WordPress Query Monitor

WordPress query monitor is a debugging tool that monitor the requests your WordPress website makes to the server.

This information can be used for troubleshooting WordPress issues or find and fix common WordPress errors.

A few things that you can look up are:

  • .HTTP requests made by scripts in your themes or plugins
  • Database queries triggered by a page in WordPress
  • Language, user role checks, and template files used to display the page
  • Hooks and actions triggered on a page
  • Your hosting environment like PHP and MySQL versions, memory limits, and more.

Adding Query Monitory in WordPress

The first thing you need to do is install and activate the Query Monitor plugin.

Upon activation, the plugin will add the query monitor menu into your WordPress admin bar.

Taking your mouse over to the query monitor will display the menu allowing you to jump to a parameter quickly. You can also click on the query monitor stats to view all data.

Look at the Data in WordPress Query Monitor

First, you need to make sure that the WordPress admin bar is visible when you are viewing your website. Simply go to Users » Your Profile page and check the box next to ‘Show Toolbar when viewing site’ option.

Don’t forget to click on the ‘Update profile’ button to store your settings.

Next, you need to visit the page you want to check the queries for. Once on this page, simply take the mouse over to the query monitor menu in the admin bar and click on the section you want to view.

Rewrite Rules and Templates

This section shows you matching rewrite rules and the templates used to display current page.

Monitoring SQL Queries

The query monitor plugin allows you to monitor all SQL queries, queries by caller, and component. Queries by component section shows you queries by plugins, theme, and core files.

Hooks and Actions

This section shows you the hooks used and the actions triggered while loading the current page.

Scripts and Styles

Scripts and Styles section shows you Javascript and stylesheets loaded by your theme and plugins. You will also see where these files are loaded.

Languages Section

This section shows you the language files requested and loaded by the current page. If you run a multilingual WordPress site, then this helps you figure out which theme and plugins have language files available.


This section displays HTTP API calls made to third-party API libraries.

Transient Updates

Transient API allows developers to store information in your WordPress database with an expiration time. This section displays any transient updates requested during the current page load.

Capability Checks Section

This section displays user role capabilities check run by WordPress core, plugins, and themes while loading the current page.

Environment Section

This is where you will get your WordPress hosting environment information like PHP version, MySQL version, MySQL Host, WordPress database name, and more.

Conditional Checks

This is where plugin shows conditions that were required to display the current page view.


Naina Roy

Naina Roy

Naina is a freelance writer.She specializes in best marketing practices and entirely fills in with deep research on cyberbullying, trolling, employee legal facts, social media and Instant messengers.
Naina Roy

Leave a Reply

Your email address will not be published.