Kinsta How To Speed Up Your WP Site EN 2023 1
Kinsta How To Speed Up Your WP Site EN 2023 1
In this ebook, we share our top 10 tips and actions for site speed.
Introduction 02
CONTENTS
06 Chapter 01
Cache Anything You Can
11 Chapter 02
CDNs Are Essential for Speed
14 Chapter 03
Use a Fast Theme
19 Chapter 04
Use Reliable and Reputable Plugins
23 Chapter 05
Use a Data Center Close To Your Visitors
25 Chapter 06
Optimize Your Images
29 Chapter 07
Reduce HTTP Requests
34 Chapter 08
Minify and Optimize Static Files
37 Chapter 09
Use Premium DNS
40 Chapter 10
Enable GZIP Compression
42 Conclusion
Wrapping Up and Going Deeper
Contents 03
LET’S GET STARTED
• C heck out our article on how to run a speed test. It has detailed
information about the best ways to prepare and links to more than
a dozen test providers (free and paid).
• If you’re in more of a hurry we recommend Pingdom or Google
PageSpeed Insights. You can run a test in just a few minutes.
Make some screenshots of the results. Also, copy the data into
a document.
Cache
Anything
You Can
This can take a long time if you have a long or complicated web page.
Then if you have lots of users doing these on-the-fly page renders all
at once, your server can really get bogged down.
Super easy, if you have a good web host and they handle caching for you.
• W
P Rocket (premium)
• C
ache Enabler (free)
• W
3 Total Cache (free)
You can also check out some additional options in our in-depth post
on WordPress caching plugins.
You’re not going to build something like this yourself. Instead, you
should use a service like Cloudflare with their extensive network of
Edge Servers. Ideally, your web host will provide this service
integrated into their servers due to the difficulty in setting it up.
CDNs
Are Essential
for Speed
Joseph Heather,
Owner Cyntergi | Read Case Study
Setting Up A CDN
We recommend using either Cloudflare or Sucuri. These are typically
billed on a monthly basis or by data usage. Most providers will have
a calculator to estimate your costs. Cloudflare has a free plan as well.
• L
earn how to set up a Cloudflare CDN
• L
earn how to set up a Sucuri CDN
Take Action
• A sk your web host if they provide a CDN and/or how to enable it.
• Install and configure a Cloudflare or Sucuri CDN yourself.
• L earn more details about CDNs, including speed test results, proxy vs.
reverse proxy, and more in our Site Speed White Paper: Section 1.2.
Use a Fast
Theme
Each element or feature you see in a theme has some impact on the
overall speed of your website. And unfortunately, with thousands of
themes out in the wild, there are both good ones and bad ones.
• A
fast lightweight WordPress theme that is built with only the features
you need, nothing more.
• A
more feature-rich WordPress theme, that allows disabling features
that aren’t in use.
Things like fonts, icons, sliders, galleries, video, and parallax scripts,
etc. can make your site beautiful, and slow. You probably aren’t going
to use everything. With a good theme, you should be able to turn off
and on each feature. A good theme will also optimize or preload its
CSS and fonts, learn more about how this works here.
Here are a few things to keep in mind when using a page builder plugin:
• S
ome page builders might increase load time on your site. This is
because they have to load additional CSS and JS to make things work
for you without code. That is how the magic happens! We always
recommend speed testing your WordPress site before and after
installing a page builder.
• Y
ou’re making a big commitment. Each page you build locks you
with that page builder for a long time. Make sure you pick one that
is reputable, regularly updated, and has everything you need for the
long haul (like a support team).
• S
ome page builders don’t work with some themes. Be sure to
research or test on a staging environment.
• R
emember, WordPress comes with the Block Editor (also known by
its beta name “Gutenberg”). In the last few years, it’s become very
powerful and easy to use. It won’t slow your site down and in many
cases, you can use it instead of a paid page builder. Compatible
themes can even be edited with the Block Editor using the Full Site
Editing feature.
Use Reliable
and Reputable
Plugins
It’s not too hard to write your own plugin. And you’ve probably heard
that people are using generative AI, like ChatGPT, to write entire
plugins, and they work!
There are many risks with writing your own plugins or using sketchy
plugins:
• Y
ou have to maintain the code yourself and keep it updated as
standards change. These change often. If you are busy, it’s better to
leave maintaining plugins to the huge community of expert developers
who focus on this within the WordPress community.
• A
poorly written plugin can introduce a lot of HTTP requests or non-
optimized static assets that slow down your site (more on that later).
• T
he barrier to making a WordPress plugin is fairly low, so many
non-expert developers try building them. A plugin may work,
at first glance, but that doesn’t mean it’s fast, secure, or reliable
for long-term use.
The good news? There are ways to clean up and get rid of
a plugin properly.
Take Action
• L
earn how to uninstall a WordPress plugin (the proper way).
• L
earn how to manually clean up database tables left behind.
• T
here is more information about database clean up in our
White Paper, see sections 1.4 and 1.4.4.
Use a Data
Center
Close To
Your Visitors
Use one of the methods listed below to find out where the majority of
your visits or customers are coming from, geographically speaking.
If your site is new and you don’t have any data on users, place the site
in a data center closest to where the majority of your hoped-for target
market is located.
Take Action
• D o a ping test to quickly evaluate which region you are closest to.
This is useful if you are in the region where the majority of your
customers are. Try GCPPing.com to measure Google Cloud Platform,
CloudPing for Amazon Web Services, or AzureSpeed Test for
Microsoft Azure.
• If you run an ecommerce site, analyze the geographic location of
your customers, likely via street address.
• A nalyze the geographic location of your site visitors in
Google Analytics.
• A sk your web host where your website is located, geographically,
and see if migrating to another data center is possible, if that would
speed your site up.
Optimize
Your
Images
Don’t think of this as optional; every site should be doing this! Especially
when there are many free and easy ways to do it.
Large images slow down your web pages, and in many cases the
visitor can’t see, visually, the difference between a large and properly
optimized image.
Jenna Recktenwald,
DevOps Team Lead at Kinsta
Take Action
• Install a WordPress image compression plugin to automate the image
optimization process. These plugins optimized the images externally
(not on your server) to keep your site running fast. Be sure to use
a service like this that offers this external/off-server option.
• Imagify
• W P Smush
• O ptimole
• EWWW Image Optimizer
• S hortPixel
• While you’re developing a long-term automatic solution, be sure
any images uploaded in the meantime are optimized by using
TinyPNG or Smoosh.
Reduce
HTTP
Requests
Now you can start to see what is slowing your site down and work
to improve your site.
If you’re going to use custom fonts, make sure to use as few as possible.
Do you really need a different font for your post title and your post
body? Do you really need all five font weights? Just call for the two you
use. Or see if you can use a system font stack.
The same holds true for icon fonts such as Font Awesome and IcoMoon.
Icon fonts can be useful, but you probably don’t need to load multiple
icon font libraries. It’s better to pick just one icon font library and stick
with that. And don’t forget WordPress has a library called Dash Icons
that might suffice.
For example, Contact Form 7 plugin, you probably only need this plugin
on a couple of pages (e.g. your “Contact Us” page). However, Contact
Form 7 loads its scripts on every single page on your site.
Take Action
• L
earn even more about HTTP requests and ways to eliminate them
in our in-depth article.
• Ask your web developer or team how they can reduce HTTP requests
in your site’s theme and/or plugins.
Minify and
Optimize
Static
Assets
Take Action
• T
here are several more optimizations you can make with how your
site loads assets. They are quite a bit more involved than minification.
We recommend doing the minification step (above) and then
configuring the other nine settings from this ebook first. Then once
those are set up, refer to our White Paper sections 3.1, 3.2, 3.3,
and 3.4 to go more in depth.
Use
Premium
DNS
• F
ree DNS is included with domain registrars like GoDaddy,
Namecheap, or Hover.
• P
remium DNS providers you can optionally use include Amazon
Route 53, Cloudflare, or DNS Made Easy.
Take Action
• R
un a DNS speed test.
• C
ompare premium DNS providers to see which one is right for you.
• R
ead this detailed article on DNS to determine your
organization’s needs.
Enable
GZIP
Compression
Take Action
• R
un a website speed test (see Introduction section above),
or look at the test you already ran and see what it says about
GZIP Compression.
• A
sk your web host if you have GZIP Compression enabled,
or ask them to set it up
• L
earn more about GZIP Compression in our detailed article.
• G
o more in depth with GZIP Compression and see sample code
snippets in our Site Speed White Paper section 1.3.
Keep
Striving
for Speed
Conclusion 42
You can further explore what’s slowing your site down with Application
Performance Monitoring (APM). An APM tool captures time-stamped
information about your site’s PHP performance. You can find
bottlenecks and fix them.
• New Relic
• App Dynamics
Learn more about APM and how it works in our detailed article.
Note: Kinsta-hosted sites include a free powerful APM that you can
easily access from your MyKinsta dashboard. MyKinsta also features
simple New Relic integration.
Conclusion 43
Performance Try Kinsta
Audit Free
Conclusion 44
Explore more resources
on enhancing WordPress site
speed and performance:
kinsta.com/topic/website-speed
Published By
Conclusion 45