Title: Admin Bar Tools
Author: Grégory Viguier
Published: <strong>June 16, 2012</strong>
Last modified: January 18, 2021

---

Search plugins

![](https://ps.w.org/sf-adminbar-tools/assets/banner-772x250.jpg?rev=1286676)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/sf-adminbar-tools_987660.svg)

# Admin Bar Tools

 By [Grégory Viguier](https://profiles.wordpress.org/greglone/)

[Download](https://downloads.wordpress.org/plugin/sf-adminbar-tools.zip)

 * [Details](https://pcd.wordpress.org/plugins/sf-adminbar-tools/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/sf-adminbar-tools/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/sf-adminbar-tools/#installation)
 * [Development](https://pcd.wordpress.org/plugins/sf-adminbar-tools/#developers)

 [Support](https://wordpress.org/support/plugin/sf-adminbar-tools/)

## Description

The plugin adds a new tab in your admin bar with simple but useful indications and
tools.

 * Displays the number of queries in your page and the amount of time to generate
   the page.
 * Displays the php memory usage and php memory limits (constants `WP_MEMORY_LIMIT`
   and `WP_MAX_MEMORY_LIMIT`).
 * displays the php version and WP version.
 * Displays `WP_DEBUG`, `SCRIPT_DEBUG`, `WP_DEBUG_LOG`, `WP_DEBUG_DISPLAY`, and 
   error reporting values.

**In your site front-end:**

 * Lists the template and all template parts used in the current page (template 
   parts added with `get_template_part()`). Compatible with WooCommerce’s templates.
 * `$wp_query`: this will open a lightbox displaying the content of `$wp_query`.
   Click the lightbox title to reload the value, click outside the lightbox to close
   it.

**In your site administration:**

 * Admin hooks: lists some oftenly used hooks (like `admin_init`). The indicator
   to the right of the line tells you how many times the hook has been triggered
   by a callback. A “P” means the hook has a parameter: hover it for more details.
   Click a hook (on its text) to auto-select its code, for example: click _admin\
   _init_ to select `add_action( 'admin_init', '' );`.
 * `$current_screen`: displays the value of 4 properties of this object: `id`, `
   base`, `parent_base`, `parent_file`.
 * `$...now`: displays the value of the well-known variables `$pagenow`, `$typenow`,
   and `$taxnow`.
 * On a user profile page, `$userdata`: : this will open a lightbox displaying the
   user’s data.

You can decide who’s gonna use this plugin (go to your profile page for all the 
settings). This way, the plugin’s items won’t show up to other users (your client
for example).
 Also, a new menu item `Code Tester` will appear. There you are able
to do some tests with your code.

## Screenshots

 * [[
 * Admin side: list the most important hooks in the admin area.
 * [[
 * Admin side: click a hook, you’re ready to copy/paste.
 * [[
 * Front side: see the `WP_Query` object value.
 * [[
 * Front side: see the template and list all template parts used in the current 
   page.
 * [[
 * The settings in your profile page.
 * [[
 * The code tester area.

## Installation

 1. Extract the plugin folder from the downloaded ZIP file.
 2. Upload the `sf-admin-bar-tools` folder to your _wp-content/plugins/_ directory.
 3. Activate the plugin from the “Plugins” page.

## FAQ

None, yet.

## Reviews

![](https://secure.gravatar.com/avatar/f9ecaa2aff2de97c49b9b8443827c57fa81a57450ede5f5ad44a5484f87dbf33?
s=60&d=retro&r=g)

### 󠀁[Merci ! Merci !](https://wordpress.org/support/topic/merci-merci/)󠁿

 [fredericleclercq](https://profiles.wordpress.org/fredericleclercq/) January 23,
2021

Merci pour la mise à jour, je mets systématiquement ce plugin sur tous mes sites,
et pour tous mes cours de WP Dev. Ravi de pouvoir continuer à l’utiliser !

![](https://secure.gravatar.com/avatar/2794b9a3cf41aa07d8ba0ced0219b77d7e2c9a6aa4d9889b784a4a0125260595?
s=60&d=retro&r=g)

### 󠀁[So useful. Too bad it’s not updated](https://wordpress.org/support/topic/so-useful-too-bad-its-not-updated/)󠁿

 [Alvaro Gois dos Santos](https://profiles.wordpress.org/alvarogois/) December 21,
2018

This is one of those plugins I use on every WordPress project. The UI/UX is excellent,
it’s always there in the admin bar, you don’t need to load anything. It’s just a
pity it’s not updated to the latest WordPress versions. I sure hope this is not 
abandoned. Thanks for sharing your work, @greglone.

![](https://secure.gravatar.com/avatar/93b9a9f3752143c427cca75c28708b41b9943f3a2d82ffedaa90f14a2d6f1a18?
s=60&d=retro&r=g)

### 󠀁[In all my dev sites](https://wordpress.org/support/topic/in-all-my-dev-sites/)󠁿

 [Sebastien SERRE](https://profiles.wordpress.org/sebastienserre/) January 24, 2017

I’m using this wonderfull tool in all my project and ask my studients to use it 
when they dev for WordPress. Make a great job

![](https://secure.gravatar.com/avatar/6e4bcdcb4749bb317b8260ca1bf9504a16088105d056a2b0d8c5cf0a145a688c?
s=60&d=retro&r=g)

### 󠀁[very useful plugin](https://wordpress.org/support/topic/very-useful-plugin-385/)󠁿

 [Mike V. Gorbunov](https://profiles.wordpress.org/michael_zloi/) September 3, 2016

an awesome tool for developers

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/)

## Contributors & Developers

“Admin Bar Tools” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Grégory Viguier ](https://profiles.wordpress.org/greglone/)

“Admin Bar Tools” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/sf-adminbar-tools/contributors)
for their contributions.

[Translate “Admin Bar Tools” into your language.](https://translate.wordpress.org/projects/wp-plugins/sf-adminbar-tools)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sf-adminbar-tools/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sf-adminbar-tools/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sf-adminbar-tools/)
by [RSS](https://plugins.trac.wordpress.org/log/sf-adminbar-tools/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.0.0

 * 2021/01/15
 * The plugin has been totally rewritten. It requires at least php 5.6 and WP 4.7,
   and is ready for WP 5.6.
 * Items’ arrangement is a bit more clear, less cryptic.
 * Templates: if arguments are passed to the template via `get_template_part()` (
   new in WP 5.5), a “P” will appear at the right of the row: hovering this “P” 
   will display these arguments.
 * Added: the value of the constants `WP_MAX_MEMORY_LIMIT`, `SCRIPT_DEBUG`, `WP_DEBUG_LOG`,
   and `WP_DEBUG_DISPLAY`. Also the WordPress’ version.
 * About the lightbox displaying the value of `$wp_query`: this lightbow is now 
   also used to display a user’s data on a user’s profile page (admin area). This
   lightbox can be filtered/extended to display anything you want in frontend or
   admin.
 * A new menu item “Code Tester” to test your code rapidly.
 * Improvement: this tool being displayed in the admin bar, some values were inaccurate
   or incomplete (everything happening after the admin bar wasn’t taken into account).
   This has been fixed for the number of requests, page load time, admin hooks, 
   and memory usage.
 * Fix: the plugin forces the admin bar to be printed at the bottom of the page 
   on frontend, instead of using the new hook `wp_body_open`. This is done to be
   able to list all template parts.
 * The plugin is now using a template loader that can be filtered to customize the
   way everything is displayed.

#### 3.0.4

 * 2016/11/27
 * Ready for WP 4.7.
 * Fixed php warnings related to the new `WP_Hook` class. Thanks Sébastien Serre
   for alerting me.

#### 3.0.3

 * 2016/04/03
 * Ready for WP 4.5.
 * Code quality improvements.

#### 3.0.2

 * 2015/11/07
 * Bugfix: avoid annoying message caused by `is_embed()` in WP 4.4.0.

#### 3.0.1

 * 2015/06/08
 * Bugfix: avoid php notices when no template parts are found.
 * Improvement: the “Hide WP SEO” checkbox also removes the fields in taxonomy screens
   now.
 * Removed all unused old files. SVN, I hate you so much.

#### 3.0

 * 2015/03/30
 * Two years without any update: it’s time to rebuild everything from the ground
   with unicorns and kittens!
 * The main focus of this release is to repair broken things and remove obsolete
   features. It’s a major rewrite.
 * New: in front-end, list the template and all template parts used in the current
   page. Compatible with WooCommerce.
 * New: if WP SEO is installed, you can remove all its columns et metaboxes (they
   bore me).
 * New: if WPML is installed, you will have a link to the “hidden tools” (dangerous
   weapons that will blow up your site if you don’t know what you do (　ﾟДﾟ)＜!!).
 * Removed: the admin bar can no longer be shrinked.
 * Removed: coworking feature. Did somebody use it? It was a big mess for only this“
   tiny” thing.
 * Changed: the settings are in your profile page. Some of them are now user preferences.
 * Improved: more hooks listed in the admin area.
 * Improved: display the number of times the hooks are hit (for real this time).
 * Improved: hook code selection.
 * Improved: the “disable auto-save” feature now works with new WordPress releases.
   It also removes auto-lock, auth-check (“XXX is currently editing this post”),
   and all the things related to Heartbeat.
 * Todo: meh.

#### 2.1.1

 * 2013/01/26
 * Bugfix in settings page (a missing BR tag)

#### 2.1

 * 2013/01/26
 * New: Auto “subscribe” when the plugin is activated. No need to rush to the settings
   page after activation now.
 * New tool: `pre_print_r()`. It’s a kind of improved `print_r()` to use where you
   need: wrap with a `<pre>` tag, choose how to display it (or not) to other users
   with 2 parameters.
 * New: add your own options in the settings page. See the two action hooks ‘sf-
   abt-settings’ and ‘sf-abt-preferences’. Now there’s a new system to deal with
   the plugin options, see the ‘sf_abt_default_options’, ‘sf_abt_sanitization_functions’
   and ‘sf_abt_sanitize_settings’ filters.
 * New section “Personal preferences” in the plugin settings page, with the two 
   following options:
 * The cowork tree and statuses are refreshed every 5 minutes and on window focus.
   Now you can disable this.
 * When you’re on a post edit screen, WordPress autosave your post every minute.
   Now you can disable this.
 * New: Enable the “All Options” options menu.
 * Enhancement: if you use the Debug Bar plugin, its admin bar item has an icon 
   on a small screen now (icon from http://gentleface.com/free_icon_set.html).
 * Fix: in rares occasions, the admin submenus were displayed under content.
 * Fix: use `wp_get_theme()` only if exists (WP 3.4).
 * Fix: check WordPress version.

#### 2.0.1

 * 2012/10/17
 * Bugfix in settings page

#### 2.0

 * 2012/10/16 – Major release
 * Bugfix: jQuery is now launched correctly in themes where it’s not already present.
 * Enhancement: the main item is now located at the far right of the admin bar. 
   I think it’s more convenient for the “retract” functionality.
 * Enhancement: now there’s a small indicator for the “Fix/unfix admin menu” functionality.
 * Enhancement: the $wp_query lightbox works on a 404 page.
 * New tool: cowork.
 * New indicators: php memory, php version, WP_DEBUG state, error_reporting level,
   current front-end template.
 * New tool: hooks list in administration.
 * Thanks a lot to juliobox for some of the awesome ideas 🙂

#### 1.0.1

 * 2012/06/16
 * Minor CSS fix for WP 3.4: the floated admin menu was partially hidden under the
   admin bar.

#### 1.0

 * 2012/06/10 – First public release

## Meta

 *  Version **4.0**
 *  Last updated **5 years ago**
 *  Active installations **400+**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **5.6.0**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/sf-adminbar-tools/), [French (France)](https://fr.wordpress.org/plugins/sf-adminbar-tools/),
   and [Swedish](https://sv.wordpress.org/plugins/sf-adminbar-tools/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/sf-adminbar-tools)
 * Tags
 * [debug](https://pcd.wordpress.org/plugins/tags/debug/)[development](https://pcd.wordpress.org/plugins/tags/development/)
   [query](https://pcd.wordpress.org/plugins/tags/query/)[testing](https://pcd.wordpress.org/plugins/tags/testing/)
   [tests](https://pcd.wordpress.org/plugins/tags/tests/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/sf-adminbar-tools/advanced/)

## Ratings

 4.8 out of 5 stars.

 *  [  7 5-star reviews     ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sf-adminbar-tools/reviews/)

## Contributors

 *   [ Grégory Viguier ](https://profiles.wordpress.org/greglone/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sf-adminbar-tools/)