SEO Audit (price of a coffee)Starting at $1 →
WordPress Optimisation

How to Optimize WordPress in 2026

June 15, 202610 min read
WordPress dashboard showing performance and speed metrics

For Quebec SMBs, WordPress performance isn’t a luxury—it’s a necessity to stay competitive. A slow or poorly configured site hurts your local SEO and drives customers away. This practical guide walks you through optimizing WordPress in 2026, step by step, using proven tools (WP Rocket, Cloudflare, Wordfence) and configurations tailored for Canadian businesses. Investing in speed and security means investing in your company’s growth.

Increase WordPress PHP Memory Limit (wp-config.php, .htaccess, ini_set)

The default WordPress memory limit (often 40M or 64M) is too low for most SMBs using multiple plugins or WooCommerce. To avoid "Allowed memory size exhausted" errors, increase the memory limit to 256M in your wp-config.php file by adding: define('WP_MEMORY_LIMIT', '256M');. This change boosts your site’s stability and performance.

You can also raise the memory limit via .htaccess (php_value memory_limit 256M) or by using ini_set('memory_limit', '256M'); in your functions.php file. Note: some hosts cap memory at the server level. Always check your cPanel settings or contact your host for confirmation.

Three ways to increase the WordPress memory limit:

  • Edit wp-config.php: define('WP_MEMORY_LIMIT', '256M');
  • Add php_value memory_limit 256M to .htaccess
  • Use ini_set('memory_limit', '256M'); in functions.php

For a detailed example, see GoDaddy’s article on increasing the WordPress memory limit. Following these steps ensures your site can handle heavy plugins and traffic spikes without crashing.

Clean and Optimize the WordPress Database

A cluttered database slows down WordPress. Post revisions, expired transients, spam comments, and unnecessary autoload entries pile up fast. Use WP-Optimize (free) to remove these items and boost site speed. Monthly cleanups are recommended to keep your database lean.

Key cleanup actions with WP-Optimize:

  • Delete unnecessary post revisions
  • Remove expired transients
  • Empty trash and spam comments
  • Reduce unnecessary autoload entries

Regular cleaning not only improves WordPress performance but also reduces the risk of database corruption. Always back up before making major changes.

Install a Caching Plugin (WP Rocket, W3 Total Cache, LiteSpeed)

A caching plugin is essential for optimizing WordPress speed. WP Rocket ($59 CAD/year) provides easy setup and instant results, but W3 Total Cache and LiteSpeed Cache are excellent free alternatives. Caching reduces load times by serving static pages to visitors.

Quick comparison of popular caching plugins:

  • WP Rocket: paid, user-friendly interface, premium support
  • W3 Total Cache: free, highly customizable
  • LiteSpeed Cache: free, best on LiteSpeed servers

Enable GZIP compression, browser caching, and CSS/JS minification to maximize performance gains. Always test changes with Google PageSpeed Insights.

Modern control and measuring devices with arrows indicating numbers and letters on scales in automobile on black background

Optimize Images: WebP, Lazy Loading, and Compression

Images often account for over 50% of a WordPress page’s weight. Convert your images to WebP using Smush or EWWW Image Optimizer to reduce file size without quality loss. These plugins automate conversion and compression.

Steps to optimize WordPress images:

  • Convert to WebP (Smush, EWWW Image Optimizer)
  • Enable native lazy loading
  • Set explicit dimensions for each image
  • Compress existing images

Native lazy loading has been enabled by default since WordPress 5.5, but make sure your theme supports it. Setting image dimensions prevents layout shifts (CLS).

Enable a CDN (Free Cloudflare, Budget BunnyCDN)

A CDN (Content Delivery Network) distributes your static files (images, CSS, JS) across multiple global servers. Cloudflare offers a free plan, ideal for Quebec SMBs, or Pro at $20 CAD/month for added security. BunnyCDN starts at $1 CAD/month for 250GB, great for high-traffic sites.

Benefits of a CDN for WordPress performance:

  • Faster load times for visitors outside Quebec
  • Less load on your main hosting
  • DDoS protection (Cloudflare)
  • Higher scores on Google PageSpeed Insights

Set up your CDN using the official plugin or by updating DNS records. Test your setup with tools like GTmetrix or PageSpeed Insights to verify speed improvements.

Update PHP to Version 8.2 or Higher

Your server’s PHP version directly affects WordPress speed and security. PHP 8.2 delivers major performance gains over 7.4, and most Quebec hosts (Bluehost, Hostpapa) let you upgrade via cPanel. Check plugin compatibility before migrating.

Why upgrade to PHP 8.2+:

  • Up to 30% faster load times
  • Better memory management
  • Latest security patches
  • Official WordPress support

If your host doesn’t offer PHP 8.2+, consider switching to a more up-to-date provider. An updated site also scores better on Google Core Web Vitals.

Colorful PHP code displayed on a dark screen, ideal for programming themes.

Strengthen WordPress Security: Wordfence, 2FA, Hide wp-admin

WordPress security is critical for SMBs. Wordfence (free or Premium at $119 CAD/year) protects against common attacks. Enable two-factor authentication (2FA) for all admin accounts and change the login URL with WPS Hide Login to reduce brute-force risks.

Essential WordPress security measures:

  • Install Wordfence (free or Premium)
  • Enable 2FA on wp-admin
  • Change login URL with WPS Hide Login
  • Limit login attempts (Limit Login Attempts)

A hacked site can be costly to recover and damage your reputation. Investing in WordPress security protects your SMB and your clients.

Choosing the Right Hosting: cPanel vs Managed WordPress

Hosting choice impacts WordPress performance. cPanel plans at Bluehost or Hostpapa cost $5–15 CAD/month and offer flexibility with manual management. For optimal performance, WP Engine ($30 CAD/month) or Kinsta ($35 CAD/month) provide managed WordPress hosting, including backups, security, and automatic updates.

Hosting comparison for Quebec SMBs:

  • cPanel (Bluehost, Hostpapa): affordable, manual management
  • WP Engine: managed WordPress, expert support
  • Kinsta: managed WordPress, premium performance

For critical or high-traffic sites, managed hosting is a worthwhile investment. It ensures stable load times and responsive support—key for growth in Quebec.

FAQ

Frequently Asked Questions

How do I know if my WordPress memory limit is sufficient?

You can check your current WordPress memory limit via the Site Health tool in the WordPress admin under “Info.” If you see “Allowed memory size exhausted” errors or your site crashes during updates or imports, your limit is likely too low. For most SMBs, 256M is recommended, especially with WooCommerce or multiple plugins.

Which plugins are recommended for cleaning the WordPress database?

WP-Optimize is a popular and free choice for cleaning the WordPress database. It lets you delete post revisions, expired transients, spam comments, and optimize tables. Other options include Advanced Database Cleaner and Optimize Database after Deleting Revisions. Always back up before major cleanups.

How much does WordPress optimization cost for a Quebec SMB?

WordPress optimization can cost from $0 (free solutions) up to $250 CAD/year depending on tools: WP Rocket ($59 CAD/year), Wordfence Premium ($119 CAD/year), UpdraftPlus Premium ($70 CAD/year), BunnyCDN (from $12 CAD/year). Managed WordPress hosting is $30–35 CAD/month. Your investment depends on your business needs.

Why are my images slowing down my WordPress site?

Unoptimized images (large file sizes, oversized dimensions) increase load times. Converting to WebP, enabling lazy loading, and compressing images with Smush or EWWW Image Optimizer reduces their weight. Setting explicit dimensions prevents layout shifts and improves Core Web Vitals.

What’s the difference between cPanel hosting and managed WordPress?

cPanel hosting (Bluehost, Hostpapa) is cheaper ($5–15 CAD/month) but requires manual management (updates, security). Managed WordPress hosting (WP Engine, Kinsta) costs more ($30–35 CAD/month) but includes backups, security, automatic updates, and expert support. It’s ideal for SMBs seeking peace of mind.

How can I monitor my WordPress site’s uptime?

Use UptimeRobot (free) to get alerts if your WordPress site goes down. Pingdom offers more detailed reports but is paid. These tools monitor your site 24/7 and notify you by email or SMS if there’s downtime—essential for your SMB’s reputation and performance in Quebec.

Need help with your project?

H1Site helps Quebec SMBs with custom web and SEO strategies.