# Installing and using the Query Monitor plugin

> Install the Query Monitor plugin to find slow database queries, PHP errors and other performance problems on your WordPress site.

Source: https://helpcenter.ruachost.com/wordpress/guides/installing-and-using-the-query-monitor-plugin/

The **Query Monitor plugin** is a developer tool that helps you debug and analyze WordPress performance. It provides detailed information about database queries, hooks, PHP errors, and more. On **ruachost.com**, you can install and use Query Monitor to troubleshoot slow pages and optimize your site.

## Why Use Query Monitor?

- Identify slow or duplicate database queries.
- Debug PHP errors, notices, and warnings.
- Monitor hooks, actions, and filters.
- Track enqueued scripts and styles.
- Analyze REST API calls and AJAX requests.

## Installing Query Monitor

1. **Log in to WordPress** as the administrator.
2. In the dashboard, go to **Plugins → Add New**.
3. Search for **Query Monitor**.
4. Click **Install Now**, then **Activate Plugin**.

✅ Query Monitor is now installed.

## ⚙️ Using Query Monitor

1. **Access the Toolbar.**

   - After activation, Query Monitor adds a new menu to the WordPress admin toolbar.
   - Click the **Query Monitor icon** to open the panel.
2. **View Database Queries.**

   - See all queries executed on the current page.
   - Identify slow queries and duplicates.
3. **Check PHP Errors.**

   - Monitor notices, warnings, and fatal errors.
   - Helps developers quickly locate problematic code.
4. **Analyze Hooks and Actions.**

   - View which hooks are triggered on each page load.
   - Useful for debugging plugin and theme conflicts.
5. **Inspect Scripts and Styles.**

   - Track enqueued CSS and JavaScript files.
   - Detect dependencies and loading order issues.
6. **Monitor REST API and AJAX.**

   - Debug API calls and responses.
   - Identify performance bottlenecks in dynamic requests.

> **Note:**
- Query Monitor is intended for **developers and advanced users**.
- It should not be left active on production sites for long periods, as it may expose sensitive information.
- Always disable or uninstall after troubleshooting.
