Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

How to Add a WordPress Query Monitor On Your Site

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to add a WordPress query monitor to your site?

A query monitor gives you a behind-the-scenes look into your WordPress site so that you can debug website performance issues like a pro.

In this article, we will show you how to add a WordPress query monitor on your site.

Adding a WordPress query monitor

What Is WordPress Query Monitor?

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

You can then use this information to troubleshoot WordPress issues or find and fix common WordPress errors.

Some of the things you can look up are:

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

That being said, let’s take a look at how to add a query monitor on your WordPress site.

Adding Query Monitor in WordPress

The first thing you need to do is install and activate the Query Monitor plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

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

Query Monitor menu in 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.

Viewing 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 the Users » Your Profile page and check the box next to the ‘Show Toolbar when viewing site’ option.

Show admin bar

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.

Monitoring SQL Queries

The Query Monitor plugin enables you to monitor all SQL queries, the number of queries by caller, and queries by component. The queries by component section shows you the queries made by plugins, themes, and core files.

SQL queries

Rewrite Rules and Templates

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

Requests, rewrite rules, and templates

Scripts and Styles

The Scripts and Styles section shows you the JavaScript and stylesheets loaded by your theme and plugins.

You will also see where these files are loaded, for example, in the header or footer.

Scripts and styles

Hooks and Actions

The Hooks and Actions section shows you the hooks used and actions triggered while loading the current page.

Hooks and actions

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 themes and plugins have language files available.

Languages loaded


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


Transient Updates

A 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

The Capability Checks section displays user capabilities checks run by WordPress core, plugins, and themes while loading the current page.

Capability check

Environment Section

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

WordPress hosting environment

Conditional Checks

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

Conditional checks

We hope this article helped you add a query monitor to your WordPress site. You may also want to see our guide on how to track website visitors and our expert pick of the best SEO plugins and tools.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

2 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Luke Cavanagh says

    When you do not need to find slow queries on your site, deactivate Query Monitor, if left active it can decrease performance on the site and increase memory usage.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.