Use
WordPress to build a websiteMost friends will encounter situations where their website opens very slowly, and they don't know why the WordPress site is slow to load. So they blame WordPress, thinking it's too bloated, and switch to lightweight blog systems like Typecho. Therefore, Naiba here recommends a
WordPress Plugin: Query Monitor
Query Monitor plugin introduction
Query Monitor is a developer tools panel for WordPress. It supports debugging database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more. It includes some advanced features such as debugging Ajax calls, REST API calls, and user capability checks. It includes the ability to narrow down most of its output via plugins or themes, allowing you to quickly identify poorly performing plugins, themes, or functions. Query Monitor primarily focuses on presenting its information in a useful way, such as by displaying aggregated database queries grouped by the plugin, theme, or function responsible for them. It adds an admin toolbar menu showing an overview of the current page, and once you select a menu item, it displays complete debugging information in a panel. The above is the official introduction from Query Monitor, which might be a bit unclear for ordinary users. So below, Naiba will demonstrate how to use Query Monitor.
Using Query Monitor
First, from the
WordPressbackend, install and activate Query Monitor.

After activation, you will see an indicator bar like the one in the image below added to the top admin bar.

If the indicator bar is red, it indicates there are errors on the webpage. Hover your mouse over it, and the error content will be highlighted in red. Click into it to view details, and you can troubleshoot where the problem lies.

Of course, judging this error still requires some discernment. For example, Naiba's error report seems to be related to image editing, because Naiba has installed the
Upyunplugin, which has taken over the media library function. So the error is likely from here and can be ignored.

Typically, when we
WordPress optimizationoptimize WordPress, we use caching plugins for page caching, then optimize and cache database queries. In the Query Monitor Overview interface, you can see the number of database queries.

Naiba's page made a total of 9 database queries. From the details page, you can roughly see which queries can be eliminated. Just delete the corresponding plugins.

Of course, for novice users, WordPress optimization might still be somewhat difficult. Naiba gives you the most direct advice: try to choose simple themes, don't add too many features, and don't install plugins unless necessary. Then install WP Super Cache, set up Memcached caching on the server, and add
Upyun's free CDN to accelerate images. Basically, no further optimization is needed; it will already be very fast.
Query Monitor Download Link
If you are using a foreign server, you can directly search for Query Monitor in the WordPress backend plugin library to install it. If you are using a domestic server, you can download it via the link below and upload it to the website backend for installation.
Official Download Cloud Storage Download
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.