Friday 9 September 2016

Chigboken

18 Useful Tricks To Speed Up WordPress & Boost Performance

18 Useful Tricks To Speed Up WordPress & Boost Performance

choosing a web host will be the most important decision for the success of your site. If you are not on a good web hosting service, then everything else you do to speed up your site will simply fail.
If you are just starting out, then we recommend Site ground. They are an official WordPress recommended hosting provider, and are known to provide top-notch service.
If you can afford to spend a little more, then go with WPEngine. They are a managed WordPress hosting provider which means they will take care of all things WordPress for you.
For more recommendations, check out our guide on how to choose the best WordPress hosting.

2. Use a Caching Plugin

WordPress is written in PHP, which is a server side programming language. This means every time someone visits your website, WordPress runs a process to fetch the information and then display it on the fly to your user.
WordPress page cache explained
This process can slow down your site when you have multiple people visiting your site.
The solution is to use a caching plugin.
Instead of generating every page on the fly, your caching plugin will serve a cached version of the page to user’s browser.
We use W3 Total Cache on WP Beginner, but this plugin hasn’t been updated in a long time, and we will be switching soon.
We recommend that you use the WP Super Cache plugin. See our guide on how to install and setup WP Super Cache on your WordPress site.

3. Use CDN

Many files on your website are static such as images, CSS, and JavaScript. These files normally don’t change. However when a web browser is downloading your page, these files can stop it from displaying the page to your users.
CDN or content delivery networks solve this problem by serving your static files from their servers across the world. This frees up resources on your server, makes your website fast, and improves user experience.
What is a CDN
We use MaxCDN on all our projects. It works well with WordPress websites and integrates into your existing WordPress caching plugins. See our guide on how to install and setup WordPress CDN solution MaxCDN.

4. Optimize Images for Speed

Optimize images in WordPress
Images are one of the most engaging content on the web. Usually, most websites have dozens of images on each page. They also take the longest to load.
You need to make sure that the images you use in WordPress are properly optimized for the web. Most image editing software allow you to save optimized versions without any noticeable quality loss.
For more information and detailed instructions see our guide on how to save images optimized for web.

5. Use a Theme Optimized For Speed

Selecting a WordPress theme
When selecting a WordPress theme for your website, pay special attention to speed optimization. Premium WordPress theme shops like Studio Press, Themify, and Array Themes offer themes that are well coded and optimized for speed.
After installing a theme, there are several things you can do to optimize speed. But if your WordPress theme is poorly coded, then you may end up wasting time and valuable resources.
See our guide on how to properly switch your WordPress theme for a smooth transition to a well coded theme.

6. Use a Faster Slider Plugin

Soliloquy the fastest WordPress slider plugin
Sliders are another common web design element that can make your website slow. You need to make sure that you are using a WordPress slider that does not slow down your site.
We compared the best WordPress slider plugins for performance and features.Soliloquy tops our list of fastest and most feature rich WordPress slider plugin in the market.

7. Use Excerpts on Homepage and Archives

Using excerpts on WordPress homepage and archives
By default, WordPress displays your full article with all the images on the homepage and archives. This means your homepage, categories, tag, and other archive pages will all load slower.
Another disadvantage of showing full articles on these pages is that users don’t feel the need to visit the actual article. This reduces your page views.

8. Split Long Posts into Pages

Split long posts into pages
If you publish long form articles with lots of images, then consider splitting them into multiple pages. WordPress comes with built-in functionality to do that.
Simply add <!––nextpage––> tag in your article where you want to split it into next page. Do that again if you want to split the article on to the next page as well.
For detailed instructions, see our tutorial on post pagination – how to split WordPress posts into multiple pages.

9. Split Comments into Pages

Paginate comments
Some of your articles will get more comments than others. If you are displaying all the comments on the same page, then it will increase your page load time.
WordPress comes with a built-in solution for that. Simply go to Settings » Discussion and check the box next to ‘Break comments into pages…’ option.
Paginate comments in WordPress
For detailed instructions, see our guide on how to paginate comments in WordPress.

10. Remove Inactive Plugins

Many beginners often install too many plugins and then forget to uninstall a plugin that they are not even using.
This is problematic because not only these plugins increase your WordPress backupsize, they can also slow down your website.
Review installed plugins on your WordPress site and remove the plugins that you are not using.

11. Keep Your Site Updated

WordPress updates
WordPress is a well maintained open source project, which means it is updated frequently. Updates fix security issues, bugs, and offer new features.
All WordPress plugins and themes are also regularly maintained and updated.
As a site owner, it is your responsibility to keep your WordPress site up dated. Not doing so will make your site slow and unreliable. It can also make your site vulnerable to security threats and hacking.
For more on this topic, see our guide on why you should always use the latest WordPress version.

12. Don’t Upload Videos to WordPress

Use YouTube to embed videos in WordPress
You can directly upload videos to your WordPress site, and it will automatically display them in an HTML5 player.
But you should NEVER do that!
Hosting videos will cost you bandwidth. High quality videos consume more bandwidth. WordPress cannot optimize quality of your videos or serve them properly to users with slow internet.
Hosting videos also increases your backup sizes tremendously, and makes it difficult for you to restore WordPress from backup.
You can easily embed videos in WordPress from video hosting sites like YouTube, Vimeo, DailyMotion, etc. This not only saves you from trouble, it also improves user experience and page load speed of your website.
For more on this topic, see our article on why you should never upload a video to WordPress.

13. Reduce External HTTP Requests

Cross domain requests
Many WordPress plugins and themes load scripts, stylesheets, and images from external resources like Google libraries, Facebook SDK, analytics services, and so on.
Many of these servers are optimized to serve data quickly. It is OK to use them, as they act like a content distribution network and will serve the relevant file more quickly than your web server.
However, If your site is making a lot of these requests, then this could slow down your website significantly. Try to reduce external HTTP requests by looking at the plugins and themes carefully.

14. Reduce Database Calls

Many WordPress themes are not properly optimized to utilize WordPress standard practices. Such themes end up making direct database calls, or too many unnecessary requests to the database.
Even well coded themes have code that makes database calls just to get your blog’s locale. Like this:
1<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
2<head profile="http://gmpg.org/xfn/11">
3<meta http-equiv="Content-Type" content="
4<?php bloginfo('html_type'); ?>;
5charset=<?php bloginfo('charset'); ?>" />
You can’t blame theme developers for that. They simply have no other way to find out what language your site is in.
But if you are customizing your site using a child theme, then can replace these database calls with correct information.
1<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
2<head profile="http://gmpg.org/xfn/11">
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Review your parent theme for instances like this that can be easily replaced with static information.

15. Optimize WordPress Database

Optimize WordPress Database
After using WordPress for a while, your database will have lots of data that you probably don’t need any more. Your database also needs to optimize tables for improved performance.
This can be easily managed with WP-Sweep plugin. It allows you to clean your WordPress database by deleting things like trash, revisions, orphaned meta, etc. It also optimizes database table structure with just a click.
See our guide on how to optimize and clean up your WordPress database for improved performance.

16. Limit Post Revisions

Post revisions take space in your WordPress database. Some users believe that they also affect database queries run by plugins which may not exclude revisions.
You can limit the number of revisions WordPress should keep for each article. Simply add this line of code to your wp-config.php file.
1define( 'WP_POST_REVISIONS', 4 );
This code will limit WordPress to only save last 4 revisions and discard older revisions automatically.

17. Disable Hotlinking and Leeching of Your Content

Prevent image theft in WordPress
Some content scraping websites automatically create posts from RSS feeds of other WordPress sites. That’s why we recommend showing only excerpts in RSS feeds.
See our guide on preventing blog content scraping in WordPress for more ways to deal with content scraping.
However, some content scrapers manually copy and steal your content. Instead of uploading images to their own servers, they serve them directly from your website. This way they steal your bandwidth, and you don’t get any visits at all.
Simply add this code to your .htaccess file to block hotlinking of images from your WordPress site.
1#disable hotlinking of images with forbidden or custom image option
2RewriteEngine on
3RewriteCond %{HTTP_REFERER} !^$
4RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?wpbeginner.com [NC]
5RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
6RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]
You may also want to check our article showing 4 ways to prevent image theft in WordPress.

18. Use a Faster Gallery Plugin

Faster image gallery plugin
If you have a photography website or a portfolio, then you will need to use a gallery plugin to display your images beautifully. It is really important that you use a WordPress gallery plugin that is optimized for speed.
We recommend using Envira Gallery, which is the best WordPress gallery plugin in the market. It allows you to create beautiful image galleries that are lightning fast to load.
We hope this article helped you learn some useful tricks to speed up WordPress and boost performance. You may also want to see our list of 40 useful tools to manage and grow your WordPress blog.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Chigboken

About Chigboken -

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :