By: Prem Tiwari | Last Updated:
Hi friend’s hope you are doing good. In today’s post i will share a very interesting and useful WordPress tips which will help you improve your WordPress based website.
WordPress requires a little housekeeping once in a while to keep it working right. Here is a list of things you should do on a regularly scheduled basis to keep your WordPress site running smoothly.
Always use updated version of WordPress, this will help you to secure your WordPress websites. If a new release of WordPress is out, we recommend that you upgrade. These new releases often include new and improved features and fixes.
Plugins are an exciting feature of WordPress. They add functions and features to your WordPress site such as adding customized post listings to featuring a local weather forecast on your site.
Every three to six months, check for the latest plugin version. This is easy to do from the Administration > Plugin Panel. If an update is available, WordPress will notify you with a banner below the plugin. Just click the “upgrade automatically” link, or click the “Download” link if you would prefer to upgrade manually.
To uninstall a WordPress Plugin:
Most WordPress Plugins have an option to completely uninstall themselves, though not all. If you wish to remove a WordPress Plugin permanently:
While you were designing your template files, you probably added a few things you commented out because they didn’t work right or you weren’t sure you really needed them, but left them there just in case you wanted them later. If you still don’t want them, go through your template files and delete those commented out codes and tags.
Optimizing your templates and style sheet is part of the normal activity of website designers and developers. While you have your template files open, take a moment to clean out some unwanted spaces. Having spaces before a code is fine, but there may be hidden ones after your code lines that just make the file size larger. There also might be three blank lines before some of the code when a single blank line might be all you need to separate some code from the pack. Delete those blank lines, but take care not to remove any spacing that should be left. Familiarity with PHP and HTML helps with this process.
Just as with your template files, it may be time to do a little housekeeping on your style.css file in your Theme folder. There is more information on optimizing your style sheet below, but start first by cleaning out the unwanted stuff in your style sheet.
Look for comments you’ve made to remind you of the things you did and changed. Do you still need them to remind you of modifications you made, or can they be deleted?
Look for empty lines and extra line endings and delete those down to one blank line to clean up your file size.
Is your style sheet a jumble of style references? Is it grouped alphabetically and are you tired of hunting through lines of code to find everything in your core structure (header, content, sidebar, footer) when it might be more convenient to group these together? Or maybe you have it grouped by section and similarity and you want it sorted alphabetically. Either way, it might be time to do a little housekeeping and arrange your style sheet the way that works best for your needs.
Tired of your old theme’s look? Maybe it’s time to do a little presentation housekeeping and change the look of your WordPress site. Thanks to WordPress’s support for themes, changing your site’s look is easy.
Check out the various resources for WordPress Themes. If you find one you like, install it and then activate it.
Don’t worry, your old theme will still be there. Test drive the new one for a while. You can always go back to the old one. If you are really determined to turn your theme housekeeping efforts into some serious work, check out the article on Theme Development to create your own unique theme.
Many users upload a lot of graphics to their site that they end up never using. If you find yourself with a lot of unused graphics and images, consider going through them and cleaning house by deleting them.
If you aren’t sure you will never need them again, but you aren’t using them now and want to remove them from your site if server site space is limited, move them to a folder in your hard drive WordPress folder called backup images or something similar and store them there, just in case.
Over time, your WordPress database can generate what’s called “overhead.” This condition is similar to a fragmented hard drive. Read this post for more information on how to optimize your database.
If you are using a WordPress Theme you haven’t modified, you shouldn’t have to worry about optimizing your website. Still, it might help. Site optimization means creating a “lean and mean” website that loads fast, is easy on the bandwidth, validates, and meets web standards.
WordPress stresses that code and style files should validate and be laid out with a lot of tabs so they are easy to read. The World Wide Web Consortium and the Web Standards Organization stresses that all web page code be compliant with their standards. If you are going to get into this, you should familiarize yourself with the most basic of these standards.
One of those standards is to present a clean and optimized style sheet and XHTML code. We’ve covered some of the housekeeping cleaning chores associated with WordPress files and functions, but if you really want to streamline your site’s code, take it a step further and look into your site optimization options.
Basically, total site optimization means validating your site’s HTML and CSS, testing the site’s design across browsers, ensuring web standards are met, including standards for accessibility – but let’s start with some simple cleaning.
Every space, character, and bit in your code and style sheets add up to bytes. That sentence came to about 64 bytes. Each byte of information adds up, and the larger they are, the longer they take to load. Do yourself and your users a favor by keeping your file sizes to a minimum. So where do all these bandwidth wasters hide?
If you have set your code to look pretty with lots of indents, have you checked to see if there are any TAB codes at the end of the line before the line break? In some themes, there tend to be a lot of those. You don’t need a TAB before a line break, only after, but somehow, these sneak into the code.
Using spaces to line up code adds to the size. A TAB is considered one character in most editors, but the five spaces that copy the TAB indent takes up five characters. Using double spaces instead of single spaces in your code and styles adds up, too.
Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.View all posts by Prem Tiwari