WordPress plugin intelligence profile

wp pear debug

This plugin incorporates the pear php_debug library into wordpress.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.3
Current version1.5
WordPress coverageTested up to WordPress 4.3
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update5 Dec 201510y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records wp pear debug version 1.5 as active, updated 10y ago and tested up to WordPress 4.3.

Overview

About this plugin

This plugin incorporates the pear php_debug library into wordpress.

I started creating a new website around wordpress and noticed that there was no way to quickly access debug information so I integrated this class

into wordpress for quick easy debugging when developing or experiencing problems on your wordpress website.

Please feel free to ping me on twitter if you have a question.

  • Features

This plugin unlike most operates from within a class.

There are several options which can be set in the admin section

  • Debug Status: Overall

this option allows you to enable and disable debugging entirely

  • Display Debugging for: Guests

This option allows you to enable debugging when no user is logged in

  • The rest are a list of roles found in the sytem, eg. editor, contributor, administrator

For each you have the following options: Admin & Front End, Admin Only, Front End Only, Disable

  • The plugin shows queries that were run by wordpress

Please note that some queries run before the plugin is initialized. to ensure most if not all queries get recorded see step 4 in installation section. 1 shows not only the query but the time taken by the query and the function which called the query.

-

You can easly add debug information to the debugger by making use of several functions

php //For advanced use. //Direct access to instance of debugger $oDebug = wp_pear_debug::get(); $oDebug->add($variable); //add variable to debug $oDebug->dump($object,$varname); //var_dump an array or object. $varname optional $oDebug->queryRel($info); //add query related info $oDebug->error($info); //add user error //more options available in the pear::php_debug documentation

2 you have access to several wrapper functions //Enough for most people wp_pear_debug::add(); wp_pear_debug::dump(); wp_pear_debug::error(); //if you run this query with wpdb //It will probably appear anyways. wp_pear_debug::query();

>

-

Debug information appears in a neat panel controlled by javascript. The options expand and collapse. The debug panel also has

a close button to completely remove the debug panel.

-

Note that the debug bar floats at the top right and will not disrupt your layout.

-

To ensure layout stability the plugin is hard coded to use only the HTML Div Renderer

-

displaying server and response varables.

  • Request
  • Response
  • Setings
  • Globals
  • Php
  • Files
  • Database queries
  • Execution time
  • Errors and messages
  • Link to w3c validator

-

2 you can add debug information via shortcode from within your post. [wp_pear_debug]foo bar[/wp_pear_debug] or you may use:

[wp_pear-debug foo=”bar” foo1=”bar2″]

-

6. A rough spanish translation has been provided in the hope that someone can take it and create a better translation.

Interesting Points

This plugin requires no 3rd party dependencies such as jQuery.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • database debug
  • php debug
  • debugging
  • pear
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.3
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity5 Dec 201510y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.