WordPress.org

Ready to get started?Download WordPress

Plugin Directory

SF Admin Bar Tools

Adds some small interesting tools to the admin bar for Developers.

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. Click this item will retract the entire admin bar to the right. Why is it useful? Have you ever had some php notices hidden under the admin bar? You probably had, so now you understand the aim of this functionality. * Displays php memory usage, php memory limit, and php version. Hover this item to display WP_DEBUG state and error reporting value. In your site front-end: * The php memory item: hover it to display the current template too. * $wp_query: click the $wp_query item will open a lightbox with the content of $wp_query. Click its blue title to reload the lightbox, click outside the lightbox to close it. Since version 2, works on 404 pages too. * Responsive admin bar: better handling for small screens. In your site administration: * Fix/unfix the admin menu: not really a tool, it gives you the opportunity to float the admin menu. I mean, in long pages, your menu will remain visible on screen: no more long scroll up to navigate into your administration area. * Current screen: a dropdown containing lots of things. 1. Three lists of useful hooks (actions). The indicator to the right of the line tells you if the hook has been triggered (a "x" means the plugin doesn't know, because the hook occurs after the admin bar). Colors: green -> the hook occurs before the headers are sent, orange -> after the headers, red -> in footer. A "P" means the hook has a parameter: hover it for more infos. Click a hook (on its text) to auto-select its code, for example: click admin_init to select add_action( 'admin_init', '' ); 2. $...now: this dropdown contains the value of the well-known variables $pagenow, $typenow and $taxnow. 3. Finally, you can know the current page id and base.

New in version 2: cowork

If you work with a team or other developers, one of the worst thing that could happen is if two developers edit the same file at the same time. This is where the new Cowork functionality comes in. Once enabled (click the cowork button), you'll have a file tree listing all the files in the current theme and in the plugins directory. Click a file, it's yours, you can now go to your ftp program to edit this file. The file disappear from the file tree and appear in your personal list. For other users, the file will remain in place but it will be red and they won't be able to click it, they know now you are editing this file and they shouldn't. In the meantime in the main plugin item, you will have one or two counters: the grey one is the number of files open by you, the other is the total of files open by others. Counters and file tree are refreshed frequently, depending of the situation: main item hover, window focus, every 5 minutes (counters only). Once you finished your work, clicking on Stop coworking will clear your files list and stop your cowork session. A little warning: with long lists, I hope you have a big screen ;) If you have really lots of files in your theme and your plugins directory, the plugin can be slow to insert the list in the admin bar and freeze the screen for few seconds.

You can decide who's gonna use this plugin. First thing to do after installing the plugin is to go to settings page and check the users (only administrators). This way, the plugin's items won't show up to other users (your client for example).

Translations

  • English
  • French

Important note: browser requirement

You'll need a modern browser to use correctly this plugin. I used CSS3 and HTML5 features without fallback to keep it simple. Why? I think developers should use a modern browser, so why should I bother myself with fallbacks? ;) (you don't work with a dinosaur, right?) For example, the "retract admin bar" and "float admin menu" use localStorage to keep track of your preferences between pages.

Requires: 3.1 or higher
Compatible up to: 3.7.1
Last Updated: 2013-9-30
Downloads: 1,046

Ratings

4 stars
4.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1