ConsulHosting
VPS HostingVirtual Private Servers for hosting online infrastructure.Managed VPS HostingManaged VPS Hosting for websites with DirectAdmin, cPanel or Plesk.
Web HostingWeb hosting for hobbyists up to medium-sized businesses.Domain NamesRegister a new domain or transfer your existing one to ConsulHosting.Reseller HostingWhite-label reseller hosting to resell web hosting services.
Minecraft HostingAffordable, high-quality Minecraft Server Hosting for Java & Bedrock.VPS HostingVirtual Private Servers for hosting online infrastructure.Web HostingWeb hosting for hobbyists up to medium-sized businesses.
About ConsulHostingDiscover our core values and what ConsulHosting is committed to.Knowledge baseLook for answers to your questions in the knowledge base.ContactContact us via live chat, email or a support ticket.
Log in
KnowledgebaseWeb HostingHow to Optimize Your WordPress Website for Speed

Table of Contents

  1. Configure LiteSpeed Cache
  2. Remove Unnecessary or Resource-Intensive Plugins and Themes
  3. Optimize Images
  4. Use a Current PHP Version and OPcache
  5. Enable Redis Object Caching
  6. Limit External Scripts and Embedded Content
  7. Check Resource Usage
  8. Check the Results

How to Optimize Your WordPress Website for Speed

Published on July 28, 2026

The speed of a WordPress website is not determined solely by the hosting provider. A resource-intensive theme, inefficient plugins, large images, missing caching, or incorrect settings can result in a slow website even on a powerful hosting plan. In this guide, we cover the most important optimizations, starting with the measures that generally make the biggest difference.

Note Create a backup beforehand and check your website after each change.

Configure LiteSpeed Cache

ConsulHosting uses LiteSpeed web servers. This allows the LiteSpeed Cache plugin to cache pages directly through the web server, so WordPress and the database do not have to be loaded again for every visit. This usually provides the biggest improvement in speed.

  1. Log in to the WordPress dashboard.
  2. Go to Plugins and click Add New Plugin.
  3. Search for LiteSpeed Cache.
  4. Install and activate the plugin.
  5. Remove or deactivate other plugins that provide the same caching or optimization features. Using multiple caching plugins can cause conflicts.
  6. Go to LiteSpeed Cache > Presets.
  7. Find the Essentials preset and click Apply Preset.
  8. Go to LiteSpeed Cache > Cache > Purge.
  9. Enable Serve Stale and save the settings.
Tip After configuring the plugin, open your website twice in a private browsing window. Logged-in WordPress users generally do not see fully cached pages, which can make the website appear slower while you are managing it.

Remove Unnecessary or Resource-Intensive Plugins and Themes

  1. Update WordPress, your theme, and all plugins.
  2. Go to Plugins > Installed Plugins.
  3. Deactivate plugins you do not use or whose features overlap.
  4. After deactivating each potentially problematic plugin, check whether the website has become faster.
  5. Remove plugins you no longer need.
  6. Consider a lighter alternative if an important plugin causes significant delays.

The active theme also has a major effect on performance. A feature-rich theme with animations, sliders, video banners, and numerous built-in features can be considerably slower than a lightweight theme.

Note The number of plugins does not tell the whole story. One poorly optimized plugin can cause more delays than several lightweight plugins.

Optimize Images

Large images are a common cause of long loading times. Before uploading an image, resize it to approximately the maximum dimensions at which it will be displayed on the website.

  1. Check the maximum dimensions at which the image will be displayed on the website.
  2. Resize the image to those dimensions before uploading it.
  3. Save the image as WebP or AVIF whenever possible.
  4. Compress the image using a suitable image editor.
  5. Replace existing images that are unnecessarily large with optimized versions.
Tip Do not use an image that is 6,000 pixels wide if it will be displayed at a maximum width of 1,200 pixels. Reducing the dimensions before uploading often makes a bigger difference than compression alone.

Use a Current PHP Version and OPcache

Newer PHP versions generally process WordPress faster and more efficiently. Use the highest stable PHP version supported by your WordPress version, theme, and plugins. PHP 8.4 or later is recommended for an up-to-date WordPress installation.

  1. Log in to DirectAdmin.
  2. Under Advanced Features, go to Select PHP Version.
  3. Is the PHP version set to native? Select PHP 8.4 or a later supported version.
  4. Save the selected PHP version.
  5. Enable opcache in the list of PHP extensions and save the change.
  6. Open the Options tab.
  7. Change the settings listed below.

Setting

Recommended value

Purpose

memory_limit

1G

Provides resource-intensive plugins and processes with sufficient memory

post_max_size

512M

Determines the maximum size of submitted form and upload data

upload_max_filesize

256M

Determines the maximum size of a single upload

max_execution_time

300

Prevents time-outs during long-running processes

OPcache provides the actual performance improvement by storing previously processed PHP code in memory. The other values do not directly make the website faster, but they help prevent memory errors and time-outs during processes such as imports, backups, updates, and image processing.

Note 1G is the maximum amount of memory a PHP script may use and is not reserved in advance. This setting does not increase the RAM available to your hosting plan or bypass its resource limits.

Check the website immediately after changing the PHP version. If a plugin or theme no longer works correctly, temporarily switch back and update the affected component first.

Enable Redis Object Caching

Redis temporarily stores frequently used WordPress data in memory. As a result, WordPress has to perform fewer database queries. This is particularly noticeable for WooCommerce stores, membership websites, high-traffic websites, and the WordPress dashboard. The difference is generally smaller for simple pages that are already fully cached by LiteSpeed.

  1. Log in to DirectAdmin.
  2. Under Advanced Features, go to Redis.
  3. Enable Redis.
  4. Copy the displayed path to the Redis socket file.
  5. In WordPress, go to LiteSpeed Cache > Cache > Object.
  6. Enable Object Cache.
  7. Select Redis under Method.
  8. Enter the copied socket file path under Host.
  9. Enter 0 under Port.
  10. Select an unused number under Redis Database ID.
  11. Leave Persistent Connection enabled.
  12. Save the settings and check that the connection test has passed.
Note Use a unique Redis Database ID for every website on which you enable Redis. For example, use 0 for the first website, 1 for the second, and 2 for the third. This keeps the cached data of the different websites separate.

Limit External Scripts and Embedded Content

External scripts are not optimized by the page cache. Chat widgets, analytics tools, advertisements, social media feeds, video players, maps, and external fonts can therefore continue to have a significant effect on loading times.

  1. Remove external components that are rarely or never used.
  2. Load chat widgets, videos, maps, and other resource-intensive components only on pages where they are needed.
  3. Whenever possible, show a preview image for videos and load the video player only after a visitor clicks it.
  4. Limit the number of external fonts and font styles.
  5. Use Google PageSpeed Insights to identify the external scripts causing the largest delays.

After each change, test whether forms, cookie settings, analytics, and other essential features continue to work correctly.

Check Resource Usage

If your website remains slow after applying the optimizations above, check whether it is reaching the resource limits of your hosting plan.

  1. Log in to DirectAdmin.
  2. Under Advanced Features, go to Resource Usage.
  3. Open Current Usage.
  4. Check the usage of CPU, Physical Memory, IO, IOPS, Entry Processes, and Number of Processes.
  5. If available, also review the historical data and the number of times a limit has been reached.

A short usage spike is generally not a problem. If the website regularly reaches its CPU, RAM, IO, or process limits, it may become slower or temporarily display errors. First, check whether a plugin, unwanted traffic, or a background task is causing the high usage. If the limits are still reached regularly after optimizing the website, consider upgrading to a web hosting plan with more resources.

Check the Results

After making the changes, purge the entire cache through LiteSpeed Cache > Toolbox > Purge. Next, open several pages twice in a private browsing window and compare the results using Google PageSpeed Insights.

Do not look only at the overall score. Also check whether the website responds noticeably faster and whether all features continue to work correctly.

Was this article helpful?

ConsulHosting logo wide

ConsulHosting

ContactKnowledge baseAccountAbout UsStatusAbuse report

Services

VPS HostingWeb HostingMinecraft HostingDomainsReseller HostingManaged VPS Hosting

© 2020-2026 ConsulHosting B.V.•Prices are excluding VAT unless stated otherwise

Terms of ServicePrivacyService Level Agreement