Do you want to add a WordPress query monitor to your website? A query monitor gives you a background view of how your WordPress website works.
In this article, we will show you how to add a query monitor to your WordPress website and how to debug performance issues like a pro.
But if you have never installed WordPress, discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog
Then back to why we are here.
What is the WordPress Query Monitor?
The WordPress Query Monitor is a debugging tool that monitors the requests that your WordPress website makes to the server.
You can then use this information to solve the problems of your WordPress website or find and correct common WordPress errors.
Some of the things you can look for are:
- Database queries triggered by a page on WordPress.
- HTTP requests made by scripts in your themes or extensions
- Hooks and actions triggered on a page
- Language, user role checks, and template files used to display the page
- PHP and MySQL versions, memory limits
- And more.
That being said, let's look at how to add a query monitor to your WordPress website.
Adding a query monitor on WordPress
The first thing to do is install and activate the Query Monitor extension. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, the extension will add a dedicated query monitor menu to the notification bar of your dashboard.
Hovering your mouse over this query monitor will bring up the menu which allows you to quickly jump from one parameter to another. You can also click Query Monitor Statistics to view all data.
Displaying data in the query monitor
First you need to make sure that the WordPress admin area notification bar is visible when you are viewing your website. Just go to Users »Your Profile and check the box next to the option " Show the toolbar when you visit the website».
Do not forget to click on the button « Update Profile To store your settings.
So much to see... 10 WordPress plugins sharing on social networks
Then you need to visit the page for which you want to check queries. Once on this page, simply hover your mouse over the query monitor menu in the admin bar and click on the section you want to see.
Monitoring SQL queries
The query monitoring extension allows you to monitor all SQL queries. The Queries by Component section shows you queries by extensions, themes, and kernel files.
Request
This section presents the corresponding rewrite rules and templates used to display the current page.
See also our 5 WordPress plugins to estimate the reading time of an article
Scripts and styles
The Scripts and Styles sections show you the Javascript and style sheets loaded by your theme and extensions. You will also see where these files are loaded (for example, header or footer).
Hooks and Actions
This section shows you the Hooks used and Actions triggered when loading the current page.
Read also this article on 10 WordPress plugins to create polls on your blog
Languages
This section shows you the language files requested and loaded by the current page. If you use a multilingual WordPress website, this helps you to determine which theme and which extensions have available language files.
Read also our article on 10 WordPress plugins to create sliders on your blog
HTTP API calls
This section displays HTTP API calls made to third-party API libraries.
Transient Update
This section allows developers to store information in your WordPress database with an expiration time. It displays all the transient updates requested while the current page is loading.
Capability Checks
This section displays the user role features, checked by the kernel, extensions and themes of WordPress when loading the current page.
Environment
This is where you will get your information related to the WordPress web hosting environment like PHP version, MySQL version, MySQL host, WordPress database name, and more.
conditionals
This is where the extension shows the requirements to display the current page.
Also discover our tutorial on How to create a responsive accordion slider in Divi
Discover also some premium WordPress plugins
You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. HBook
HBook is a WordPress extension which will allow you to easily create an online reservations solution on your website.
It is perfectly suited for anyone who has a business in the hotel sector (hotels, holiday apartments, camping, etc.).
Discover also our 5 WordPress plugins to share the content of your blog
Thanks to the WordPress Plugin HBook, you will be able to add availability calendars, price grids and booking forms on your website, just in seconds.
Download | Demo | Web hostingâŻ
2. WooCommerce Multilevel Referral Plugin
This WooCommerce plugin allows your affiliates to earn credit points if their subscribers buy your products from your existing online store.
Its features include: configuration of a personalized credit and redemption limit, complete administration reports for registered users, management of global or product-specific parameters, support of shortcodes, and much more
It is a multi-level affiliate system of WooCommerce, something that is outside of the typical affiliate transaction system.
Download | Demo | Web hosting
3. Woocommerce Pro Tabs: Extra Tabs for Product Page
Ce WordPress Plugin provides you with unlimited additional tabs on the product page.
Its main features are: the possibility of change the tab titles, a editor to edit custom content, the ppossibility of pinning tabs or not, the choice of icons for tabs, easy removal tabs, the pcustomization of the position of tabs on the public interface, et more ...
Download | Demo | Web hosting
Other recommended resources
We also invite you to consult the resources below to go further in the grip and control of your website and blog.
- 10 WordPress plugins to create a contact form
- 5 WordPress plugins to create photo galleries
- 5 WordPress plugins to create a cooking blog
- 5 plugins to display notifications on WordPress
Conclusion
Here ! We hope this article has helped you add a query monitor to your WordPress website and resolve performance and security issues.
However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.
But, in the meantime, tell us about your Comments and suggestions in the dedicated section. feel free to share the tip with your friends on your social networks.
...