WordPress Plugin Killer: The SeriesBy Binny V A • Mar 14th, 2009 • Category: Blogging, PHP, WordPress
My last post about using a bit of custom PHP code in the wordpress template instead of installing a plugin inspired a new way of thinking for me. How many of the wordpress plugins currently in use are actually necessary? Couldn’t we avoid a few plugins by using a bit of custom code?
So I decided to do a series on how to duplicate the functionality of some plugins using PHP code within the WordPress theme/template itself. That way, you can eliminate the plugin – and still get the features offered by the plugin.
The advantages of avoiding unnecessary plugins…
- Less overhead/More Optimized Method
- If you have installed a plugin, the plugin files must be read and loaded into the memory on every page load. This overhead can be avoided by using putting the code into the template file which is already in the include list.
- Don’t have to worry about plugin updates
- Granted, current WordPress version make it very easy to update plugins. But still, if you embed the code, then there is no need to update the code every month or so.
- Much more customizable than the plugin
- You can write the code to get the exact functionality you want. You cannot get that with a plugin.
- You learn more about WordPress
- This is perhaps the most important effect – you learn more about wordpress template tags, about PHP, about wordpress internals and lot more.
- Not as easy as using a plugin
- For those who work with WordPress and PHP code all the time, like myself, editing the code may be easier than finding, installing and configuring a new plugin. But for most normal people, using the plugin is a much easier option.
- Have to be familiar with coding, PHP, FTP, etc.
- To do custom coding, you have to be familiar with technologies like PHP, HTML, FTP uploading etc. If you are not familiar with these, you will have to put in a bit of time to learn it.
- Changing the theme involves a lot of work.
- You will have to port all the changes you made in your old theme to the new theme whenever you decide to move to the a theme. The more you customize a theme, the more time you have to spent when moving to a new theme.
Plugin Killer Series
With this in mind, I have decided to create a series that shows how to ‘kill’ some unnecessary wordpress plugins. You will be able to get the same functionality by using the custom code in your template files.
The first post in this series is already done – it is the ‘Avoid Duplicate Content – Use Canonical URL in WordPress‘ where I showed how to create the same functionality as the Canonical plugin.
More to follow. If you are interested in these posts, make sure you have subscribed to Bin-Blog Feed – if you have not done so already.