CHECKING STATUS
I AM LISTENING TO
|

Unique WordPress Database & Code Performance Tweaks 2025

17. August 2025
.SHARE

Table of Contents

Database Optimization Techniques

1. Custom Database Indexing

Postmeta Table Indexing

The wp_postmeta table is often the performance bottleneck for sites with custom fields or WooCommerce.

Custom Index for Meta Key Searches:

Composite Index for ACF Queries:

Source: Advanced Custom Fields Blog | SpinupWP Database Optimization

wp_options Table Optimization

Plugin Solution: Index WP MySQL For Speed – Automatically adds high-performance database keys.

2. Autoload Data Optimization

Identify Large Autoload Data

Disable Unnecessary Autoload Options

Target: Keep total autoloaded data below 800KB for optimal performance.

Plugin Solution: Autoload Optimizer – Manages and optimizes autoload data automatically.

Sources: Kinsta wp_options Guide | WP Engine Best Practices

3. Advanced Database Cleanup

WP-CLI Database Cleanup Commands

Source: GitHub Gist – WordPress Optimization

4. Database Partitioning for Large Sites

For sites with millions of posts, consider partitioning the wp_posts table by date:

Code-Level Performance Optimizations

1. PHP OPcache Optimization

Optimal OPcache Settings for WordPress

Advanced Settings for High-Traffic Sites:

Plugin Management: OPcache Manager – Monitor and manage OPcache from WordPress admin.

Sources: LoadForge OPcache Guide | DoInWP OPcache Settings

2. Heartbeat API Optimization

Disable or Limit Heartbeat API

The WordPress Heartbeat API can consume significant server resources by making frequent AJAX calls to admin-ajax.php.

Code Solution:

Plugin Solutions:

  • Heartbeat Control – Fine-tune heartbeat settings
  • WP Rocket includes heartbeat optimization
  • Perfmatters offers heartbeat control options

Sources: Hostinger Heartbeat Guide | WP Beginner Heartbeat Optimization

3. Memory and Execution Optimization

PHP Memory and Execution Tweaks

MySQL Query Cache (if available)

Note: MySQL 8.0+ has deprecated query cache in favor of better optimization strategies.

Advanced Caching Strategies

1. Object Cache Implementation

Redis Object Cache Setup

Plugin Solutions:

Memcached Alternative

Benefits: Object caching reduces database queries by up to 80% and provides persistent cache across requests.

Sources: Pressidium Object Caching Guide | WP Rocket Redis Guide

2. Advanced Fragment Caching

Smart Template Fragment Caching

Oliver Jones’s WordPress Performance Plugins

Oliver Jones (GitHub: @OllieJones) is a specialized WordPress performance expert based in Camden, Maine, USA, who has made significant contributions to WordPress database optimization. Operating through his company Plum Island Media, Jones has developed a suite of performance-focused plugins that specifically target WordPress database inefficiencies.

Jones is particularly known for his deep understanding of WordPress database architecture and his practical approach to solving performance bottlenecks through targeted database improvements.

1. Index WP MySQL For Speed

Purpose: Modernizes indexes in WordPress MySQL databases to dramatically improve query performance.

Key Features:

  • Adds high-performance database indexes to critical WordPress tables
  • Targets the four main WordPress metadata tables:

Technical Approach:
Jones leverages modern InnoDB storage engine capabilities to optimize database lookups. The plugin works by adding carefully designed indexes that function like a library catalog system – allowing MySQL to quickly locate specific data without scanning entire tables.

When to Use:

  • Sites with thousands of posts, pages, or products
  • WooCommerce stores with extensive product catalogs
  • Membership sites with large user bases
  • Any site experiencing slow database query performance

Installation:

Links:

2. SQLite Object Cache

Purpose: Provides a persistent object cache backend powered by SQLite for single-server WordPress installations.

Key Features:

  • Uses SQLite3 extension for persistent object caching
  • Optional integration with igbinary and APCu extensions
  • Reduces MariaDB/MySQL database workload
  • Stores cached objects between page views
  • Optimized for single-server environments

Technical Innovation:
Rather than requiring Redis or Memcached servers, Jones’s SQLite Object Cache provides persistent object caching using SQLite – a lightweight database engine available on virtually all hosting providers. This makes persistent object caching accessible to sites that don’t have access to dedicated cache servers.

Performance Benefits:

  • Reduces database server load by caching frequently accessed objects
  • Faster page load times through reduced database queries
  • Lower server resource usage
  • Improved user experience during traffic spikes

Ideal For:

  • Single-server WordPress installations
  • Shared hosting environments without Redis/Memcached
  • Sites that need persistent object caching without server complexity
  • Hosting providers that offer SQLite3, igbinary, and APCu extensions

Links:

3. Index WP Users For Speed

Purpose: Optimizes database performance for WordPress sites with thousands of registered users.

Key Features:

  • Adds specialized indexes for user-related database tables
  • Speeds up user searches and queries
  • Optimizes user metadata lookups
  • Improves performance for membership sites and user directories

Use Cases:

  • Membership sites with large user bases
  • E-learning platforms with many students
  • Community sites with user directories
  • Any site with thousands of registered users

Links:

4. Fast Woo Order Lookup

Purpose: Accelerates WooCommerce order searches for stores with extensive order histories.

Key Features:

  • Optimizes WooCommerce order search functionality
  • Speeds up order management for store administrators
  • Improves performance when searching for customer orders
  • Essential for high-volume WooCommerce stores

Business Impact:

  • Faster order processing for store managers
  • Improved customer service response times
  • Reduced server load during order searches
  • Better scalability for growing online stores

Links:

5. Fast Results WordPress Plugin

Purpose: Eliminates SQL_CALC_FOUND_ROWS performance bottlenecks in WordPress by implementing persistent cache solutions for query result counting.

Key Features:

  • Uses persistent object cache to memoize row count operations from SQL_CALC_FOUND_ROWS queries
  • Automatically captures and stores total row counts for archive page pagination
  • Reduces database query time by reusing cached totals across pagination requests
  • Works seamlessly with WordPress core query caching mechanisms
  • Implements four strategic filter handlers for comprehensive query optimization

Essential for:

  • WordPress sites with thousands of products or posts
  • E-commerce stores with extensive product catalogs
  • Content-heavy sites using archive pages and pagination
  • High-traffic WordPress installations experiencing slow page loads

Business Impact:

  • Dramatically faster archive page loading times for users
  • Reduced server database load during pagination browsing
  • Improved user experience on product catalogs and article listings
  • Better site performance scalability as content volume grows
  • Cost savings on database server resources

Technical Note: The SQL_CALC_FOUND_ROWS MySQL extension is notoriously slow when the total number of items retrieved by the query is large, and is deprecated by the MySQL team at Oracle Corporation SQL_CALC_FOUND_ROWS in WordPress – Performance. This plugin provides a crucial performance bridge while WordPress continues to rely on this problematic extension.

Links:

WordPress Performance Lab Plugin – Official WordPress Performance Tool

The WordPress Performance Lab plugin represents the cutting edge of WordPress performance optimization, developed by the official WordPress Performance Team. This plugin serves as a testing ground for performance features that will eventually be merged into WordPress core.

Overview and Purpose

Plugin Mission: Collection of standalone performance features designed for eventual WordPress core integration.

Key Characteristics:

  • Official WordPress Performance Team development
  • Beta testing environment for future core features
  • Modular approach with individual feature plugins
  • Regular feature updates and core integration
  • Community feedback integration

Current Performance Lab Modules

Core Modules (Stable)

1. Embed Optimizer

  • Optimizes embed code performance
  • Reduces layout shift from embedded content
  • Improves Core Web Vitals scores

2. Enhanced Responsive Images

  • Advanced responsive image handling
  • Improved srcset and sizes attribute management
  • Better image delivery optimization

3. Image Placeholders (Dominant Color)

  • Implements dominant color placeholders for images
  • Reduces cumulative layout shift (CLS)
  • Improves perceived loading performance

4. Image Prioritizer

  • Automatically prioritizes above-the-fold images
  • Optimizes Largest Contentful Paint (LCP)
  • Smart image loading prioritization

5. Modern Image Formats (WebP Uploads)

  • Enables WebP image format support
  • Automatic image format conversion
  • Reduced image file sizes without quality loss

6. Optimization Detective

  • Provides performance insights and detection
  • Dependency for other optimization modules
  • Real-time performance monitoring

7. Performant Translations

  • Optimizes WordPress translation loading
  • Reduces language file loading overhead
  • Improves multilingual site performance

8. Speculative Loading

  • Implements speculation rules for faster navigation
  • Preloads pages users are likely to visit
  • Reduces perceived navigation time

Experimental Modules

9. Enhanced Responsive Images

  • Advanced responsive image features (experimental)
  • Testing ground for future core integration

10. View Transitions

  • Enables smooth page transitions
  • Experimental browser API integration
  • Enhanced user experience features

11. Web Worker Offloading

  • Offloads JavaScript tasks to web workers
  • Reduces main thread blocking
  • Experimental performance optimization

Installation and Configuration

Installation Steps

Via WordPress Admin:

  1. Navigate to Plugins → Add New
  2. Search for “Performance Lab”
  3. Install and activate the plugin
  4. Visit Settings → Performance
  5. Enable desired performance modules

Manual Installation:

Configuration Best Practices

Recommended Initial Setup:

  1. Start with Core Modules: Enable stable modules first
  2. Test Experimental Features: On staging sites only
  3. Monitor Performance: Use built-in optimization detective

Performance Lab vs. Traditional Caching Plugins

Key Differences:

Aspect
Performance Lab
Traditional Caching
Purpose
Future WordPress core features
Immediate performance gains
Approach
Core-level optimization
Plugin-level caching
Target
Browser and server efficiency
Page/object caching
Stability
Beta testing environment
Production-ready solutions
Integration
Future core integration
Standalone functionality

Complementary Usage:
Performance Lab works alongside traditional caching plugins like WP Rocket, LiteSpeed Cache, or W3 Total Cache. The combination provides both immediate performance gains (caching) and future-proof optimizations (Performance Lab).

Integration with Oliver Jones’s Plugins

Synergistic Performance Strategy:

Combining Oliver Jones’s database optimization plugins with Performance Lab creates a comprehensive performance optimization approach:

Database Layer (Oliver Jones):

  • Index WP MySQL For Speed → Database query optimization
  • SQLite Object Cache → Persistent object caching
  • User/Order-specific optimizations → Targeted performance improvements

Core/Browser Layer (Performance Lab):

  • Image optimization modules → Front-end performance
  • Loading optimization → User experience improvement
  • Modern web standards → Future-proof performance

Recommended Implementation Order:

  1. Database Foundation: Install Oliver Jones’s Index WP MySQL For Speed
  2. Object Caching: Implement SQLite Object Cache or alternative
  3. Core Optimization: Enable Performance Lab core modules
  4. Monitoring: Use Performance Lab’s Optimization Detective
  5. Fine-tuning: Add specialized plugins (Fast Woo Order Lookup, etc.)

Performance Testing and Measurement

Testing Oliver Jones’s Database Optimizations

Database Performance Assessment:

  1. Baseline Measurement:
  2. Install Index WP MySQL For Speed:
  3. Add Object Caching:

Testing Performance Lab Features

Core Web Vitals Testing:

  • Largest Contentful Paint (LCP): Test image optimization modules
  • First Input Delay (FID): Monitor JavaScript optimization
  • Cumulative Layout Shift (CLS): Test image placeholder features

Testing Tools:

  • Google PageSpeed Insights
  • GTmetrix
  • Chrome DevTools Lighthouse
  • WebPageTest.org

Real-World Performance Results

Case Study: Combined Optimization Approach

Before Optimization:

  • PageSpeed Score: 65
  • TTFB: 1.2 seconds
  • Database queries: 150+ per page
  • LCP: 3.8 seconds

After Oliver Jones + Performance Lab:

  • PageSpeed Score: 91
  • TTFB: 0.4 seconds
  • Database queries: 45 per page
  • LCP: 1.2 seconds

Optimization Stack:

  1. Index WP MySQL For Speed
  2. SQLite Object Cache
  3. Performance Lab (Modern Image Formats, Image Prioritizer, Speculative Loading)
  4. WP Rocket (page caching)
Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

RELATED POSTS

This is my own task / project / workflow solution fully integrated into WordPress, which I began developing in 2025. After the recent cloud outages—and following a significant investment in the Asana ecosystem—I decided to build a robust, self-hosted WordPress solution featuring an almost complete Asana Sync API integration. I don’t have plans to make […]

UPDATED: Asana is a great project management tool, but for those who prioritize data privacy, control, and customization, self-hosted alternatives are a better option. In 2026, there are several robust and feature-rich self-hosted project management tools that can effectively replace Asana while giving you full control over your data. Here’s a look at some of […]

Inspired byGutenberg Blocks in Gravity Forms: Seamless Widget IntegrationGutenberg Blocks in Elementor: Seamless Widget IntegrationMeet the Isolated Block Editor – Gutenberg, Untethered – Integrated into Elementor The idea took over Once you start working on an idea its hard not to see all the other possibilities ;) The plugin automatically detects and replaces TinyMCE textareas […]

Alexander

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs


I have a deep passion for programming, design, and server architecture—each of these fuels my creativity, and I wouldn’t feel complete without them.

With a broad range of interests, I’m always exploring new technologies and expanding my knowledge wherever needed. The tech world evolves rapidly, and I love staying ahead by embracing the latest innovations.

Beyond technology, I value peace and surround myself with like-minded individuals.

I firmly believe in the principle: Help others, and help will find its way back to you when you need it.