Developer Tools

Developer Tools

There are a wide variety of tools available to help with plugin development. Some of them are run in your development environment (xdebug, PHPCS, etc), but there are also some excellent tools that can run right inside WordPress to help you build things properly and diagnose problems. This chapter deals with the in-browser tools.

Debug Bar and Add-Ons

The Debug Bar is a plugin that adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information.

Debug Bar

This is the main plugin, adding the base functionality that is extended by the remaining plugins listed on this page.

When WP_DEBUG is enabled it also tracks PHP Warnings and Notices to make them easier to find.

When SAVEQUERIES is enabled the mysql queries are tracked and displayed.

Visit Debug Bar

Debug Bar Console

This plugin adds a console in which you can run arbitrary PHP. This is excellent for testing the contents of variables, among many other uses.

Visit Debug Bar Console

Debug Bar Shortcodes

This plugin adds a new panel to the Debug Bar that displays the registered shortcodes for the current request.

Additionally it will show you:

Visit Debug Bar Shortcodes

Debug Bar Constants

This plugin adds three new panels to the Debug Bar that display the defined constants available to you as a developer for the current request:

Visit Debug Bar Constants

Debug Bar Post Types

This plugin adds a new panel to the Debug Bar that displays detailed information about the registered post types for your site.

Visit Debug Bar Post Types

Debug Bar Cron

This plugin adds a new panel in the Debug Bar displaying information about WordPress' scheduled events.

Once installed, you will have access to the following information:

Visit Debug Bar Cron

Debug Bar Actions and Filters Addon

This plugin adds two more tabs in the Debug Bar to display hooks (Actions and Filters) attached to the current request. Actions tab displays the actions hooked to current request. Filters tab displays the filter tags along with the functions attached to it with respective priority.

Visit Debug Bar Actions and Filters Addon

Debug Bar Transients

This plugin adds information about WordPress transients to a new panel in the Debug Bar.

Once installed, you will have access to the following information:

Visit Debug Bar Transients

Debug Bar List Script & Style Dependencies

This plugin lists scripts and styles that are loaded, in which order they're loaded, and what dependencies exist.

Visit Debug Bar List Script & Style Dependencies

Debug Bar Remote Requests

This plugin will add a new panel to Debug Bar that will display and profile remote requests made through the HTTP API.

Once installed, you will have access to the following information:

Optionally, you can add ?dbrr_full=1 to your URL to get additional information, including all request parameters and a full dump of the response with headers.

Visit Debug Bar Remote Requests

Helper Plugins

## Plugin Check

Plugin Check is a tool for testing whether your plugin meets the required standards for the WordPress.org plugin directory. With this plugin you will be able to run most of the checks used for new submissions, and check if your plugin meets the requirements.

Additionally, the tool flags violations or concerns around plugin development best practices, from basic requirements like correct usage of internationalization functions to accessibility, performance, and security best practices.

Visit Plugin Check

Query Monitor

Query Monitor is a debugging plugin for anyone developing with WordPress. You can view debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more. It has some advanced features not available in other debugging plugins, including automatic AJAX debugging and the ability to narrow down things by plugin or theme.

Visit Query Monitor