WP BenchmrkII is a tool that I made for profiling, benchmarking and development.

It has many key features that can significantly help with these tasks.
This tool is in development itself, but I use it almost daily for my work.

Its an invaluable tool and helps me greatly in my day to day WordPress work.

Read About it Here

April 22nd, 2012

Add blog link to admin nav

WP Static Pages and Sites Link

With the newer versions of WordPress the admin nav bar is great. But when you have a static page site for home and blog, then the site link always brings you to the home page, when most of the time you want the blog page.

This snippet will add a Blog link to the Admin Nav Bar when in the Admin area.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function add_blog_menu()
{
	/** @var $wp_admin_bar WP_Admin_Bar */
	global $wp_admin_bar;
	if (!is_super_admin() || !is_admin_bar_showing())
		return;
 
	if (is_admin())
	{
		$wp_admin_bar->add_menu(array(
				'id'     => 'blog',
				'title'   => 'Blog',
				'href'   => site_url() . '/blog'
			)
		);
	}
}
 
add_action('wp_before_admin_bar_render', 'add_blog_menu');

Note: the Blog link.
This alows you to quickly return the sites blog from the admin panel when having a static home page that is not the blog or post list.

April 21st, 2012

WordPress Benchmark Dev Tool

WP BenchmrkII is a tool that I made for profiling, benchmarking and development.

It has many key features that can significantly help with these tasks.
This tool is in development itself, but I use it almost daily for my work.

Its very powerful and helps me greatly in my day 2 day WordPress work.

Features

  • Database Query Count
  • PHP Load Time
  • Memory Usage
  • Peak Memory
  • Include Count
  • Hook Count
  • Current Template
  • List Queries (Query, Time, Functions)
  • List Includes (With filters)
  • List Hooks
  • List Constants (user)
  • Show in admin also

Currently some of the biggest issues I am asked from WordPress clients are about performance. I use this tool to locate and remove performance bottlenecks.

I also use it when developing client sites in WordPress so that I can keep track of how my code performs. This way if something goes high, like memory after adding the code, I know it needs refactoring.

This plugin is Open Source and can be downloaded from my GitHub account. Get the code here.
If you use it, you should follow this project, I change it adding new features constantly.

Or, download directly the latest version from the git repository. Download Zip
Rename the parent folder to WP-Benchmark after unzipping.

LIke I said, this is in development and may have some bugs. Please let me know if you find some.

WordPress Theme Development Controversies and what some say can be not only wrong but hurt your site and its performance.

Just to name a few…

  • Don’t add custom stuff that should be a plugin.
  • Clearly separate all of the src resource files.
  • Minimal Admin Options

Read More…

Linux terminal is a powerful tool that most Windows users do not use or know until they are forced to.

Case in point, about 2 years ago now I installed Ubuntu on my notebook and a year ago on my workstation.
The biggest reason is that mentioned in the first line of this post. The other being, well, windows is a bloated pile :)
The other is that programming on a machine running a Linux distro is a lot smoother.

Read More…

Page 1 of 912345...Last »