D5 Creation Blog

Essential Tips for Improving the Speed of your WP Site

Be honest: How disappointed were you after testing your website’s performance and seeing the results?

Pretty disappointed, huh?

Well I got news for you, admin. Good news is that you have an idea now of what’s wrong and what to fix. The bad news is that it’s going to take some solid work and effort to keep up the performance even after you get the score you want on PageSpeed Insight. It isn’t a one-off deal, not even if you’re on WordPress.
It’s a constant, raging war against bad maintenance practices and ignorance. And I’m here to tell you what you’ll need to do to win it:

 

web hosting

 

1. Start with Hosting

Every single hosting provider out there likes to present themselves as the providers of unlimited transfers, space, etc. with no downtime. This is one of the instances when something is “too good to be true.”

Performance isn’t really much of an issue on WordPress.com managed sites (because you don’t control much of the admin-end) but self-hosted WordPress.org websites really need to scratch the surface of their hosting provider’s marketing antics and delve deeper for the truth.

If you’re opting for Shared hosting, make sure to check with the service’s reviewers and users to see how the servers fair in terms of maintenance, security, storage, etc. Check the plans thoroughly to avoid nasty surprises later.

If you do not understand server-lingo, get a tech-savvy friend to help you find a provider whose servers aren’t best described as “soup kitchens”.

 

speed up wp

 

2. Caching and Server-side solutions

Caching is the best solution you have to make performance better for your recurring visitors.

  • WordPress plugin repository has WP Super Cache, W3 Total Cache, WP Fastetst Cache (another pretty good plugin), any of which you can install and use to improve your load speed by serving static HTML pages to revisiting users.
    Just make sure that you actually understand the features before installing your pick of the caching plugins. W3 Total Cache is quite comprehensive complete with built in integration to CDN (more on that in a moment). Others may also take care of minifying stylesheets and JavaScript, enable compression, employ browser caching etc. to expedite your performance optimization process
  • Since WordPress runs on MySQL database, you can also use query optimization scripts for faster querying times. If you don’t have an IT guy, you can just hire WordPress developers to implement server-side caching scripts like Memcached and Redis to improve back-end performance like nothing else can
  • Implement Browser caching by placing this code snippet in your .htaccess file:

wpspeedup

 

3. Front-end optimization

Caching plugins can take care of minifying stylesheets and JavaScript (reminder: check the features before getting the plugin). However, we can improve the perception of performance by improving front-end loading times with some sneaky techniques.

  • There is the lazy-load filter for images (your images will only load if the user is actually looking at them). Install Lazy Load XT plugin to use this filter on all your media content: images, videos, iFrames, what have you
  • There is image compression too, of course. This is also easily done with plugins like EWWW Image Optimizer or WP Smush Pro
  • CSS Spriting is another technique with which you can create a complete picture out of various images scattered across the page (As could be the case with background images). This reduces the number of HTTP requests and significantly improves load times (by cutting down round trips). Use a tool like Sprite Pad to generate the sprite and its code. Make sure to paste this using a Custom CSS plugin or Child theme
  • Move all JavaScript snippets to the footer.php template file so they load last

 

cdn

 

4. Content Delivery Network

CDN is the saving grace of every website that’s currently serving millions of people across the World. They work by using a set of servers spread across the globe which serve a cached copy of your site’s dynamic content to the visitors nearest to the server.

You can use a CDN service by signing up to one of them: MaxCDN (can be integrated using W3Total Cache), CloudFlare, Amazon CloudFront, etc.

Remember that a CDN is a viable option for medium to high traffic websites with global audience. If you do not plan to get more than 40 visitors a month from your own town, you can obviously choose not to use it.

 

wp plugins and themes

 

5. Themes and Plugins

WordPress customizer is pretty cool, but themes that really on visual composers and extensive customization may also jack up your load times.

Check your themes/plugin author or your WordPress Development Company’s portfolio and track record to see how much attention is paid to the cleanliness of the code. Themes like Simplify, Newspress and Discussion help keep up to 80% of front-end performance issues at bay with clean, compliant coding practices and the simple factor of being lightweight and error-free. Check the performance in demo websites/work samples and test them for performance and W3C compliance if you must, but ensure quality before you put down your money on ready-made or customized WordPress web development.

Also make sure to analyze your plugins’ performance using P3 (Plugin Performance Profiler), which will generate test traffic and diagnose your plugins with issues based on their individual load times. Any plugin that’s taking too long to load, uninstall it.

This improves performance as well as security.

 

6. Database cleaning and optimization

WordPress runs on MySQL database, which can get cluttered with old post revisions, spammed/unapproved comments, orphaned metadata, etc. which will adversely impact your query times and therefore performance.
To clean the database, use a plugin like WP Sweep or WP-DB Manager.

 

Endnote

As I said in the beginning, this is not a one-off thing. Just as you need scheduled backups to keep the safety net active at all times, your website needs to keep up its performance.

Piece of Advice: Look to your estimated annual goals from the WordPress website instead of current state of traffic/subscription etc.
Godspeed.




Author : Lucy Barret

Lucy Barret is an extremely talented blogger and experienced Web developer. She is currently working for a PSD to Wordpress company and handling major projects. In her free time, she likes to read and write technical articles

Comments are Closed