12 min read
10 Best WordPress PHP & JavaScript Console Tools Plugins
When developing a WordPress website, debugging and optimizing code are essential for maintaining performance and functionality. Errors in PHP scripts or JavaScript code can lead to broken features, slow loading times, and security problems. Console and debugging plugins give you real-time insight into errors, execution times and database queries.
This list covers ten maintained plugins that help you debug PHP, trace JavaScript and PHP errors, or run code from the dashboard. Each entry shows its version, install count and update date from its WordPress.org listing, plus the security cost of the tools that execute code.
Last updated: 6 November 2026
Quick answer: which console and debugging plugin should you use?
Query Monitor is the best all-round choice: 200,000+ installs, PHP errors, slow queries, hooks and REST calls in one panel, visible only to administrators. Use WP Console to run PHP in the browser on a staging site only, and Debug Log Manager to log JavaScript and PHP errors together.
Understanding WordPress PHP and JavaScript Console Tools
PHP is the backbone of WordPress, while JavaScript drives front-end interactions. A console tool for WordPress usually does one of three things: it displays errors and performance data, it logs errors to a file or dashboard, or it executes code you type in.
The third group needs care. A plugin that runs PHP from the dashboard gives anyone who controls that screen full access to your server’s PHP environment. That includes your database credentials and every file the web server can read.
Comparison of WordPress console and debugging plugins
Data comes from each WordPress.org listing, checked on 6 November 2026.
| Plugin | Active installs | Version | Runs code? | Best use |
|---|---|---|---|---|
| Query Monitor | 200,000+ | 4.1.1 | No | Queries, errors, hooks, REST |
| WP Console | 20,000+ | 2.6.0 | Yes (PHP) | PHP REPL on staging |
| Debug Bar | 20,000+ | 1.2.0 | No | Admin bar debug panels |
| Debug Bar Console | 1,000+ | 0.3.1 | Yes (PHP, SQL) | Quick PHP and SQL tests |
| WP Debugging | 10,000+ | 2.12.6 | No | Toggling debug constants |
| Debug Log Manager | 10,000+ | 2.5.3 | No | PHP and JavaScript error log |
| Error Log Monitor | 20,000+ | 1.7.13 | No | Dashboard PHP error widget |
| Fatal Error Notify | 6,000+ | 1.5.4 | No | Email alerts on fatal errors |
| Code Snippets | 1,000,000+ | 4.1.0 | Yes (PHP) | PHP customizations |
| WPCode | 3,000,000+ | 2.4.1 | Yes (PHP, JS) | Header scripts and snippets |
Why You Need Console Tools for WordPress Development
Developing and maintaining a WordPress website requires constant debugging, testing and optimizing. Tools like these let you track errors, analyze script performance and monitor logs without searching through files by hand.
They also help with AJAX requests, REST API calls and plugin conflicts. Query Monitor, for example, adds debugging data to Ajax responses and authenticated REST responses.
How Console Tools Enhance WordPress Debugging
A single overlooked error can break a page. Console tools pinpoint where it happened and which plugin, theme or core file caused it.
For server-side code, a PHP console or error log shows notices, warnings and call stacks. For front-end code, the browser’s own DevTools console remains the primary tool for JavaScript, and plugins like Debug Log Manager add a server-side record of the errors visitors hit.
The Best WordPress PHP and JavaScript Console Tools Plugins
1. Query Monitor
Query Monitor is the standard debugging panel for WordPress. Version 4.1.1 was released on 27 October 2026, it has 200,000+ active installs, and it requires WordPress 6.3 and PHP 7.4 or later (tested up to WordPress 7.1.4).
Key features
- Flags slow, duplicate and erroneous database queries, filterable by component and calling function
- Lists PHP errors with the responsible component and call stack, and sends them to the browser console
- Reports hooks, deprecated usage and “Doing it Wrong” notices, plus enqueued scripts and styles with dependencies
- Shows HTTP API requests with timing and response codes, and adds debugging data to Ajax and REST response headers
Why it stands out
Output is visible only to administrators by default (Super Admins on Multisite), and the listing states that it does not persistently store collected data or send it to third parties. Because it sends PHP errors to the browser console, it is the closest thing to a combined PHP and JavaScript console in this list. Its listing does not mention JavaScript runtime errors, so use browser DevTools for those. It does not run code.
Best for: daily development, plugin and theme conflict hunting, and slow-query diagnosis.
2. WP Console
WP Console is a PHP console powered by PsySH. You type PHP in an Ace-based editor with autocompletion for core and WordPress functions, press Ctrl-Enter or Cmd-Enter, and read the output. Version 2.6.0 has 20,000+ active installs and is tested up to WordPress 7.1.4.
Key features
- Browser code editor with real-time autocompletion for PHP and WordPress functions
- A
_dumphelper built on Symfony VarDumper, and a viewer fordebug.log - Snippet support compatible with VS Code snippet files, and
wp shellaccess through WP-CLI - Interface and REST routes limited to users with the
manage_optionscapability
Why it stands out
It runs arbitrary PHP on your server, and the plugin page states it is not intended for use on a production server. Install it on a local or staging copy only, and delete it when you finish. Some PsySH commands (ls, doc, show) do not work in the browser.
Best for: testing functions and queries against real site data on a staging copy.
3. Debug Bar
Debug Bar is maintained under the WordPress.org account and adds a debug menu to the admin bar. With WP_DEBUG on it tracks PHP warnings and notices, and with SAVEQUERIES on it lists MySQL queries. Version 1.2.0 was released in October 2026 and has 20,000+ active installs.
Key features
- Admin bar panel for queries, cache and PHP warnings
- WP_Query and HTTP Requests panels
- Add-on system for post types, shortcodes, WP Cron, and the Debug Bar Console
- Tested up to WordPress 7.0.8 per its listing
Why it stands out
The panel system lets you add only what you need. Its listing shows a 4.1 out of 5 average from 69 reviews, and some reviewers report PHP notices with WP_DEBUG on, so test it on a development site first. It is more basic than Query Monitor.
Best for: sites that already depend on Debug Bar add-ons.
4. Debug Bar Console
Debug Bar Console adds a PHP and SQL console to the Debug Bar. It requires Debug Bar 0.5 or later. Version 0.3.1 was last updated in April 2026 and has 1,000+ active installs.
Key features
- PHP and SQL modes with CodeMirror syntax highlighting
- Improved MySQL detection and display
- Runs inside the Debug Bar panel in the admin area
- Rated 5 out of 5 across 5 reviews
Why it stands out
It is a quick way to try a query or a function without writing a temporary plugin. The listing gives no security guidance for running PHP or SQL through it, and the maintainer notes it no longer appears in plugin search because its tested-up-to tag lagged, so install it manually and keep it to development environments.
Best for: one-off PHP and SQL experiments on a development site.
5. WP Debugging
WP Debugging by Andy Fragen sets the debug constants in your wp‑config file for you and removes them on deactivation. Version 2.12.6 (August 2026) has 10,000+ active installs, a 5 out of 5 rating from 21 reviews and is tested up to WordPress 7.1.4.
Key features
- Settings toggles for
WP_DEBUG,WP_DEBUG_DISPLAYandWP_DISABLE_FATAL_ERROR_HANDLER - Turns on
WP_DEBUG_LOG,SCRIPT_DEBUGandSAVEQUERIESon activation - Debug Quick Look viewer for
debug.log - Optional installation prompts for Query Monitor and Debug Bar
Why it stands out
It saves you from editing the config file by hand and from forgetting to switch debugging off. WordPress documentation says debug tools are not recommended on live sites, and that SAVEQUERIES has a performance impact, so activate it on staging and deactivate it afterwards. Version 2.11.0 fixed a security issue involving capability checks and nonces.
Best for: developers who toggle debugging often across projects.
6. Debug Log Manager
Debug Log Manager is the only plugin here that logs JavaScript errors alongside PHP and database errors. Version 2.5.3 (October 2026) has 10,000+ active installs and a 5 out of 5 rating from 25 reviews.
Key features
- One-click
WP_DEBUGtoggle, with logs written to a non-default location and file name - JavaScript error logging, on by default since 1.4.0 and switchable off since 2.4.0
- Error type filter, grouping of repeated errors, error source detection (core, plugin or theme)
- Dashboard widget, admin bar indicator and automatic log trimming
Why it stands out
It gives you a readable error list without opening FTP. Its changelog records several security fixes in past releases, including hardening of the JavaScript logging endpoint in 2.5.1 and an escaping fix in 2.5.3, which shows active maintenance and also why you should keep it current.
Best for: catching front-end JavaScript errors and PHP errors in one log.
7. Error Log Monitor
Error Log Monitor by Janis Elsts shows recent PHP error log messages in a dashboard widget. Version 1.7.13 (October 2026) has 20,000+ active installs and is tested up to WordPress 7.1.4.
Key features
- Detects the error log location automatically and explains how to enable logging
- Optional email alerts with configurable recipients and frequency
- Widget visible to administrators only
- Built to handle very large log files
Why it stands out
The widget is quiet and focused on one job. It does not capture JavaScript errors or run code, which keeps its footprint small.
Best for: site owners who want PHP errors surfaced without a full debugging suite.
8. Fatal Error Notify
Fatal Error Notify emails administrators when a fatal error, or another configurable error level, occurs. Version 1.5.4 (February 2026) has 6,000+ active installs and is tested up to WordPress 6.9.11.
Key features
- Hooks into the PHP shutdown process so alerts can still go out on a 500 error
- Rate limiting, a Send Test button and a
fen_ignore_errorfilter - Alerts include request URL, referrer and user login name
- Pro adds Slack notifications, multisite support and logging
Why it stands out
It is the monitoring piece: development tools help while you are looking at the site, and this one tells you when you are not. Its listing is tested up to WordPress 6.9.11, so check compatibility on staging.
Best for: production sites that need an alert when something breaks.
9. Code Snippets
Code Snippets lets you add PHP functions and hooks from the dashboard instead of editing theme files. Version 4.1.0 was released on 5 November 2026, and the plugin has 1+ million active installs and a 4.7 out of 5 rating from 510 reviews.
Key features
- PHP snippets that run everywhere, admin only or front end only, plus run-once snippets
- Code editor with syntax highlighting and code checking
- Safe Mode that stops snippet execution so you can recover from a failing snippet
- Import and export between sites; Pro adds CSS and JavaScript snippets, revisions and role-based permissions
Why it stands out
The plugin page states that PHP snippets execute code on your site, so use only code you trust, review it before activation and keep a current backup. Safe Mode does not guarantee every error can be prevented. It is a code runner rather than a debugger, but it is the usual way to test small PHP changes safely off the theme.
Best for: small PHP customizations that should survive theme changes.
10. WPCode
WPCode (Insert Headers and Footers and Custom Code Snippets) has 3+ million active installs on its listing. Version 2.4.1 was released in October 2026.
Key features
- PHP, JavaScript, CSS and HTML snippets with placement rules (frontend, admin, before or after content)
- Snippet library and code generators
- Errors shown with the snippet name and line number
- Auto-deactivation of snippets that cause fatal errors in the admin area; safe mode limited to users who can manage snippets
Why it stands out
Because it supports JavaScript as well as PHP, it covers both sides of the title. Its listing says auto-deactivation applies only to fatal errors in the admin area, so a front-end fatal error can still break a page. Conditional logic, cloud library and revisions are Pro features.
Best for: adding header scripts and PHP or JavaScript snippets without touching theme files.
Security risks of code-execution plugins
Four plugins in this list can run code: WP Console, Debug Bar Console, Code Snippets and WPCode. WordPress.org states plainly that WP Console is not intended for production, and that Code Snippets “executes code on your site.”
The risk is straightforward. If an attacker takes over an administrator account, a code-execution plugin lets them run PHP directly. WordPress core already offers the DISALLOW_FILE_EDIT constant to switch off the theme and plugin editors, though the hardening guide notes it will not stop an attacker who can upload malicious files.
The same caution applies to the logs themselves. Core documentation says the default debug.log is saved in the content directory, and it advises against using WP_DEBUG and other debug tools on live sites. Related plugin history shows the risk is real: the WP Log Viewer plugin was closed on WordPress.org on 14 November 2024 for a security issue.
Safe-use guidance
- Run console and code-execution plugins on a local or staging copy, not on the live site.
- Deactivate and delete them as soon as the task is finished.
- Limit administrator accounts, use strong passwords and two-factor authentication, and review them with a user roles and permissions plugin.
- Keep a current backup before activating any snippet, and review code before you paste it in.
- Turn off
WP_DEBUG_DISPLAYon any site visitors can reach, and keep log files out of public view. - Update every debugging plugin promptly, since several here list security fixes in their changelogs.
Plugins to skip or check first
Some older tools still turn up in search. WP PHP Console has 500+ installs and was last updated in 2020, tested only up to WordPress 5.5. Health Check and Troubleshooting has 200,000+ installs but was last updated in July 2024 and is tested up to 6.6. WP Log Viewer and Kint Debugger are closed on WordPress.org. Check the listing’s update date and closure status before installing any debugging plugin.
How to Choose the Right Console Tool for Your Needs
If you need a read-only view of what your site is doing, start with Query Monitor. If you want errors logged and kept, add Debug Log Manager or Error Log Monitor. If you want an alert when production breaks, add Fatal Error Notify.
Reach for WP Console or Debug Bar Console only when you must test PHP against real data, and keep them on staging. Choose Code Snippets or WPCode when the goal is a permanent customization rather than a debugging session.
For API-heavy sites, see our roundup of WordPress API and webhooks integration plugins. If you want someone else to watch updates and security, our WordPress care plans cover that.
Frequently asked questions
What is the best WordPress debugging plugin?
Query Monitor is the most widely used, with 200,000+ active installs. It covers database queries, PHP errors, hooks, HTTP calls and REST requests in one panel visible only to administrators by default.
Is it safe to run PHP from the WordPress dashboard?
Only on a staging or local site. Plugins like WP Console execute arbitrary PHP, and its listing says it is not intended for production. Anyone who gains administrator access could abuse such a tool.
How do I debug JavaScript errors in WordPress?
Open your browser’s DevTools console to see runtime errors. Debug Log Manager also records JavaScript errors in a server-side log, and Query Monitor lists enqueued scripts with their dependencies.
Should I leave WP_DEBUG on a live site?
No. WordPress documentation does not recommend using WP_DEBUG or the other debug tools on live sites. If you must log errors in production, hide on-screen errors and send them to a protected log.
Can debugging plugins slow my site?
Yes. WordPress documentation notes that SAVEQUERIES has a performance impact, and Query Monitor says pages with hundreds of queries can use more memory. Switch debugging off when you are done.
Related reading

