If you’ve ever done a search trying to find out how to accomplish something in WordPress, you’ve undoubtedly found post titles extolling the virtues of not using a plugin. You know something like ‘Build the Best XX Widget – Without a Plugin’.
If seeing a tutorial titled ‘Without a Plugin’ doesn’t annoy you, then you need to know a bit more about WordPress and plugins.
Are Plugins Bad?
It’s a long running debate, but no plugins aren’t bad. They don’t have to slow down your site. Poorly written plugins are the bad thing, but that’s the same with poorly written themes.
These ‘Without a Plugin’ tutorials undoubtedly tell you to put code in your theme’s
functions.php file. News Flash there is no fundamental difference with code running in a plugin, or code running in
functions.php. Bad code will still slow down your site and make it unstable.
The real thing these titles are doing is preying on unknowing site owners. See most site owners have installed a plugin, then had site issues. Of course uninstalling the plugin resolved the issues. Since the plugin caused them, and removing it fixed them, of course plugins must be bad.
Plugins !== Bad
So no plugins aren’t bad. No, not all your code should go in a plugin, nor should it go in a theme. The short version is that functions you want to live past this design of your site should be plugins. Functionality you want to only be around for the current site design, are prime candidates for themes.
At the end of the day, naming your tutorials ‘Without a Plugin’ does a disservice to the WordPress Community. You help perpetuate a myth, in a quest for pageviews. Unfortunately, it’s probably going to work and so many will continue to believe a myth.