Plugin info

Total downloads: 6,933
Active installs: 10
Total reviews: 5
Average rating: 4.2
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 3/6/2012 (5047 days ago)
Added to WordPress: 3/6/2012 (13 years old)
Minimum WordPress version: 2.9
Tested up to WordPress version: 3.3.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5047 days ago • 5 reviews

22/100

Is MySQL Profiler abandoned?

Possibly abandoned (last update 5047 days ago).

Compatibility

Requires WordPress: 2.9
Tested up to: 3.3.2
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

WP XHProf Profiler
Rating 5.0/5 (1 reviews)Active installs 10
What's running
Rating 5.0/5 (2 reviews)Active installs 0
Debug Bar Slow Actions
Rating 4.8/5 (15 reviews)Active installs 200
Debugger
Rating 4.5/5 (2 reviews)Active installs 10
Simple Debug
Rating 3.0/5 (2 reviews)Active installs 10

Description

MySQL Profiler displays debugging information about SQL queries to admin WordPress users. For each query, the profiler displays the time, syntax-highlighted SQL, and a trace of the functions (as well as the file and line number that the functions were called from) that were called.

The list can be sorted by any of its columns, so you can, for example:

  • Order the list by ID to see the chronological order of the queries
  • Order the list by time to see the slowest queries
  • Order the list by query to group the queries by type (SELECT, UPDATE, etc)
  • Order the list by trace to group the queries by similar origins

The list can also filtered by typing in the search box, so you can, for example:

  • View all queries that use the wp_posts table
  • View all queries that are related to the use of a function in taxonomy.php
  • View all queries that are related to the use of a specific function or class
  • View all queries that call a specific MySQL function

To turn off syntax highlighting, put the following in wp-config.php:

define('MP_HIGHLIGHT_SYNTAX', false);

To omit the file and line number from the function trace and display the functions as a comma-separated list (to save vertical space), define the following in wp-config.php:

define('MP_DISPLAY_FILES', false);

This plugin was loosely based on Frank Bueltge‘s Debug Queries plugin, so a hearty thanks to him for the development of that.

If you’d like to grab development releases, see what new features are being added, or browse the source code please visit/follow the GitHub repo.

Installation

  1. Put mysql-profiler into the wp-content/plugins directory
  2. Activate the plugin in the “Plugins” menu in WordPress to turn on the profiling
  3. Deactivate when you’ve finished using the profiling

Frequently Asked Questions

Is feature X available?

If there’s widely-needed functionality that you’d like that isn’t implemented, I’d likely be willing to implement it myself or to accept any well-written code that implements it. Please feel free to either add a topic in the WordPress forum or contact me through GitHub for any such requests:

Review feed

No reviews available

Screenshots

  1. Profiling for a typical single post page, filtered to show only queries containing references to wp_posts and ordered by the time column to show the slowest queries at the top.

    Profiling for a typical single post page, filtered to show only queries containing references to wp_posts and ordered by the time column to show the slowest queries at the top.

  2. Profiling for a typical single post page, with syntax highlighting turned off and the display of file and line numbers turned off (by setting MP_DISPLAY_FILES and MP_HIGHLIGHT_SYNTAX to false).

    Profiling for a typical single post page, with syntax highlighting turned off and the display of file and line numbers turned off (by setting MP_DISPLAY_FILES and MP_HIGHLIGHT_SYNTAX to false).

Changelog

No changelog available