How to Add a WordPress Query Monitor On Your Site

Would you like to add a WordPress monitor to your site? A query monitor gives you a look into your WordPress site behind the scene. In this article, we will show you how to add a WordPress query monitor and debug performance problems such as a pro to your site.

What is WordPress Query Monitor?

WordPress query monitor is a debugging tool for monitoring the requests made to the server by your WordPress website. You can then use this information to fix WordPress problems or to find common WordPress errors and correct them.

Some of the things that you can see 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 environment like PHP and MySQL versions, memory limits, and more.

That said, let’s look at how to add a query monitor to your WordPress website.

Adding Query Monitory in WordPress

You must install and activate the Query Monitoring plugin first. See our step- by- step guide on installing a WordPress plugin for further details. When activated, the plugin will add your WordPress admin bar to the query monitoring menu.

Passing your mouse to the query monitors displays the menu that allows you to quickly jump to a parameter. To view all the data, you can also click the query monitor stats.

Viewing Data in WordPress Query Monitor

You must first make sure the WordPress admin bar is visible when you visit your website. Just go to Users ยป Your profile page and select the’ Show Toolbar when viewing the site ‘ option next to the box.

Do not forget to click the Update Profile button to save your configuration. Then you have to visit the page for which you want to check the queries. Once on this page, just go to the query monitor menu in the admin bar and click the section you want to see. SQL queries monitoring The query monitor plugin allows you to monitor all SQL queries, caller queries, and components. Component queries show you queries through plugins, theme and core files.

Rewrite Rules and Templates

This section shows you the corresponding rewrite rules and templates for the current page.

Scripts and Styles

The section Scripts and Styles shows you Javascript and stylesheets loaded with your theme and plugins. You’ll also see where you load these files( e.g. Footer or header).


Add a Comment

Your email address will not be published. Required fields are marked *