How to Speed Up your WordPress Website

Introduction

 

WordPress itself a great CMS platform powering the WordPress is used by 58.9% of all the websites under Content Management System Category. This is 27.8% of all websites on the internet. Of course, it is the most popular CMS since last few years,

But still, it has some lagging things ( Disadvantages) likes PHP security issues, daily spam comments/malware attacks,  bloated themes and plugins codes, lots of database queries on page load etc, but what we found the most is – its slowness, WordPress is still a slow platform even it is 4.7 + has some major improvement on its backend UI & UX,

So, here I will discuss some known and unknown tricks and tips to avoid slowness and increase your site speed,

 

Server & Hosting

 

The first thing you need to choose a good and reliable hosting provider, it may be a shared hosting, cloud hosting or any kind of VPS or dedicated servers. Before choosing any please check the WordPress minimum requirement – which is

  • PHP version 7 or greater
  • MySQL version 5.6 or greater OR MariaDB version 10.0 or greater
  • The mod_rewrite Apache module
  • HTTPS support

If you like to start a new business, having a limited budget, you can try any shared web hosting services from Inmotion Hosting, Hostgator, Site5, Bluehost or Siteground etc.

But, whatever the shared hosting company is, there are some limitations, I strongly recommend invest in proper hosting, and always go with managed WordPress hosting. There are few great managed WordPress service providers like Pantheon, Wpengine, Page.ly or Kinsta

Install Cache Plugins (the easy part)

 

Based on your server environment you should choose your Cache Plugins, However, I can recommend few plugins which can work in almost every environment, like W3TC (W3 Total Cache), a plugin with more that

like W3TC (W3 Total Cache), a plugin with more that 1+ million active installs and trusted by numerous companies like – AT&T, stevesouders.com, mattcutts.com, mashable.com, smashingmagazine.com, makeuseof.com, kiss925.com, pearsonified.com, lockergnome.com, johnchow.com, ilovetypography.com, webdesignerdepot.com, css-tricks.com etc.

The second one is  WP Super Cache 

Please keep in mind you have to be little careful to set up these plugins if you running on a shared hosting with limited capabilities,

Note: Don’t change anything if you are unsure of what you’re doing. Because W3 Total Cache or WP Super Cache may even slow down your website if not configured properly. (also, it is always best practice to use any single cache plugin at once)

Optimize Images

 

Before uploading images to your WordPress site, try to optimize then manually either using Photoshop – using Save for Web), ImageOptimtinypng or tinyjpg etc. also, please try to scale images before use, suppose you have a WordPress site and the main content area is maximum of 1170px wide, even you are on a big screen like TV, then there is no brainer to upload a 4700px wide picture of your face or your products,

For already uploaded photos you can use WP Smush or EWWW Image Optimizer or Optimus, along with these you can try few others like Imsanity and Shortpixel

 

Clean-up WordPress header & Other Code related Changes

 

By default WordPress make many database queries to serve the homepage or other pages on your website, these can be reduces a little by cleaning up header like this way,
Put the code snippet in your functions.php,

remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version

Next –

  •  Please delete unused themes and plugins,
  • Try to update PHP 7 than older version of PHP,  why? see the screenshot php7_infographic from zend.com
  • Ask your developer to use proper use of function_exists();
    <?php if (function_exists('my_function')) {my_function(); } ?>
  • Remove your unused Media.
  • Limit the number of revisions per post.
    define( ‘WP_POST_REVISIONS’, 4 );
  • Disable pingbacks and trackbacks.
  • Cleaning Up Your WordPress Database To Optimize Your Website’s Performance (most probably using – WP-Optimize Plugin)

Use a Content Delivery Network (CDN)

 

Using a CDN, or Content Delivery Network, can help to speed up loading times for all of your visitors. A content delivery network or content distribution network (CDN) is a globally distributed network of proxy servers deployed in multiple data centers. It serves content to end-users with high availability and high performance.

There are few which are really good to go –MaxCDNKeyCDN, or CacheFly etc.

With most of the best Cache Plugin like W3TC or Wp Super Cache, CDN settings are inbuilt and can be easily set up for your website,

 

Thanks for reading. However I feel I can add more points in coming days, I am an old WordPress enthusiastic so these are facts based on my personal experience working since last few years including clients and my personal WordPress websites,

Btw, so far if you enjoyed the article, please share it.

Also, you can check the useful infographic from QuickSprout – How Load Time Affects Google Rankings

How Load Time Affects Google Rankings
Courtesy of: Quick Sprout

 

If your current website is not speedy enough or you like to increase overall performance, you may please contact us directly through the get in touch below,

 

 

Allow us to speed up!

%d bloggers like this: