PageSpeed Optimization Techniques

Lecture: Do Page Speed Test - The Right Way

Key Testing Tools

Why Proper Testing Matters

Before Running Tests

  1. Purge all caches:

  2. Use incognito mode in your browser:

WebPageTest.org Advanced Settings

Recommended WebPageTest Settings


Lecture: Backup & Restore Your Sites

Why Backups Are Critical for PageSpeed Optimization

What to Backup

Backup Methods Using UpdraftPlus

  1. Install and activate UpdraftPlus plugin

  2. Navigate to: Settings → UpdraftPlus Backups

  3. Click: Backup Now

  4. Select: Database (uncheck others for a quick backup)

  5. Existing backups: View and restore from this section

  6. Remote storage: Configure under Settings tab (Google Drive, OneDrive, etc.)

Manual Database Restoration (When WordPress Admin is Inaccessible)

  1. Access hosting control panel (cPanel)

  2. Find phpMyAdmin under Databases section

  3. Identify your database by looking for tables with "_options" suffix

  4. Confirm correct database by checking siteurl value

  5. Go to Import tab and select the database backup file

  6. Click Go to restore the database

Finding Backup Files

Full Site Restoration


Lecture: Configure Cloudflare

Cloudflare Free Plan Benefits

  1. Protection against DDOS attacks

  2. Fast DNS resolver (improves server response time)

  3. CDN with 250+ data centers worldwide (reduces load time globally)

  4. Free SSL certificates

  5. HTTP/2 support (enables concurrent downloads)

Setup Process

  1. Sign up for a free Cloudflare account

  2. Add your domain

  3. Point your domain nameservers to Cloudflare

Basic Configuration


Lecture: Compress Images in WebP Format

WebP Advantages

Image Compression Types

Server Requirements for WebP

WebP Converter for Media Plugin Configuration

  1. Install and activate the plugin

  2. Go to Settings → WebP Converter

  3. Check server configuration compatibility

  4. Enable supported file extensions: jpg, jpeg, png

  5. Enable supported directories: plugins, themes, uploads

  6. Enable WebP as output format

  7. Choose conversion method: Imagick (preferred) or GD

  8. Set image quality (recommended: 90%)

  9. Image loading mode: "via htaccess" (recommended)

  10. Under extra features:

  11. Click Save Changes

  12. Regenerate all images

  13. Clear all caches and purge Cloudflare cache

  14. Verify WebP conversion by checking image URLs

Alternative: WebP Express Plugin


Lecture: Litespeed Cache

Litespeed Server

Who Should Use LiteSpeed Cache

WP Rocket vs LiteSpeed Cache

Cloudways vs LiteSpeed Server

LiteSpeed Cache Plugin Configuration

  1. General Settings:

  2. Cache Settings:

  3. ESI Settings:

  4. Object Cache Settings:

  5. Browser Cache:

  6. CDN Settings:

  7. Image Optimization:

  8. Page Optimization:

  9. Database Optimization:

  10. Heartbeat Control:


Lecture: WP Rocket Cache

WP Rocket Features

Requirements

Configuration

  1. Basic Cache Options:

  2. File Optimization:

  3. Media Settings:

  4. Preload Settings:

  5. Additional Options:


Lecture: 3 Plugin Combo Technique

For Non-Litespeed Servers Without Premium Plugins

Use these four plugins together:

  1. Cache plugin (W3 Total Cache or Breeze)

  2. Debloat plugin for JS/CSS optimization

  3. OMGF (Optimize My Google Fonts)

  4. WebP converter plugin

Why This Technique

W3 Total Cache Configuration

  1. Go to Performance → Setup Guide

  2. Test and choose optimal settings for:

  3. General Settings:

Debloat Plugin Configuration

  1. CSS Optimization:

  2. JS Optimization:

OMGF (Optimize My Google Fonts) Configuration

  1. Optimization Settings:

  2. Detection Settings:

  3. Advanced Settings:

Troubleshooting Broken Sites

If your site breaks, disable these options one by one:

  1. Remove unused CSS

  2. Fix render blocking CSS

After each change:

Common Breaking Causes


Lecture: What If I Don't Get 100 PageSpeed Score

Key Message

Benchmark Page Load Times to Aim For

Common Reasons for Poor Scores

  1. Slow hosting

  2. Non-optimized theme

  3. Poor front-end plugins/scripts

Solutions

  1. Hosting Improvements:

  2. Theme Optimization:

  3. Plugin Management: