Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
25 Million+
Websites using our plugins
Years of WordPress experience
WordPress tutorials
by experts

The Ultimate Guide to Boost WordPress Speed & Performance

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

No one wants to wait for a slow website. We’ve worked hard to make WPBeginner one of the fastest WordPress websites on the planet.

In today’s fast-paced digital world, fast-loading web pages are a necessity. They keep visitors engaged, improve your pageviews, and can even help with your WordPress SEO.

By tuning our own sites for performance and offering a professional site speed optimization service, we’ve learned the most effective strategies to make sluggish websites blazing fast.

In this article, we will share the most useful WordPress speed optimization tips to boost WordPress performance and speed up your website.

Boost WordPress speed and performance

Unlike other “X best WordPress caching plugin” lists or generic “X tips to speed up WordPress” tutorials, this article is a comprehensive guide to WordPress performance optimization.

We tried to cover everything from why speed is important to what slows down your WordPress site and actionable steps that you can take to improve your WordPress speed immediately.

To make it easy, we have created a table of contents to help you navigate through our ultimate guide to speeding up your WordPress site.

Table of Contents

Basics of WordPress Performance

Speeding Up WordPress in Easy Steps (No Coding)

WordPress Performance Optimization Best Practices

Fine-Tuning WordPress for Speed (Advanced)

Why Speed Is Important for Your WordPress Site

Studies show that from 2000 to 2016, the average human attention span dropped from 12 seconds to 8 seconds. Today, it sits at around 8.25 seconds on average.

What does this mean for you as a website owner?

It means that you have very little time to show users your content and convince them to stay on your WordPress website.

A slow website means users will potentially leave your page before it even loads.

According to a StrangeLoop case study that involved Amazon, Google, and other larger sites, a 1 second delay in page load time can lead to a 7% loss in conversions, 11% fewer page views, and a 16% decrease in customer satisfaction.

Strangeloop speed study

On top of that, Google and other search engines have already started penalizing slower websites by pushing them down in the search results, which means lower traffic for slow websites.

To sum it all up, if you want more traffic, subscribers, and revenue from your website, then you must make your WordPress website FAST!

How to Check Your WordPress Website Speed

Often beginners think that their website is OK just because it doesn’t feel slow on their computer. That’s a HUGE mistake.

Since you frequently visit your own website, modern browsers like Chrome store your website in the cache and automatically prefetch it as soon as you start typing an address. This makes your website load almost instantly.

However, a normal user who is visiting your website for the first time may not have the same experience. In fact, users in different geographical locations will have a completely different experience.

This is why we recommend that you test your website speed using a tool like IsItWP’s WordPress speed test.

It is a free online tool that allows you to test your website’s speed.

For more recommendations, you can see our guide on how to properly run a website speed test.

After you run your website speed test, you might be wondering what website speed you should aim for.

A good page load time is under 2 seconds.

However, the faster you can make it, the better. A few milliseconds of improvements here and there can add up to shaving off half or even a full second from your load time.

[Back to Top ↑]

What Slows Down Your WordPress Website?

Your speed test report will likely have multiple recommendations for improvement. However, most of that is technical jargon that is hard for beginners to understand.

Learning what slows down your website is the key to improving performance and making smarter long-term decisions.

The primary causes for a slow WordPress website are:

  • Web Hosting – When your web hosting server is not properly configured, it can hurt your website speed.
  • WordPress Configuration – If your WordPress site is not serving cached pages, then it will overload your server and cause your website to be slow or crash entirely.
  • Page Size – Pages load slowly if you use images that aren’t optimized for the web.
  • Bad Plugins – If you are using a poorly coded plugin, then it can significantly slow down your website.
  • External scripts – External scripts such as ads, font loaders, and so on can also have a huge impact on your website performance.

Now that you know what slows down your WordPress website, let’s take a look at how to speed up your WordPress website.

Pro Tip: Want to reduce the number of plugins on your site? Start using WPCode, which is a powerful code snippet management plugin for WordPress. It will easily help you reduce at least 5 plugins.

Importance of Good WordPress Hosting

Your WordPress hosting service plays an important role in website performance. A good shared hosting provider like Bluehost or SiteGround takes extra measures to optimize your website for performance.

However, on shared hosting, you share the server resources with many other customers. This means that if your neighboring site gets a lot of traffic, then it can impact the entire server performance, which, in turn, will slow down your website.

On the other hand, using a managed WordPress hosting service gives you the most optimized server configurations to run WordPress. Managed WordPress hosting companies also offer automatic backups, automatic WordPress updates, and more advanced security configurations to protect your website.

We recommend WP Engine as our preferred managed WordPress hosting provider. They are also the most popular provider in the industry. (See our special WP Engine coupon.)

[Back to Top ↑]

Speeding Up WordPress in a Few Easy Steps (No Coding)

We know that making changes to your website configuration can be a terrifying thought for beginners, especially if you are not a tech geek.

But don’t worry, there are ways you can tackle this.

If you’re not comfortable making changes to your site on your own, WPBeginner Pro Services offers an affordable Site Speed Optimization service that can handle it for you.

WPBeginner Pro Services

Our WordPress experts will help improve your site’s speed and performance in no time at all. The Site Speed Optimization service includes caching configuration, CDN setup, image compression, lazy loading, before and after performance report, and much more.

It’s a great option if you’re not tech-savvy, you don’t have time to do the optimizations yourself, or if just want total peace of mind.

However, we’ve helped thousands of WordPress users improve their WordPress performance.

So, we’ll also show you how you can speed up your WordPress site with just a few clicks (no coding required).

If you can point and click, then you can do this!

Install a WordPress Caching Plugin

WordPress pages are dynamic. This means they are built on the fly every time someone visits a post or page on your website.

To build your pages, WordPress has to run a process to find the required information, put it all together, and then display it to your user.

This process involves a lot of steps, and it can really slow down your website when you have multiple people visiting it at once.

That’s why we recommend every WordPress site use a caching plugin. Caching can make your WordPress site anywhere from 2x to 5x faster.

Here’s how it works.

Instead of going through the whole page generation process every time, your caching plugin makes a copy of the page after the first load and then serves that cached version to every subsequent user.

How caching works

As you can see in the graphic above, when a user visits your WordPress site, your server retrieves information from a MySQL database and your PHP files. It then puts it all together into HTML content, which is served to the user.

It’s a long process, but you can skip a lot of it when you use caching instead.

There are a lot of good WordPress caching plugins available, but we recommend using either WP Rocket (premium) or WP Super Cache (free).

Check out our step-by-step guide on how to install and set up WP Super Cache on your WordPress site. It’s not difficult to set up, and your visitors will notice the difference.

Also, many WordPress hosting companies like Bluehost and SiteGround offer caching solutions.

SiteGround SG Optimizer

If you are using SiteGround, then your WordPress site will come pre-installed with their SG Optimizer. This plugin has all the powerful features that you’d get with a premium WordPress caching plugin like WP Rocket.

SG Optimizer

The best part is that it’s specially optimized for the SiteGround Google Cloud servers to give you superior performance results.

Aside from caching, you also get various other performance settings, WebP image conversion in WordPress, database optimization, CSS minification, GZIP compression, and more.

It also has dynamic caching features to help you speed up your eCommerce website.

Bluehost Caching

If you are using Bluehost, then you can go to the Websites » Speed section to adjust your caching settings.

Bluehost caching levels

If you are using a managed WordPress hosting provider, then you don’t need a caching plugin because it is built-in and turned on by default.

Bonus: You can combine caching plugins with a web application firewall like CloudFlare or Sucuri for maximum performance boost.

[Back to Top ↑]

Optimize Images for Speed

Optimized vs Unoptimized Images in WordPress

Images bring life to your content and help boost engagement. Researchers have found that using colored visuals makes people 80% more likely to read your content.

However, if your images aren’t optimized, then they could be hurting more than helping. In fact, non-optimized images are one of the most common speed issues that we see on beginner websites.

Before you upload a photo directly from your phone or camera, we recommend that you use photo editing software to optimize your images for the web.

In their original formats, these photos can have huge file sizes. But based on the image file format and the compression you choose in your editing software, you can decrease your image size by up to 5x.

At WPBeginner, we only use two image formats: JPEG and PNG.

Now you might be wondering: what’s the difference?

Well, the PNG image format is uncompressed. When you compress an image it loses some information, so an uncompressed image will be higher quality with more detail. The downside is that it’s a larger file size, so it takes longer to load.

JPEG, on the other hand, is a compressed file format that slightly reduces image quality, but it’s significantly smaller in size.

So how do we decide which image format to choose?

  • If our photo or image has a lot of different colors, then we use JPEG.
  • If it’s a simpler image or we need a transparent image, then we use PNG.

Below is a comparison chart of the file sizes achieved by different compression tools on one particular image.

Image Compression Comparison Table

As you can see in the chart, the image format you use can make a HUGE difference in file size, and this will affect your website performance.

For details on exactly how to optimize your images using Photoshop and other popular editing tools, without sacrificing quality, see our step-by-step guide on how to optimize images for web performance without losing quality.

[Back to Top ↑]

WordPress Performance Optimization Best Practices

After installing a caching plugin and optimizing your images, you’ll notice that your site will start loading a lot faster.

But if you really want to keep your website as fast as possible, then you’ll need to use the best practices listed below.

These tips aren’t too technical, so you don’t need to know any code to implement them. But using them will prevent common problems that will slow down your website.

Keep Your WordPress Site Updated

Updating WordPress Core From the Dashboard

As a well-maintained, open-source project, WordPress is updated frequently. Each update will not only offer new features but it will also fix security issues and bugs. Your WordPress theme and plugins may have regular updates, too.

As a website owner, it’s your responsibility to keep your WordPress site, theme, and plugins updated to the latest versions. Not doing so may make your site slow and unreliable, and make you vulnerable to security threats.

For more details on the importance of updates, see our article on why you should always use the latest WordPress version.

[Back to Top ↑]

Optimize Background Processes

Background processes in WordPress are scheduled tasks that run in the background of your WordPress site. The following are some examples of background tasks that run on a WordPress site:

  • WordPress backup plugin tasks
  • WordPress cron jobs to publish scheduled posts
  • WordPress cron jobs to check for updates
  • Search engines and other crawlers trying to fetch content

Tasks like cron jobs for scheduled posts and updates have minimal impact on website performance.

However, other background processes like backup plugins and excessive crawling by search engines can slow down a website.

You need to make sure that your WordPress backup plugin only runs during low-traffic times on your website. You also need to adjust the frequency of backups and data that needs to be backed up.

For example, if you are creating a complete daily backup while you only publish new content twice a week, then you need to adjust that.

If you want more frequent backups such as real-time backups, then we recommend using a SaaS solution like BlogVault so you are not taxing your server.

As for crawling, you need to keep an eye on your crawl reports in the Google Search Console. Frequent crawls that result in errors can cause your website to slow down or become unresponsive.

See our complete Google Search Console guide to learn how to adjust the crawl rate.

[Back to Top ↑]

Use Excerpts on Homepage and Archives

Preview summary on WPBeginner

By default, WordPress displays the full content of each article on your homepage and archives. This means your homepage, categories, tags, 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 can reduce your pageviews and the time your users spend on your site.

In order to speed up your loading times for archive pages, you can set your site to display excerpts instead of the full content.

You can navigate to Settings » Reading and select ‘Excerpt’ instead of ‘Full text’ next to the setting about what should be shown for each article in a feed.

RSS Feeds Can Contain Full Text or an Excerpt of Each Post

For more details on the pros and cons of displaying summaries, see our article on full post vs summary (excerpt) in your WordPress archive pages.

[Back to Top ↑]

Split Comments Into Pages

Paginate comments

Getting lots of comments on your blog posts? Congratulations! That’s a great indicator of an engaged audience.

But the downside is that loading all those comments can impact your site’s speed.

WordPress comes with a built-in solution for that. Simply go to Settings » Discussion and check the box next to the ‘Break comments into pages’ option.

Break comments in pages

For more detailed instructions, see our guide on how to paginate comments in WordPress.

[Back to Top ↑]

Use a Content Delivery Network (CDN)

Remember how we mentioned above that users in different geographical locations may experience different loading times on your site?

That’s because the location of your web hosting servers can have an impact on your site speed.

For example, let’s say your web hosting company has its servers in the United States. A visitor who is also in the United States will generally see faster loading times than a visitor in India.

Using a Content Delivery Network (CDN) can help to speed up loading times for all of your visitors.

A CDN is a network made up of servers all around the world. Each server will store static files used to make up your website.

These static files include unchanging files such as images, CSS, and JavaScript, unlike your WordPress pages which are dynamic as explained above.

When you use a CDN, every time a user visits your website they are served those static files from whichever server is closest to them. Your own web hosting server will also be faster since the CDN is doing a lot of the work.

You can see how it works in this infographic.

What Is a CDN Infographic

We recommend using Sucuri, Bunny CDN, or Cloudflare (free).

A CDN works well with WordPress websites and compliments your existing WordPress caching plugins for even faster loading times.

[Back to Top ↑]

Don’t Upload Audio or Video Files Directly to WordPress


You can directly upload audio and video files to your WordPress site, and it will automatically display them in an HTML5 player…

But you should NEVER do that!

Hosting audio and videos will cost you bandwidth. You could be charged overage fees by your web hosting company, or they may even shut down your site altogether, even if your plan includes ‘unlimited’ bandwidth.

Hosting large media files also increases your backup sizes tremendously, and makes it difficult for you to restore WordPress from backup.

Instead, you should use an audio and video hosting service like YouTube, Vimeo, DailyMotion, or SoundCloud, and let them take care of the hard work. They have the bandwidth for it!

WordPress has a built-in video embed feature, so you can copy and paste your video’s URL directly into your post and it will embed automatically.

Find out more details on how it works in our guide on embedding videos in WordPress.

If you are making a podcast website with WordPress, then we recommend the podcast hosting service Blubrry for the best performance.

[Back to Top ↑]

Use a Theme Optimized for Speed

The theme directory

When selecting a theme for your website, it’s important to pay special attention to speed optimization. Some beautiful and impressive-looking themes are actually poorly coded and can slow your site way down.

It’s usually better to go with a simpler theme than to choose a theme that’s bloated with complex layouts, flashy animations, and other unnecessary features. You can always add those features using quality WordPress plugins.

Premium WordPress theme shops like StudioPress, Themify, CSSIgniter, and Astra offer themes that are well-coded and optimized for speed. You can also check out our article on selecting the perfect WordPress theme for advice on what to look for.

Before you activate your new theme, see our guide on how to properly switch your WordPress theme for a smooth transition.

[Back to Top ↑]

Use Faster Plugins

Poorly coded WordPress plugins often add a lot of bloat, whether your site actually needs the plugin or not. This increases your page load speed and slows down your site.

To help you choose the best plugins, we often publish our expert picks of the best WordPress plugin showcases. We pay special attention to ease of use, user experience, and most importantly performance.

The following are some of our top picks for the most common WordPress plugin categories:

  • WPForms – Fastest and most beginner-friendly contact form plugin for WordPress.
  • All in One SEO – Powerful WordPress SEO plugin that emphasizes website performance to help you get higher SEO rankings.
  • MonsterInsights – Best Google Analytics plugin for WordPress that doesn’t slow down your site. It even includes options to load gtag.js locally to speed up your Google Core Web Vitals scores.
  • Shared Counts – Many social media plugins load additional scripts and not so gracefully. Shared Counts is one of the fastest social media plugins for WordPress.
  • SeedProd – A drag & drop WordPress landing page plugin that helps you build blazing-fast landing pages and even design an entire theme from scratch.

Apart from our own recommendations, you also can run your own tests. Simply run speed tests before and after installing a plugin to compare its impact on performance.

For more details, see our guide on how to run a WordPress speed test.

[Back to Top ↑]

Fine-Tuning WordPress for Speed (Advanced)

By using the WordPress optimization best practices and basic speed tips listed above, you should see a big improvement in your site’s loading times.

But every fraction of a second counts. If you want to get the very fastest speed possible, then you’ll want to make a few more changes.

The following tips are a little more technical, with some requiring you to modify your site files or have a basic understanding of PHP.

You’ll also want to make sure to back up your site first just in case.

Split Long Posts into Pages

Page Break Preview

Readers tend to love blog posts that are longer and more in-depth. Longer posts even often rank higher in search engines.

But if you are publishing long-form articles with lots of images, then they could be hurting your page loading times.

Instead, consider splitting up your longer posts into multiple pages.

WordPress comes with built-in functionality to do that. Simply add a Page Break block in your article where you want to start a new page.

Adding a Page Break Block

For more detailed instructions, see our tutorial on post pagination – how to split WordPress posts into multiple pages.

[Back to Top ↑]

Reduce External HTTP Requests

Reduce cross-domain HTTP requests

Many WordPress plugins and themes load all kinds of files from other websites. These files can include scripts, stylesheets, and images from external resources like Google, Facebook, analytics services, and so on.

It’s ok to use a few of these. Many of these files are optimized to load as quickly as possible, so it’s faster than hosting them on your own website.

But if your plugins are making a lot of these requests, then it could slow down your website significantly.

You can reduce all these external HTTP requests by disabling scripts and styles or merging them into one file. Here’s a tutorial on how to disable your plugins’ CSS files and JavaScript.

[Back to Top ↑]

Reduce Database Calls

Unfortunately, there are a lot of poorly coded WordPress themes out there. They ignore WordPress standard practices and end up making direct database calls, or too many unnecessary requests to the database.

This can really slow down your server by giving it too much work to do.

Even well-coded themes can have code that makes database calls just to get your blog’s basic information.

Note: This step is a little more technical and will require basic knowledge of PHP and WordPress template files.

In this example, every time you see <?php, that’s the start of a new database call:

<html xmlns="" dir="<?php language_attributes(); ?>">
<head profile="">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>
charset=<?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 you can replace these database calls with specific information instead. This will reduce all those database calls.

<html xmlns="" dir="ltr">
<head profile="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

You can review your parent theme for instances like this that can be easily replaced with static information.

[Back to Top ↑]

Optimize WordPress Database

After using WordPress for a while, your database will have lots of information that you probably don’t need anymore. For improved performance, you can optimize your database to get rid of all that unnecessary information.

This can be easily managed with the WP-Sweep plugin or the WP-Optimize plugin. Both tools allow you to clean your WordPress database by deleting things like trashed posts, revisions, unused tags, etc. These plugins will also optimize your database’s structure with just a click.

See our guide on how to optimize your WordPress database for improved performance.

[Back to Top ↑]

Limit Post Revisions

Changes highlighted in revision history

Post revisions take up space in your WordPress database. Some users believe that revisions can also affect some database queries run by plugins. If the plugin doesn’t specifically exclude post revisions, then it might slow down your site by searching through them unnecessarily.

You can easily limit the number of revisions WordPress keeps for each article. Simply add this line of code to your wp-config.php file:

define( 'WP_POST_REVISIONS', 4 );

This code will limit WordPress to only save your last 4 revisions of each post or page, and discard older revisions automatically.

[Back to Top ↑]

Disable Hotlinking and Leaching of Your Content

If you are creating quality content on your WordPress site, then the sad truth is that it will probably get stolen sooner or later.

One way this happens is when other websites serve your images directly from their URLs on your website, instead of uploading them to their own servers. In effect, they are stealing your web hosting bandwidth, and you don’t get any traffic to show for it.

Simply add this code to your .htaccess file to block the hotlinking of images from your site:

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

Don’t forget to change with your own domain.

You may also want to check our article showing how to prevent image theft in WordPress.

Some content scraping websites automatically create posts by stealing your content from your RSS feed. You can check out our guide on preventing blog content scraping in WordPress for ways to deal with automated content theft.

[Back to Top ↑]

Use Lazy Loading if Needed

WP Rocket's lazy loading features

If you add many images, multiple video embeds, and photo galleries to your blog posts, then your site can benefit from lazy loading.

Instead of loading all your images and videos at once, lazy loading downloads only those that will be visible on the user’s screen. It replaces all other images and video embeds with a placeholder image.

As a user scrolls down, your website loads images that are now visible in the browser’s viewing area. You can lazy load images, videos, and even WordPress comments and gravatars.

You can learn more in our guide on how to easily lazy load images in WordPress where we cover how to do this using the WP Rocket and Optimole plugins.

For WordPress comments, see our guide on how to lazy load comments in WordPress.

[Back to Top ↑]

Use DNS-Level Website Firewall

How website firewall blocks attacks

A WordPress firewall plugin helps you block brute force attacks, hacking attempts, and malware. However, not all firewall plugins are the same.

Some of them run on your website, which means attackers are already able to reach your web server before they get blocked. This is still effective for security, but not optimal for performance.

This is why we recommend using a DNS-level firewall like Cloudflare or Sucuri. These firewalls block malicious requests before they even reach your website.

[Back to Top ↑]

Fix HTTPS/SSL Errors Without Plugin

Fix HTTPS/SSL Errors Manually

If you are switching your site to HTTPS/SSL, then it is likely that you may run across mixed content errors.

The easiest way to fix this is by installing a plugin like Really Simple SSL. However, the problem is that this plugin catches all URLs first, then changes them to HTTPS before sending them to the users’ browsers.

This has a small but noticeable performance impact. You can reduce this by manually fixing all URLs. For more details see our article on how to fix common SSL issues in WordPress.

[Back to Top ↑]

Use the Latest PHP Version

WordPress is mainly written in the PHP programming language. It is a server-side language, which means it is installed and runs on your hosting server.

All good WordPress hosting companies use the most stable PHP version on their servers. However, your hosting company may be running a slightly older PHP version.

The newer PHP 8.3 is 42% faster than its predecessors. That’s a huge performance boost that your website must take advantage of.

You can see which PHP version your site is using by using the Version Info plugin.

Upon activation, the plugin will show your PHP version in the footer area of your WordPress admin dashboard.

PHP version in WordPress admin dashboard

If your website is using a version lower than PHP 7, then ask your hosting provider to update it for you. If they are unable to do so, then it is time to find a new WordPress hosting company.

[Back to Top ↑]

That’s it! We hope this article helped you learn how to improve WordPress speed and performance.

Go ahead and try out these techniques. Don’t forget to test your website speed before and after implementing these best practices. You’ll be surprised these changes will boost your WordPress performance.

Want a personalized WordPress performance report? At WPBeginner Pro Services, you can get a comprehensive performance report to uncover ways to make your WordPress site load faster and improve user experience. Simply choose the service through our WordPress Support catalog and we’ll get to work. Schedule WordPress Support today!

You may also want to see our ultimate WordPress SEO guide to improve your SEO rankings, and our expert pick of the best business phone services for small businesses.

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.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Reader Interactions

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

145 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Kzain says

    this are a lot of plugins what do you think how many of them are the must to have for WordPress? Doesn’t having too many plugins slows a site? this is where I get stuck I can’t decide how much is enough for performance and security.

    • Jiří Vaněk says

      I currently have 40 plugins on my website and everything is still running smoothly. It’s not about the number of plugins but the quality. I used to ask myself the same question: How many plugins are too many? But there is no definitive answer. It depends on the server’s performance and the quality of the plugins. Out of those 40, 10 are paid plugins, where I know the developer has put in the effort to make them perfect. For the rest, I always carefully choose based on how the developer responds to changes in WordPress, the ratings, and the support provided. If you take the time to select your plugins wisely, the number doesn’t matter as much. Of course, there is a limit, but the idea that a fast WordPress site can only have up to 20 plugins is a myth. My website is proof of that. So don’t be afraid—just choose more thoughtfully and strategically.

  3. Chris says

    Regarding Disable Hotlinking and Leaching of Your Content, there exists a .htaccess file in the root file. Should the code be added to this file, or should a new file be created?

    • WPBeginner Support says

      You would add the code to your existing htaccess file instead of making a new file :)


    • Jiří Vaněk says

      I would like to point out an important fact regarding WordPress and the .htaccess file. This file in WordPress contains directives that are placed between the lines # BEGIN WordPress and # END WordPress. Do not insert your code between these lines. These are WordPress lines, and if you insert your directives between them, you risk having WordPress delete them after an update to a new version. Always insert your directives either before the # BEGIN WordPress line or after the # END WordPress line. Never in between. I’m speaking from personal experience, where WordPress kept deleting my directives, and I didn’t know why.

    • Dayo Olobayo says

      May I also add that before making any changes to your .htaccess file, it’s crucial to create a backup. This way, if something goes wrong and your website malfunctions, you can easily restore it.

  4. Dennis Muthomi says

    Fantastic guide, WPBeginner! I always find your guides to be incredibly helpful and informative.
    The tip about using a Content Delivery Network (CDN) really caught my attention. After reading your advice, I decided to switch to Cloudflare and integrate it with my WordPress site. The setup process was surprisingly easy, and the results were amazing!
    My Page Speed Insights score jumped from 61 to an impressive 97. I couldn’t be happier with the outcome.
    Thank you for providing top-notch WordPress tips and being a go-to resource for the community.

  5. Hajjalah says

    I found this article very useful for my new blog. Following this guide enabled me to increase my blog speed in very simple steps. The only feature i am yet to implement is Image Lazy Loading because i here that some users hate it and since i am still gathering users, i hope to use it later as my blog grows. Thankfully, WPBeginner has made me a WordPress expert!

  6. Moinuddin Waheed says

    I think choosing the right hosting provider is one of the main factor for website speed and performance.
    If one has a bad hosting provider, no matter what tweaks one is doing, website will get in toruble anytime.
    It must be noted though, other factors mentioned in this article as best practices are also important considerations for website performance and speed.

  7. Kushal Phalak says

    Can you give any advice to reduce DOM elements? I tested my website’s performance on google pagespeed insights and it suggested to reduce DOM elements. But my website is pretty minimal, and I don’t know from where the extra DOM elements are coming from.

    • WPBeginner Support says

      Your DOM size would normally be determined by your theme or page builder as that is from your theme’s HTML.


    • Ralph says

      An excessive DOM size isn’t much fun to sort out.

      The easiest way to think of DOM elements is “things put on the page”. These are either things that you’ve put on the page, or they’re things that your page builder (some drag and drop editors add a lot of DOM elements) has put on the page.

      Based on what you mentioned about your site being fairly minimal it doesn’t sound like you’ve put a lot of elements on your pages when building them, so I’d guess you’re using a page builder that adds a lot of DOM elements. A really quick (yet slightly vague) way of checking might be to do something like visit a page on your site, right click, view source, ctrl+f (find on page) then search for the name of your page builder. If a lot of mentions are found, then it’s probably the page builder contributing to the excessive DOM size.

      If you establish what it is that’s adding lots of DOM elements to your site, you have some direction to take to address this issue.

      Some page builders have options that can help reduce the DOM size (you’d have to check), but some don’t, and if they don’t, you’re then left with little choice but to rebuild your site using a different page builder. This can be quite a job. Setting up a staging site, then using WordPress’ export/import tool to clone content to the staging site will cut down on the amount of work you have to do, but you’ll most likely still have to check and possibly rework pages using something like the blocks editor (rather than another drag and drop page builder).

      This probably sounds like an epic amount of hassle, but if you do this, then it will do more than just improve page load times, and stop pagespeed insights complaining about DOM size.

      By reducing the DOM size you’ll also end up with an improved text to code ratio. This is because you’re reducing the amount of page code, but leaving the human readable words the same. The human readable words then make up a greater percentage of each page. This can have a positive impact on SEO, as well as improving page performance from the perspective of human visitors, so it is worth working out and making an effort to address.

      • Kushal Phalak says

        Thanks for the reply! I use Elementor page builder, and I just found out that there is an option to optimize the DOM elements. In my case, as I created custom post type listings, the DOM elements increased, so right now, activating the ‘Optimize DOM elements’ option does help a little.

  8. Ayanda Temitayo says

    i just want to add to it that one of the best ways to check your website speed is to use Google pagespeed Insight or GtMetrix. This are good tools that will tell you about your website speed score and how you can optimize speed.

    Thanks for this awesome article. Very Insightful.

  9. Harshvardhan kadam says

    It really Helped Me , I am getting several time database error on my site ,but after that as you said in post I installed wp-optimize plugin and cleaned the it much better not getting database errors and also my site site speed up little bit so that’s nice!

  10. Anuoluwapo Olabode Oludare says

    A fast loading website is a website developer and also a customer’s dream. I’ve used several speed optimization plugins to make my website load faster and so far. I’ve tried Nitropack, WP Rocket, Litespeed Server Cache, WP Fastest Cache, W3 Total Cache, Seraphinite and so on.

    I believe the best is Seraphinite because it beats all the others I’ve tested and my website is an heavy one, built with Elementor. I really recommend using a webp image converter like Converter for Media plugin as it’ll help convert your images and get your website loading faster too.

  11. Moinuddin Waheed says

    I have used wp rocket for caching and found it to very useful in terms of making the website load faster.
    The interesting thing that I found in this article is to disable css and js for external http requests as it may slowdown the website speed.
    we do install many plugins for functionality and never knew what resources burden they can cause to our websites.
    I have a query, if we disable js and css from loading, will still they be working as intended?
    or how would we know which to disable and which not to?

    • WPBeginner Support says

      For the moment the only way to know would be to test as there is no guarantee either way on what specific way it would work or if it would have a problem.


  12. Peter Iriogbe says

    I’m writing this comment to ask a question regarding what you mentioned that could be affecting the slow loading of a website – which you mentioned “outdated PHP version”. Is it the site owner that would need to update the PHP version of the WordPress site on the open-source developers? I’m confused

    • WPBeginner Support says

      The site owner would need to update the PHP version or reach out to their hosting provider to update the PHP version. When doing an update of that it is important to make sure you have proper backups should there be any trouble during the update.


    • Jiří Vaněk says

      There are two options when it comes to shared web hosting. Either the provider has a tool (settings) in the administration panel where you can switch between different PHP versions, or you have to request it from them. Sometimes, it may happen that the desired PHP version is not available on the server, and the provider will need to migrate your website to a different server. If it is a VPS, that is, a virtual private server, changing the PHP version is up to you since you manage the server yourself. First, the new PHP version must be installed and then switched in the server configuration. It is advisable to not only have a backup of the website itself but also, if possible, create a snapshot of the server so that you can revert to the original configuration if necessary.

  13. mohadese esmaeeli says

    The webp image format is much lighter than png images, but the challenge is that they are not easily downloadable. If a user encounters images from our site in a Google search, it can be somewhat inconvenient. Nevertheless, what is your opinion? Which standard is more reliable and user-friendly?

    • Jiří Vaněk says

      Although the webp format is not too much to download, there are many online tools for converting from png or jpeg to webp. That’s how I do it. I download the png, convert it to webp and then upload the finished webp image to the website.

  14. Moinuddin Waheed says

    fast loading of websites not only helps in good user experience but in turns help reduce bounce rate and retain visitors for a long time.
    I am implementing the steps for making the websites ultra fast and good performance.
    But even after doing many of these steps, at times it feels like something is missing may be it is due to shared hosting plan.
    what is the appropriate time when we must plan to upgrade to business or managed wordpress hosting?

  15. Jiří Vaněk says

    I would like to ask about the prohibition of hotlinking on the website. Webp images are missing in your example. Is it possible to ban images in webp format in this way?

    • WPBeginner Support says

      To add WebP to the hotlink protection you would add |webp to the list of file types to include it :)


      • Jiří Vaněk says

        I tried that and it just didn’t work. However, I’ve already found out why it’s not working. This is due to CDN CloudFlare serving images from their network and not from my VPS. Unfortunately, there is probably no solution for this, because although they provide protection against hotlinking, it still does not include protection for the webp format. That’s a big shame these days, because as I found out, I have a lot of stolen images on the Internet. According to Semrush, I looked up those sites but can’t do anything about it.

  16. mohadese esmaeeli says

    hi. We had some redirects that got stuck in a loop, causing the site to hang. For example, page A redirected to B, then B to C, and finally, C back to A. Resolving such redirect loops improved site performance and Some links were still loading with the http protocol, requiring redirects. However, after reinstalling the SSL certificate once, the SSL issue was resolved, and no more redirects were needed.
    After completing the research, the site speed unbelievably improved from 5 seconds to 1 second.

  17. Moinuddin Waheed says

    I got new insights from this bookmarked page that I thought I would visit to ensure implementing these tips to improve my website performance.
    I used to upload video on my website directly through media files which caused it to slow down.
    When uploading videos from YouTube, does it make any difference in terms of performance and speed for unlisted YouTube videos and listed videos because often I have seen advise of embedding unlisted videos?

    • WPBeginner Support says

      Unless we hear otherwise, there is no performance benefit for embedding an unlisted video.


    • Jiří Vaněk says

      Videos on youtube are on very fast servers that can handle millions of visits per hour in 4k resolution. It doesn’t really matter if the video is public or private. YouTube will never generate such a large load to slow it down.


    Really interesting article.
    I have learn that website speed is very important for SEO and UX.
    But today I get aome new insights: Split comments into pages and don’t upload madias directly to WordPress.

  19. Moinuddin Waheed says

    Website speed is one of the important factor for Google to rank in its search engine. Moreover most visitors left the website and not wait if it gets loaded slow.
    This is one of those guides which needs to be bookmarked to get back to it and ensure that I have implemented it to my blog posts.
    Thanks wpbeginner for this helpful guide.

  20. Ahmed Omar says

    Really a wonderful post.
    my site hosted on siteground and my first time to know about SiteGround SG Optimizer
    really thank you
    but how I can test my site for performance speed?

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.