27 Tips to Speed Up WordPress Site in 10 Minutes

Do you want to speed up wordpress site? It’s very difficult to find everything in one place. Therefore, In this article, I am going to share all those most actionable steps, which will help you to improve wordpress speed immediately.

First of all, let me clear one thing. Page Speed is the main ranking factor of Google ranking algorithms, as well, fast-loading pages improve user experience, increase page views, and conversions.

In this comprehensive guide, I cover everything, which professionals use to optimize their wordpress site speed.

Why Speed is Important for a WordPress site?

According to expert studies from 2000 to 2016, the average human attention span has dropped from 12 seconds to only 7 seconds.

It means now website owners have only a maximum of 5 seconds to show page content even very little time convinced them to read the entire article.

In other words, if the website is not loaded within 5 seconds, users will potentially leave the website before it loads.

Think with Google team did research on bounce rate and conversion, They found if the website load time goes from one second to 10 seconds, the bounce rate increases 123% and high probability to conversion drops 95%.

page loading time decrease conversion

StrangeLoop case study on Amazon, Google, and other big sites, a 1-second delay in page loading time can lead to a 7% loss in conversion, 11% more scattered in page views and customer satisfaction decreases by 16%.

StrangeLoop case study

Back in 2010, Google said page speed was a ranking factor but only for the desktop results.

But in July 2018, Google released a new algorithm related to the page speed called “Speed  Update” for mobile search results. Now Google speed update affects the slower website by pushing them down in both device search results.

In conclusion, if you take your site as a true business and want more traffic, revenue, leads, etc from the website. For the reason that you must optimize the wordpress site for mobile and desktop.

How to Do the WordPress Site Speed Test?

I always suggest you check website speed in the tools not by browsing your site frequently in your browser.

Because of almost all browsers including Chrome, Yahoo, Mozilla Firefox store website cache, so whenever you open your website it will automatically prefetch the site from cookies, therefore, your site loads faster.

Almost all beginners make this huge mistake, and they think their website speed is good and running well.

Moreover, all users never have the same experience, when they visit your site for the first time. Your website is not properly optimized, then definitely your wordpress website takes too long to load. If users from different geographic locations, they will have a completely different experience of the same site.

That’s why you need to use the WP speed test tool. By using tools, you can check your site speed without cache, as well you can test site speed by selecting the different geographic locations.

There are lots of online free tools to test wordpress site loading speed.

Page Speed Checker Tools

Whatever your website current speed test score, your main goal must be reduced site loading time under 2 seconds.

Try to make it faster as you can, the better it is.

NOTE: Before Speeding up a wordpress site, take the backup of an entire wordpress site. During the optimizing, if something goes wrong, you can easily restore your website to the old version.

Below you will get lots of tips, some tips you can implement with yourself. But, for some advanced WP performance optimization, you need wordpress developers.

Without doing future ado, let me share the best practices for speeding up your website.

Important of Good WordPress Hosting

Hosting plays an important role in wordpress blazing-fast performance. A good hosting company like SiteGround provides excellent Manage wordpress hosting. As well, they provide additional features for WordPress like SG page speed plugin, STAGING, SuperCacher Tool and much more.

Siteground is top-rated, trusted, and recommended hosting by Woocommerce, WordPress.org, Yoast, and so on.

If you want to host the wordpress website. I recommend you buy Manage WordPress Hosting, apart from shared hosting.

Because in shared hosting, the hosting provider shares the same server resources with other customers. So, if the neighboring sites get lots of traffic, it can impact the performance of the entire server and slow down all other websites that are hosted on that server, including your website.

On the contrary, in Manage WordPress hosting, you will get specific manageable space in hosting servers. No matter neighboring websites get lots of traffic or not, that will not impact your website speed and performance.

WordPress managed hosting will help you to improve website performance because it’s every configuration is specially set up to increase wordpress speed.

Install Cache Plugin in WordPress Site

WordPress software is “Dynamic”. it means whenever someone visits your site, every time your page loads.

WordPress does a process to find information, bring all information together, and then display it.

This process is a very lengthy process, in case your site has multiple visitors at once,  it can slow down your website in a bad way.

Therefore, I highly recommend you use a cache plugin in your wordpress site. A cache can speed up wordpress site 2x to 5x faster.

Let me show you the difference in both.

When wordpress page load, it’s requests go to PHP » MYSQL » Server » HTML Content » Users. It is a very long and time-consuming process.

Speed performance

However, when you use a cache plugin. Instead of going through the entire page load process, the user will get a direct cache copy of HTML Content.

When it comes to cache, commonly used in two different ways.

  1. Server level cache
  2. Cache with wordpress plugin
  • Server Level Cache

If you use SiteGround hosting. So, it is very easy for you to manage server-level caching with the SuperCacher tool.

Simply log in to your Siteground Dashboard » Speed » SuperCacher: “enable it” to increase speed of the site like a breeze speed.

siteground hosting c-panel

Later you need to install and active SG Optimizer plugin to manage SuperCacher tool settings.

Advanced Tip: If you want more performance and speed? I suggest you, you should connect the Sucuri web application firewall with SuperCacher Tool. By combining the Sucuri firewall, you can increase site speed by up to 70%.

  • Cache With WordPress Plugin

Whether your hosting company doesn’t provide a server-level cache facility, then you need to use the WP Rocket WordPress cache plugin.

WPRocket is all in one plugin with all features for speed up wordpress site. More than 1,099,780 users using WP Rocket, and it performs well without any hassle with every hosting company.

wp rocket cache

Wp Rocket interface is very easy to use for beginners.

Furthermore, WP Rocket has a feature to combine the Sucuri web application firewall.

How to Speed Up WordPress Site?

It is a very common question by beginners that is  How to speed up my wordpress site, so here I am going to share 27 smart ways to speed up a website site.

  • Make your Site Mobile Friendly

Mobile is the reality of the real digital world. More than 50% of traffic comes to websites from mobile devices.

According to Statista statistics, in 2018, 52.2% of global web traffic generated through mobile phones. And that continues to grow each year.

mobile users increase continuously

73% of mobile users say they have left sites that page slow to load, and 40% of users eschew a site if it doesn’t load in 3 seconds or lower.

Well, if your site is not loading fast, Google and your audience, both think your site morbid. You will lose visibility and traffic in huge amounts.

  • Google Mobile-Friendly Testing Tool

Do you know? Is your website mobile-friendly?

If you don’t know, you can figure out from Google mobile-friendly testing tool, this tool is one of the best tools on the internet by Google.

google mobile friendly test tool

Before you do anything else, you must test how fast your site is.

You can use Think With Google test my speed tool, or you can use the above mentioned any one tool.

think with google tool

It’s fine if your wordpress site is slow. In this article, you will get lots of performance tips to make your site faster so not a single visitor will go by hand.

  • Select the Server Location Closest to the Target Audience

Certainly, server location directly impacts on website speed. The closest data center to your visitors, your website will load faster for them.

When visitors visit the website and send a data request to the server, the server receives and processes a request from visitors is known as its latency.

In other words, your visitors and data center is too far from each other, it will take more time to reach the destination. Thus data travel from one point to another point is called latency.

When you purchase hosting beer in mind that is always chosen server nearest to your most targeted audience location.

So, if you choose the data center in the USA, and visitors also from the USA, the site will load fast.

On the contrary, If Visitors from the UK, boost latency process time and it directly affects website loading time.

So if your audience in multiple locations, use the CDN (Content Delivery Network) with your server. We talk about CDN later in this article.

If you are planning to purchase hosting? I highly recommend you to purchase Siteground hosting.

Siteground has servers in multiple locations. As well, they offer FREE CDN features with every hosting plan.

  • Delete Unnecessary themes

When you install wordpress on your site. At that time, WordPress automatically installed 4 themes on your site.

Those themes are very simple to look and almost not optimized for speed. You really care about site design and speed, then you need to use well-optimized, provide in-build good design template, and lighthouse wordpress themes like Generatepress.

Generatepress is the most popular and lightweight theme. With it, the most recommended and trusted theme by industry top leaders.

So, when you use an optimized theme, then you don’t need the default theme of wordpress. You should delete those unuseful themes.

Because unwanted plugins and themes tremendously increase your web file size.

unnecessary themes

As well, it will increase your backup file size and put an overwhelming load on the server when backup files are being generated.

So, it’s a better decision to get rid of that plugin and theme for speed up wordpress load time.

Navigate to the Dashboard » Appearance » Themes: Choose the unuseful theme, when you open theme details. On the right side in the footer area, you will get the DELETE option.

delete theme for speed up wordpress site

Turn by turn delete all those unnecessary themes from your wordpress site.

Just like this, go to the plugin section and delete all un-useful plugins.

  • Avoid too Many Ads & Scripts on a Single Page

If you use AdSense ads or any other third party advertising network ads on your site, it will increase the page load times by 80.08%.

Because third party ads are full of unnecessary HTML and Scripts, it adds a big chunk of data on the web page and directly affects your website speed.

However, if the third party advertisement is necessary, you should use Google Adsense or Media.net ads, both networks ads are optimized. So, these networks reduce the site speed slightly compared to other ad networks. As well, both networks give high CPC.

Bonus Tips: Minimum display 5 ads on a single page if you follow this tip, your page size and loading speed maintain according to Google ads and page speed guidelines.

  • Use the Latest Version of the Themes and Plugins

Every theme and plugin update comes with new features, fixes security issues, improves performance, and bug-free solutions than the previous version.

So keep updating your wordpress version, as well as theme and plugin too.

In case, If any plugin does not provide an update for a long time or not tested with the latest wordpress version. I highly suggest you, find an alternative to that plugin as soon as possible.

On the other hand, the old version plugin and theme effortlessly can be hacked. So for your wordpress site security, you need to move on from the old version plugin and theme to the latest new updated version.

If you don’t update your wordpress site, you are risking your site security and missing out on new features. As well, they can make your site slow and unreliable.

  • Use Faster Loading Plugins

We use lots of plugins in your wordpress site for different features and help you to make any changes easily. WordPress plugin performance impact on site load time. And poorly coded plugins are hurting you more than helping. However, that plugin often takes too much load, so its direct effect on page loading speed.

For finding out the best and fast loading wordpress plugins, I did an expert roundup. I asked them, which one plugin they are mainly using on their wordpress sites. I got plenty of common answers, It is surprising that I furthermore use almost all of those plugins.

The following plugins are faster-loading, easy to use, and most recommended by almost all experts.

Gravity Forms: The best WordPress Contact Forms Builder.

Elementor PRO: The most advanced page builder plugin for WordPress.

Social Snap: Stylish social media plugin.

Akismet Anti-Spam: Advanced spam protector for WordPress.

Really Simple SSL: Install SSL Certificate in WordPress site in one click.

WP Rocket: Number #1 Cache Plugin for WordPress.

Yoast SEO: Best Plugin to Improve On-page SEO.

Rank Math: Number 1 WordPress SEO Tool.

  • Optimize WordPress Background Processes

In the wordpress Background, there are so many scheduled tasks that are run. Below are some examples of the wordpress background process.

  • Automated backup task by a wordpress plugin
  • WordPress cron jobs to manage and publish the scheduled post
  • WordPress cron auto-mode job to check for new updates
  • Search engines and other crawlers trying to inspect site content

WordPress cron job for scheduled posts and updates tracking have the least impact on website performance.

On the other hand, distinctive background processes, like the backup plugin and content fetching by the search engine, can slow down the site during the process.

For the backup process, you need to use a well-optimized plugin like Updraftplus, which takes and manages update tasks during the low traffic time of your website.

If you post weekly or monthly, you make sure you adjust the automated frequency backup according to that.

For the crawling process, you need to keep an eye on your site crawling report in Google Search console. Your site error can make your site slow down. So try to fix all those errors and warnings that appear in search consoles.

Visit the following link to check the crawl status report of your site. If Google makes too many requests per second and slows down your hosting servers, you can limit the crawl rate for root-level sites. Follow this link to adjust the Googlebot crawl rate.

  • Use Expect Feature on Homepage and Archive Page

WordPress by default shows the full content of the articles on the homepage and your site archives page like categories page, tags page, etc. Those all pages display the full content of each article so that the page will load slower. Due to this, the speed of the entire website will be slow.

The second biggest disadvantage is that users will be able to read the article without visiting the actual article, this can reduce pageviews and increase bounce rate.

If you use a good optimize theme like Generatepress. This theme automatically determines content display settings and shows only limited words on the homepage and archives pages.

If your theme does not provide this facility, you can set your site to display content in expect format instead of the full content.

  • Option 1:

Go to the Dashboard » Setting » Reading » For each post in a feed, include: ChooseSummaryinstead ofFull text.

speed up wordpress site

  • Option 2:

Go to the Dashboard » Appearance » Customize » Layout » Blog » Content Type: ChooseSummaryin place of “Full text.

speed up wordpress site

You have 2 options to enable expect features on your site. The second option is provided by theme, so If you use Generatepress theme, go with the second option. If you are using another theme, then go with the first option. That option is the default wordpress setting.

  • Break Comments into Pages

split comments into pages

Are you getting lots of comments on your post? That’s a good sign, your audience is engaged with your content.

On the other hand, when all those comments will load, it will impact on your site speed.

You can’t delete those comments, but you can manage comments by breaking into pages.

WordPress has an in-built solution. You can navigate to Dashboard » Setting » Discussion » Other Comment Settings: Unable the feature by check the box Break Comments into pages.

break comments into pages

Advanced Tip: Stop crawling comments by search engine crawlers, because search engines like Google typically index comments as additional content, So it will decrease the content quality. Furthermore, people make backlinks by putting their site URL into the Comment URL section. So, whenever those comments links expire, it will show 404 errors in your search console.

So, Simply disallow comments in robots.txt file and keep your search console clean.

  • Disable Pingbacks (Both, Self & External)

Pingbacks are automated comments when other blog posts link to your post. Actually, that is not a comment, that is worthless queries made by wordpress to alert you to someone link to your post.

This is a great feature, but now we have lots of third party brand monitoring alerts tools like Google Alerts, Ahrefs,  SEMRush, and so on.

So you can disable wordpress pingback alert feature, because when it’s come to page speed it will create lots of requests on the server to load it, and another disadvantage of pingback is increased chance DDoS attacks.

You need to disable both types of pingback Internal Pingback (own blog/self pingback) and external pingback (other blogs).

  • Turn of External Pingbacks

For turn off External Pingback: Dashboard » Setting » Discussion » Default post Settings: Uncheck “Allow link notifications from other blogs (pingbacks and trackbacks) on new posts”.

increase wordpress site speed

This setting only turns off pingback on your next new post. Now you have to turn off pingback on your already published post.

Go to the: Dashboard » Post » Select all posts » Bulk Actions » Edit » Apply Bulk Editor » Pings: “Do not allow.

Speed up wordpress website

  • Turn of Self-Pingbacks

When you doing an internal link with your new post to your old post, that time wordpress also generates pingbacks comment, it’s called self-pingbacks.

You have 3 ways to turn off self pingbacks, by using FREE and paid wordpress plugin and by editing functions.php file of your theme.

WordPress Plugins
  1. No self pings plugin
  2. Perfmatters

Perfmatters is a paid lightweight wordpress performance plugin for speed up a wordpress site.

In other words, Perfmatters is the best wordpress speed plugin, and it is an alternative to Wp Rocket.

best wordpress speed plugin

Adding code in Function.PHP file

If you don’t want to invest money on a paid plugin, you should apply an alternative method. You have to add the below code into your theme function.php file.

function wpsites_disable_self_pingbacks( &$links ) {
  foreach ( $links as $l => $link )
        if ( 0 === strpos( $link, get_option( 'home' ) ) )
            unset($links[$l]);
}

add_action( 'pre_ping', 'wpsites_disable_self_pingbacks' );

Are you not familiar with wordpress coding? Still, you can add the above code easily in your WordPress site with free code snippets wordpress plugin

In other words, Without editing theme coding, you can add any codes in your wordpress website.

  • Use CDN (Content Delivery Network)

As we discussed earlier in this post, Users come from different geographical locations on your website. And all users would have a different experience of website loading speed.

This happens because of the location of your web hosting servers and audience location, if the audience is too far from servers location, then they might have a bad experience of your website loading speed.

For example, if you choose a web hosting server in the USA. When visitors come from the USA itself. Typically, your website loads faster than UK and Indian visitors.

Because the UK and India visitors’ latency process time is too long compared to the US, that’s why different location visitors have different site speed experience of the same site.

CDN (Content Delivery Network), can speed up wordpress site loading time for all over the world’s visitors.

CDN is the network of servers located all around the world. Each server is designed to store wordpress site’s static and sometimes dynamic files, files like Images, CSS, JavaScripts, and video streams.

When you enable the CDN feature, whenever users visit your website they receive static files of your site from the nearest server to them. As well, CDN reduces bandwidth on your own web hosting so your hosting will also be fast because CDN does lots of work.

Wordpress speed optimization

I personally use Cloudflare CDN on all my websites, including this one. Cloudflare railgun feature is awesome, it has increased my blog speed by 200% without any caching plugin.

  • Embed Video, Audio, and Images Instead of Upload

WordPress provides an Add Media option for direct upload audio, video, and images to your wordpress site, but you must never do that.

Because when you upload video and audio on your website, it will use lots of space on your hosting bandwidth. If your bandwidth overload, your web hosting provider can charge extra fees for additional bandwidth or they request you to upgrade your hosting plan.

If you use local hosting, sometimes they may shut down your site temporarily. You need to use those Hosting that provides unlimited bandwidth.

However, hosting large files impacts your backup size enormously, and when you restore your wordpress backup it will be a difficult task for you.

Instead of uploading videos on your server, you should embed it from a third-party video hosting server like Youtube, Vimeo, Soundcloud, Dailymotion, and so on. They have dedicated bandwidth for it.

You just upload your videos on that platform, after that, copy the URL and paste your video’s URL in your post, WordPress has in-built video embed features so it will embed video automatically.

For audio, we highly recommend Blubrry, it is the best audio and video hosting service provider.

  • Use Lightweight Theme for Speed Optimize

Everyone loves beautiful and good looking themes. However, some good looking themes are actually poorly coded with unnecessary scripts. When you select the theme for your wordpress site, beer in mind, always choose that theme, which will especially optimize for speed.

Because you can make your site impressive-looking and beautiful with a page builder like Element.

You will get premium well-coded for speed, good looking, and accelerate wordpress themes from theme shops like StudioPress, CSSIgniter, and Themify. If you want to build a business website, a single-page website, and an E-commerce store, these are the best places to get the PRO theme in your budget.

However, if you want to start your own blog. The Generatepress theme is best for you. It is lightweight and well-coded for speed optimized.

As well, almost all bloggers and entrepreneurs are using this theme on their blog. I also use the Generatepress theme on this blog too.

  • Optimize Images for Better Speed Up WordPress Site

According to research, colored visuals (images) make people 80% more likely to read your content and boost engagement of the content.

However, In August 2019 HTTP Archive did research on page weight. according to that report, After videos, images make up on average 34% of a total webpage’s weight.

In other words, if your wordpress site images are not optimized, it will slow down your site instead of helping. Non-optimized images are common speed issues on beginner websites.

Wordpress site slow

Altogether, image optimization is more important than CSS, Fonts, HTML, JavaScripts, and other types of script optimization.

Before you upload the images on your wordpress site, you need to reduce the image file size. In the original format, images have very huge files size.

We have lots of ways to reduce image file size without losing quality.

First, let me give you 2 Basic image optimization steps:

  • Use the JPEG format image as far as possible. Because the JPEG image file size is 80% less than the PNG image file size.
  • The size of your image should be according to the WordPress image guidelines. If your images are in the proper size, it loads smoothly.

These steps are compulsory, by doing these steps your half work will be done.

Now you might be wondering to know, which image format do I use most?

On all my sites including this one, I use only JPEG and PNG formats.

  • If images have lots of different colors or lots of visual information like Infographic, then I use JPEG format.
  • If images are transparent or simple images like a screenshot, then I use PNG format.

Now you have to optimize images with third party image optimization service. This step is an advanced step, so don’t skip it.

You are wordpress users, so plugins make your work easy. Lots of amazing plugins are available in the wordpress directory for image optimization that does the entire process automatically.

Below is the top image optimization plugins list:

I use the Imagify plugin on my website to Speed up image loading time. It automatically compresses images when we upload them to the wordpress website. In other words, we don’t need to compress images manually. As well, We don’t even need to take care, because they do their work automatically in a proper way.

Imagify offers 3 levels of compression that is Normal, Aggressive, and Ultra. I personally use Aggressive mode to optimize all images. Because, in this mode, the file size of Images reduces, while not reducing quality.

best image optimization plugin

As you can see, Imagify reduces the file size by 85% – 90%. The saving score goes up and down, it depends on images.

Still, do you not optimize your website images? Try Imagify for FREE, optimize images, and speed up wordpress site.

  • Split a Long Post into Pages

Audiences love to read long in-depth blog posts. Even long blog posts rank higher in the search engines.

If you publish in-depth detailed long posts with lots of images and videos, it’s a high chance that blog posts take lots of time to load.

Instead of having a long blog post break it in multiple pages.

When the user visits that blog post, only the first page will load, instead of the entire post, which will be loaded quickly.

You can do page pagination by putting a page breaking tag [<!––nextpage––>] at that place where you want to split the post into the next page. Or you can use the JQuery Post Splitter plugin.

As we discussed above, don’t use too many plugins, So you should split the blog post into pages using tags (code).

  • Use Lazy Load Feature on Images

If you add lots of images and embed multiple videos in a post when users visit the post, at that time the entire website loads including all images and videos. it directly impacts on speed.

Instead of loading all images and videos together at once, lazyload gives you benefits. It will load only those images that will display on the user’s screen. And all other images will be replaced with placeholder images.

When the user will scroll down the post, then the image will load turn by turn.

WP Rocket offers a lazy load feature in their premium version for images, Iframes, and videos. WP Rocket has a free wordpress lazy load plugin as well, but the free plugin version only works for images.

You can lazy load your blog post comments, by using this Lazy Load for Comments plugin.

  • Optimize wordpress website Database

WordPress consecutive store the site data in the server database, so you are using wordpress for a while. Certainly, your database has lots of unwanted data like spam comments, blog post revisions, auto-drafts data, deactivated plugins and themes data, tags, tables, Transients, etc.

You can easily clean up your database in one-click using the WP Rocket plugin. Many other free plugins are available in the wordpress directory, but only WP Rocket provides an automatic database cleanup facility. You can schedule automatic database cleanup on a daily, weekly, or monthly basis.

WP Rocket database

Note: Before you start optimizing your wordpress database, backup your database. Because after cleanup, there is no way to restore it.

  • Limite Your Post Revisions

speed up wordpress site

Whenever you update your blog post in wordpress, the old blog post version is saved in the wordpress database as post revisions.

Revisions are helpful when you accidentally lose your live blog post. You can restore the entire blog post from the post revision feature.

However, post revisions use lots of space in your database, it will increase bandwidth and backup size.

Instead of storing all revisions, limit the revisions for the last few revisions.

You can limit the number of revisions simply add one line code in your wp-config.php file.

define( 'WP_POST_REVISIONS', 5 );

If you will add this exact code, then wordpress saves only the last 5 revisions of your post and page, and older revisions automatically discard.

  • Optimize CSS & JavaScripts

Unoptimized CSS and JS increase your page weight aggressively because it has lots of unnecessary HTML and JS of white space, newline characters, block comments in theme, block deliments, and so on.

Computers don’t want those unnecessary files to load sites, those files only make your database bigger and take more time to load.

Simply you can Minify those JS, CSS, and HTML for better performance of your wordpress site.

You can manually Minify all unnecessary files if you have good knowledge of coding. But still, it’s a time-consuming process.

We are WordPress users, and we have plugins to optimize CS and JS.

WP Rocket is the best plugin for speed up wordpress sites. It has features to optimize CS and JS files in few clicks.

You don’t need any kind of technical knowledge, simply check the box of features which you want to enable.

Make wordpress faster

WP Rocket has one more option to optimize CSS. Once you install the WP-Rocket plugin in your wordpress site. After that, go to Dashboard » Setting » WP Rocket» Dashboard: Right side of the dashboard, you will get the Regenerate Critical CSS feature.

After optimizing CSS and JS, if any CSS takes more time to load than usual. You can Regenerate it to speed up wordpress site.

Wordpress page speed optimization

Note: Now next some steps are technical steps. So, you need to have little knowledge of PHP and WordPress theme files.

  • Reduce External HTTP Requests

Most of the plugins and themes make lots of HTTP requests to load assets such as Scripts, CSS, stylesheets, and images from external resources like Google, Facebook, Google analytic, and so on.

It’s necessary to use it. Most of the files are optimized for as soon as possible load. So it’s fine to use in your wordpress site. But each request impacts on-site loading time.

When it is optimized properly, then its impact is often not too noticeable.

However, if you are using lots of plugins that are making lots of database calls and HTTP requests, those plugins affect your site’s performance and user experience.

You can reduce external HTTP requests by disabling scripts and stylesheets. There are plenty of plugins and tools are available to figure this out.

But we do it manually with the browser’s developer tool (Google Chrome and Firefox)

  • Disable Plugin Stylesheets in WordPress

First, you need to find the handle or ID of the stylesheet that you want to deregister.

Simply, visit your website URL in Chrome or Firefox browser, then right-click or Ctrl + Shift + I, and go to inspect mode.

For finding stylesheet ID or handle, in the Elements » Ctrl + F » Search “stylesheet”: Grab all the stylesheet handle.

Wordpress website taking too long to load

After that, you can deregister all stylesheets by adding the below code in your theme function.php file.

add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'social-warfare-block-css-css' );
}

You can deregister multiple stylesheets in one go within this function.

add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
wp_deregister_style( 'social-warfare-block-css-css' );
wp_deregister_style( 'dashicons-css' );
wp_deregister_style( 'some-other-stylesheet-handle' );
}

Bear in mind, that deregistering stylesheets will affect plugin features on your wordpress site. You need to copy the contents of each deregister stylesheet and paste them in your site wordpress theme’s stylesheet (style.css) or add them as custom CSS in your additional CSS section.

  • Disable Plugin Scripts in WordPress

Similar to the stylesheet, you have to find the handle of javascript to deregister them. Although, you will not find the javascript handle from using Chrome or Firefox inspect tool.

Find the JavaScript handle, you need deep knowledge of plugin files.

On the contrary, Even if you are not a tech chop, you can still find the handle by adding the following code to the function.php file.

function wpb_display_pluginhandles() { 
$wp_scripts = wp_scripts(); 
$handlename .= "<ul>"; 
    foreach( $wp_scripts->queue as $handle ) :
      $handlename .=  '<li>' . $handle .'</li>';
    endforeach;
$handlename .= "</ul>";
return $handlename; 
}
add_shortcode( 'pluginhandles', 'wpb_display_pluginhandles');

After that, you need to create a dummy page to preview all the javascript handle.

For that, Dashboard » Post/Page » Add New: Paste [pluginhandles]this shortcode in page/post and save it. » Preview Page.

Once you preview that page, all the javascript handle list will display.

Improve wordpress speed

Now you have all script handles. So, now you can deregister them adding the following code in function.php file.

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
 
function my_deregister_javascript() {
wp_deregister_script( 'admin-bar' );
}

Use this code to disable all scripts in one go.

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );

function my_deregister_javascript() {
wp_deregister_script( 'admin-bar' );
wp_deregister_script( 'generate-offside' );
wp_deregister_script( 'another-plugin-script' );
}

As I said earlier in the above section, making any changes in plugin files will stop working plugins appropriately.

To solve this, you need to combine external javascript together.

You have to copy each javascript contents and paste it into one file to make that file main.

For Instance, You have two javascript files. The first one is abc.js and the second one is xyz.js. To combine both files, you need to copy abc.js file content and paste it into the xyz.js file. Once this process is complete, Later you should delete the abc.js file from HTML. Now you have only one main JS file instead of two.

By combining and removing JS files you can decrease database and HTTP requests, and increase wordpress speed.

However, sometimes it does not work smoothly as you want. In contrast, you need to do other experiments. Definitely, you will get errors, but you will learn from trial and errors like all experts do.

But I don’t recommend doing any trial on the live site. The best place to do wordpress optimization practice is the STAGING area. Only a few top hosting companies offer the STAGING feature with its hosting plan and SiteGround one of them.

If your hosting company doesn’t offer the STAGING area feature. Then, you can use a FREE wordpress plugin like WP Staging.

Do you want instant support and frequent latest STAGING feature? You should try the WP Staging premium version for FREE for 30 days.

  • Disable Hotlinking and Leaching of your Content

If you published valuable content with informative images on your site. Then the true fact is your content will be stolen sooner.

When someone uses your website Images directly on their website, instead of uploading on their server. So when users visit that site, at that time images will load on your server and use your bandwidth. Unfortunately, you will not get any traffic from it.

To avoid this, you need to disable hotlinking of images from your WordPress site.

For that, simply add image hotlinking block code in .htaccess file of your wordpress site servers.

#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?zarahumaid.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] 

Note: Don’t forget to change code with your own domain.

  • Use the DSN Level Firewall

Best practices for speeding up your website

A firewall helps you to protect your site from brute force attacks, malware, and hacking attempts.

Almost all firewall plugins run on your website, it means attackers are able to reach your wordpress hosting servers before they get blocked by them. While they are optimal only for security, but not for performance.

You need to secure your site at the website level as well webserver level. Therefore, I recommend using DNS level firewall providers like Sucuri.

Sucuri provides complete website security, protection, and monitoring service. So they block malicious and bad traffic before arriving at the site and increase your site speed by 70%.

  • Reduce DNS Lookup

DNS lookup is one of the common reasons to increase website loading time. Because we use lots of third parties scripts like conversion optimization, to figure out website analytic, and so on. 

To figure out which scripts make plenty of DNS requests.

Navigate to tools.pingdom.com » Run page speed test » Scroll down to go to “File Requests” section: There you will see a list of files that make DNS requests.

find DNS lookup file

As I said above, If some scripts take high DNS lookup time, then you can replace that scripts with new optimized scripts.

If you bought your domain from Godaddy, Namecheap, or any other domain solution provider. Probably your DNS lookup resolve service is not too fast than Sucuri, Google Domain, and Amazon route 53.

I personally use Sucuri. However, I didn’t move my domain from Godaddy but I have configured Sucuri to use a premium DNS service.

Whether you think, DNS lookup is the main reason to increase the load time of your WordPress site? Then, you must have to use CDN.

By using CDN (Content Delivery Network) will reduce DNS lookup requests. As a result,  you will see a straightway speed boost in website speed.

Another easiest way to solve the DNS lookup is the DNS Prefetching technique. This technique helps you to resolve domain names before the user tries to follow the link.

Almost all browsers support DNS-fetching. In wordpress, you can enable it by plugins and custom code.

WP Rocket has plenty of features to optimize wordpress site speed, including Prefetch DNS Requests.

I personally use WP Rocket to speed up wordpress site. Therefore, I always recommend it.

How to speed up a wordpress website

  • Connect & FIX SSL/HTTPS Issues

Recently install wordpress or switch your site from HTTP to HTTPS/SSL, then definitely you have seen mixed content errors.

If you want to find out this issue, then visit your site in the Chrome browser » Right-Click or Ctrl + Shift + I » Inspect Tool » Console.

mixed content error

However, it does not affect your site look but its impact on site performance. When you redirect your site from non-SSL to SSL version. After Process, if your site has mixed content error then definitely, your site takes more time to load.

In wordpress, one of the easiest ways to fix this by install plugin. Really Simple SSL plugin is the most reliable plugin to manage and fix SSL related issues. Hence, You can manage SSL certificates in one-click without any hassle.

I personally use a really simple SSL plugin on my WordPress site.

Increase wordpress speed

Although, if you use premium hosting like SiteGround, it has in-built features to activate and manage SSL. So without any plugin, you can manage your site SSL.

It’s a tiny step, but noticeable in speed up WordPress site.

  • Use latest PHP version 7+

PHP is open-source, server-side scripting and programming languages, wordpress software built-in core PHP language. Even plugins and themes are also built-in PHP language.

Time to time new PHP versions are released, almost all good hosting companies use the latest version of PHP which is higher than 7. Even PHP’s new version is 9x faster than its predecessors.

However, it’s possible that your hosting provider uses a slightly older PHP version.

You can use the version info plugin to find out which PHP version your WordPress site is running on.

Once you install this plugin, then you will be able to see your site wordpress and PHP version on the right side of the dashboard footer.

Speed up wordpress backend

If your website is running on a lower than 7.3 PHP version, request your hosting provider to update your PHP version.

Whether they are not able to do it? then you need to change your wordpress hosting. Choose a good hosting like Siteground which provides the latest version of PHP. With it, whenever the new PHP version releases, the Siteground team automatically updates your site  PHP version without any trouble.

  • Disable Emojis in WordPress

Emojis can increase engagement rates easily, but the sad truth is they are adding additional load on your servers and generating lots of HTTP requests on website loading. It can increase page loading time.

To avoid this, simply disable emojis on wordpress sites.

One of the easiest ways to do this is by using disable emojis with plugins.

If you are already using the WPRocket plugin, then you don’t need any other plugin because the WP-Rocket plugin has Disable emojis feature under Media optimization.

Speeding up a wordpress site

If you are not using WP Rocket plugin and also don’t want to install any other plugin in your wordpress site. Then you need to add the following code in the function.php file.

/**
* Disable the emoji's
*/
function disable_emojis() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
}
add_action( 'init', 'disable_emojis' );

/**
* Filter function used to remove the tinymce emoji plugin.
*
* @param array $plugins
* @return array Difference betwen the two arrays
*/
function disable_emojis_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( 'wpemoji' ) );
} else {
return array();
}
}

/**
* Remove emoji CDN hostname from DNS prefetching hints.
*
* @param array $urls URLs to print for resource hints.
* @param string $relation_type The relation type the URLs are printed for.
* @return array Difference betwen the two arrays.
*/
function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
if ( 'dns-prefetch' == $relation_type ) {
/** This filter is documented in wp-includes/formatting.php */
$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );

$urls = array_diff( $urls, array( $emoji_svg_url ) );
}

return $urls;
}

This step Speed it up a little on your wordpress site. Furthermore, it’s helpful in the long term.

Note: If you have basic knowledge of theme coding. Only then, add this code in your theme. Because editing source code wordpress themes can break your site.

Whether you are not familiar with coding, hire WordPress developers, or use emoji disable plugins.

Why Use SiteGround Hosting

Siteground is the number #1 web hosting company in the world. They offer all types of hosting services such as Shared, Managed wordpress, Dedicated server, Cloud Hosting, Email hosting, etc.

Right now more than 2,00,000 domains are hosted on Siteground hosting servers. More than 98% of customers love and recommend this hosting because of its amazing features.

SiteGround Hosting Features

  • 99.99% Uptime
  • SSD Storage in Servers
  • Custom Design C-Panel
  • SSH Access for security
  • FREE SSL with Every Hosting Plan
  • Latest PHP Version
  • FREE Cloud Flare CDN
  • STAGING Features
  • SG Optimize Plugin
  • FREE Website Migration Service
  • Install Unlimited WordPress
  • FREE Custom Website Builder
  • Unlimited Email Accounts
  • Unlimited MYSQL Accounts
  • One-Click AutoInstall WordPress
  • Facility of Auto-Update of Plugins
  • WP-CLI Access
  • Excellent Quik & Problem Solving Support

SiteGround PRONs

  • Promise to provide high-page speed
  • Affordable Price ($3.95/mo)
  • Site Security Service
  • 30 Days Money Back-Guarantee
  • Officially Recommend by WordPress
  • Recommend by Industry Experts Like
  • Single Hand Winner in GoDaddy & HostGator Comparison

SiteGround CONs

  • No Monthly Plan
  • High Renewal price
  • Not Offer FREE Domain With Any Plan

Why Use WP Rocket Plugin in your WordPress Site?

WP-Rocket is best wordpress plugins to speed up site. By using WP-Rocket plugin you can make the wordpress site load fast in a few clicks. In WP Directory lots of caches, JS, Scripts, etc optimization plugins. But you need different plugins for different optimization.

Although, if you use WP Rocket. Almost, you will get enhanced site speed optimization features in one plugin.

WP Rocket Features

  • Page Caching
  • Cache Preloading
  • Cache Lifespan
  • Sitemap preloading
  • Browser Caching
  • Prefetching DNS Requests
  • Database Optimization
  • Post Revisions Cleanup
  • Auto Draft Cleanup
  • Trashed Post Cleanup
  • Spam & Trashed Comments Cleanup
  • Expire Transients Cleanup
  • Database Cleanup
  • Minify HTML
  • Google Fonts Optimization
  • Remove Query Strings from Static Resources
  • Minify CSS
  • Combine CSS File Automatically
  • Optimize CSS Delivery
  • Remove JQuery Migrate
  • Minify JavaScripts Files
  • Combine JavaScripts Files
  • Defer JS Loading
  • Image optimization
  • Image Lazyload feature
  • Replace YouTube Iframe with Preview Image
  • Disable Emojis
  • Convert Images to WebP Caching
  • CDN
  • Control WordPress Heartbeat API
  • Mobile Detection
  • Multisite Compatibility
  • E-Commerce Friendly
  • Multilingual Compatibility
  • Connected Users

WP-Rocket PONs

  • Easy To Use
  • Set up in a few clicks (Video Tutorials)
  • Import/Export Set up
  • Developer Friendly
  • Minification/Concatenation
  • Schedule Database Cleanup
  • Google Analytics Add-on
  • Facebook Pixel Addon
  • Varnish Addons
  • Cloudflare Complementary Features
  • Synchronize Sucuri Cache with WP Rocket Add-on
  • 14 Days Money Back-Guarantee

WPRocket CONs

  • Only Email Support

 

Conclusion

That’s it for now. I hope this wordpress speed optimization guide helps you a lot. Go ahead and try out the above speed performance techniques.

Don’t forget to check the site load speed before and after implementing each technique. Do let me know, which tip works best for you? and which step increases your wordpress performance and speed.

Small Request, If you like this wordpress page speed optimization article, Please Share with others to help them to speed up wordpress site. You can join my premium community to get wordpress, SEO, Affiliate Marketing tutorials.

Leave a Comment

0 Shares
Tweet
Pin
Share