Skip to content
Sign in
Optimal State – Advanced Optimization, Performance & Security Suite icon

Optimal State – Advanced Optimization, Performance & Security Suite

One plugin to optimize, backup, secure, and speed up your WordPress site.

Not scanned yet WordPress plugin 30 installs

Install in

No install steps yet

Follow the steps on the source page.

Optimal State is a complete performance suite that does it all: database optimization, automated backups, page caching, brute force protection, 2FA, search & replace, and advanced cleanup. All in one lightweight plugin.

Why pay for 4-6 separate plugins? Optimal State replaces WP Rocket, UpdraftPlus, WP‑Optimize, Perfmatters, Better Search Replace, Loginizer and more — saving you money, reducing conflicts, and simplifying your workflow.

▶ Live Interactive Demo | 📕 User Manual

What Makes Optimal State Different?

🚀 All‑in‑One, Not a Collection of Features
Unlike plugins that bolt on random features, Optimal State is engineered as a unified performance system. Every component works together, not against each other.

💰 Replace 6+ Premium Plugins
Stop paying for multiple subscriptions. Get everything you need in one plugin:

  • UpdraftPlus Database backup & restore (with safety rollback)
  • WP Rocket Page caching, browser caching, performance tweaks
  • WP‑Optimize Database cleanup, table optimization, autoload optimization
  • Better Search Replace Serialization‑safe search & replace
  • Perfmatters Heartbeat control, emoji removal, header cleanup
  • Loginizer Brute force protection, IP blocking
  • WP Crontrol Review, pause, or delay cron jobs
  • Plus 2FA, legacy plugin scanner, integrity scanner, index manager

🔬 Built on Real Database Science
Our proprietary health scoring algorithm (0–100) analyzes 3 key areas: Performance (40%), Cleanliness (35%), and Efficiency (25%). It tells you exactly what to fix and when.

🛡️ Enterprise‑Grade Safety
Every destructive operation includes:
– Automatic safety backup
– Emergency rollback system
– Zero‑downtime restore (temp table swap)
– Database validation before restore
– Maintenance mode during critical ops

What You Can Do With Optimal State

🗄️ Database Optimization
– One‑click optimization cleans 20 types of database bloat in seconds
– Real‑time health score (0‑100) shows your database condition at a glance
– Table defragmentation recovers wasted disk space
– Autoload optimization speeds up every page load (critical for TTFB)
– Table repair fixes corrupted tables automatically
– Legacy plugin scanner removes ghost data from uninstalled plugins
– Delete unused tables safely (with protection for active plugins)

💾 Backup & Restore
– Create GZIP‑compressed database backups with integrity checksums
– Restore any backup with automatic safety rollback
– Keep up to 10 backups with automatic rotation
– Upload and restore external backups (up to 5GB)
– Zero‑downtime restore using temporary table technology
– Protected backup directory prevents unauthorized access

⚡ Caching System
– Server‑side page caching delivers lightning‑fast HTML
– Browser caching with automatic .htaccess rules (Apache)
– Database query caching for Redis/Memcached
– Mobile‑specific cache for separate mobile layouts
– Smart cache preload from sitemap
– GDPR‑compliant cookie detection (supports 20+ consent plugins)
– Intelligent auto‑purge on content updates

🔍 Search & Replace
– Serialization‑safe — handles PHP serialized data correctly
– Dry run mode previews all changes before execution
– Table‑specific operations for targeted updates
– Partial or whole‑word matching
– Essential for domain migrations

🎛️ Performance Features
– Bad bot blocker blocks resource‑hungry crawlers
– Font loading optimization eliminates render‑blocking fonts
– Lazy load images and iframes
– Heartbeat API control reduces server load by 60%+
– Post revisions limit (save 30‑50% database space)
– Trash auto‑empty after X days
– Disable XML‑RPC (block brute force attacks)
– Remove emoji scripts (save 12KB per page)
– Clean WordPress headers (hide version, RSD, WLW, shortlinks)

📊 Analytics & Monitoring
– PageSpeed Insights integration (Core Web Vitals)
– Performance metrics dashboard
– Detailed database statistics
– Activity log (last 250 operations)
– Track optimization impact over time

⏰ Automation
– Schedule daily, weekly, or monthly optimization
– Email notifications with detailed reports
– Custom time selection (run during low traffic)
– Combined backup + cleanup operations
– View all WordPress cron jobs and adjust them

🔒 Security
– Emergency rollback on restore failure
– Maintenance mode during critical operations
– Database validation before restore
– User access control (restrict plugin to specific admins)
– Settings export/import
– Brute force protection for login page
– IP number blocker (block entire site access)
– Two‑Factor Authentication (2FA)

Perfect For

🛒 E‑commerce Stores – WooCommerce session cleanup, Action Scheduler optimization, order transient removal, product index optimization

📝 High‑Traffic Blogs – Revision control, comment spam removal, transient cleanup, cache preload

🏢 Agencies & Developers – Staging/production migrations, bulk cleanup, settings export/import

🔒 Membership Sites – User metadata optimization, scheduled maintenance, login protection

🌐 Any WordPress Site – Slow admin, bloated database, poor performance, or security concerns

Replaces These Popular Plugins

  • UpdraftPlus Backup & Restore
  • WP Rocket Caching & Performance
  • WP Super Cache Page Caching
  • WP-Optimize Database Cleanup
  • Better Search Replace Database Search & Replace
  • Perfmatters Performance Optimization
  • Heartbeat Control Heartbeat Management
  • WP Control Cron Jobs Management
  • WP Revisions Control Revision Limits
  • Clearfy Performance Tweaks
  • Advanced Database Cleaner Deep Database Cleanup
  • Autoptimize Performance Features
  • Loginizer Login Page Protection

What Makes Optimal State Different?

Unlike WP-Optimize: We include professional backup/restore and advanced caching—not just basic cleanup.

Unlike UpdraftPlus: We optimize your database for performance, not just backup. Backups are 40-60% smaller due to optimization.

Unlike WP Rocket: We tackle the root cause (database bloat) instead of just caching around the problem. Combined approach = better results.

Unlike Perfmatters: We provide complete database management, automated backups, and intelligent cleanup—not just toggle switches.

Unlike Loginizer: We provide a user-friendly, straightforward control panel that requires no technical expertise.

The Optimal State Advantage: One plugin, one interface, one optimization strategy. No conflicts, no compatibility issues, no subscription fatigue.

Technical Specifications

  • Minimum Requirements: WordPress 5.5+, PHP 7.4+
  • Tested Up To: WordPress 7.2
  • Server Compatibility: Shared hosting, VPS, dedicated, cloud (AWS, DigitalOcean, etc.)
  • Hosting Compatibility: Bluehost, SiteGround, WP Engine, Kinsta, Cloudways, all major hosts
  • Multisite: Not currently supported
  • Database Support: MySQL 5.6+, MariaDB 10.1+
  • Cache Support: Redis, Memcached, APCu compatible

External Services and Resources

Optimal State utilizes the following third-party services and open-source libraries to enhance functionality and user experience:

  • Google PageSpeed Insights API – Performance measurement tool that analyzes web page content and generates suggestions to make that page faster.
    The plugin’s PageSpeed integration uses this API to fetch and display Core Web Vitals metrics and optimization opportunities.
    When you use the PageSpeed feature, your site URL is sent to Google’s servers for analysis.
    Use of this API is subject to Google’s Terms of Service and Privacy Policy.

    • API Documentation: https://developers.google.com/speed/docs/insights/v5/get-started
    • Terms of Service: https://developers.google.com/terms
    • Privacy Policy: https://policies.google.com/privacy
  • GTranslate Widget – Website translation service that provides automatic language translation functionality.
    The plugin loads the GTranslate popup widget from cdn.gtranslate.net to enable multi-language support in the admin interface.
    When the widget is loaded, it may connect to GTranslate’s servers to provide translation services.
    Use of this service is subject to GTranslate’s Terms of Service and Privacy Policy.

    • Service Website: https://gtranslate.io/
    • Terms of Service: https://gtranslate.io/terms-and-conditions
    • Privacy Policy: https://gtranslate.io/privacy-policy

Note: The PageSpeed Insights feature is optional and only activates when you manually request a performance analysis. No data is sent to external services without your explicit action.

Credits

  • Developed by Luke Garrison
  • Icons by Dashicons (WordPress Core)
  • Performance metrics based on Google PageSpeed Insights

Contributing: Interested in contributing to Optimal State? Feature requests, bug reports, and code contributions are welcome. Visit our support page for contribution guidelines.

Support and Documentation

Getting Help

  • User Manual: Comprehensive documentation built into the plugin (user manual included)
  • FAQ Section: Common questions answered in detail
  • Live Demo: Interactive preview to explore features before installation
  • Email Support: Priority support for Pro version users

Useful Links

Feature Requests

We actively develop Optimal State based on user feedback. If you have a feature request or enhancement idea, please contact us through the support page. Many current features were implemented based on user suggestions.

Written by Joobi from the project's own listing. See the source page

backupcachingcleanupsecurityspeed
26 Nov 2026
Version 1.5.2 released. Not scanned yet.

1.5.2 – November 2026

  • WordPress 7.2 & PHP 7.4–8.6 Compatibility: Verified full compatibility with WordPress 7.2 and PHP 7.4 through 8.6, including WP 7.2 Block Notes (comment_type = 'note') preservation during comment cleanups, FSE taxonomy protection (wp_theme, wp_template_part_area, wp_pattern_category), WordPress 6.6–7.2 autoload value helpers, WP_HTML_Tag_Processor LCP/lazy-loading enhancements, and scoped Cross-Origin-Opener-Policy / Cross-Origin-Embedder-Policy: credentialless security headers that exclude /wp-admin/ requests.
  • Security & Two-Factor Authentication Hardening: Enforced early XML-RPC (system.multicall) and AJAX/REST credential checks for 2FA-enabled accounts; added current-password confirmation before disabling verified 2FA or regenerating verified secrets/backup codes; replaced QR code rendering with a CSP-safe inline SVG <path> renderer that no longer exposes secrets in DOM title attributes; prevented verify_backup_code() from mutating user password hashes; eliminated per-visitor option writes on global IP block checks; enforced IP whitelist precedence and per-form salted login CAPTCHA IDs.
  • Trash Auto-Empty & Cleanup Safety: Fixed “Automatic Trash Emptying -> Disable” so trashed items are kept indefinitely without immediate purges; added a 7-day creation grace period for auto-draft posts (including entries with 0000-00-00 00:00:00 GMT dates); resolved an infinite pagination loop in WooCommerce bloat cleanup; excluded repeatable _used_by meta keys and added safe deduplication across MySQL 5.7/8.0 and MariaDB 10/11; restricted the Referential Integrity child-post rule strictly to orphaned revisions.
  • Backup, SQL Parser & Restore Engine: Fixed keyset pagination for id = 0 rows and unsigned integers, MariaDB generated column handling, VIEW restoration (DEFINER removal with SQL SECURITY INVOKER + CREATE OR REPLACE VIEW deferred execution), SQL statement chunk boundary parsing, and PHP 8.x mysqli_free_result safety; upgraded uninstall.php to remove only trashed tables explicitly recorded in wp_optistate_trash.
  • Server Caching, Indexes, Search & Replace & Admin Compatibility: Normalized URL schemes, tracking parameters, and cache bypasses (wp-postpass_*, comment_author_*, /random/); improved Index Analyzer awareness of UNIQUE, FULLTEXT, SUB_PART prefixes, and core WordPress indexes; enhanced Search & Replace support for serialized string scalars, embedded JSON strings, UTF-8 case matching, and numeric primary keys; updated Admin JS/CSS for jQuery 4 readiness and scoped WordPress 7.2 core compatibility.
  • Modernized Admin UI, Accessibility & UX Polish: Overhauled the entire admin interface (admin.css, admin-page.php, admin.js, profile-2fa.css) while keeping build 1.5.2: added a branded header with version/runtime pills and manual shortcut, ARIA tablist/tabpanel navigation with ArrowLeft/ArrowRight/Home/End keyboard controls and hash deep-linking, radial Database Health & PageSpeed gauges with category progress bars, interactive Cleanup category filters (All Categories, Items Found, Safe to Clean, Review Carefully), drag-and-drop SQL/JSON upload zones, one-click Copy IP and 2FA Copy Secret / Copy All Codes controls, accessible focus-trapped modals with Escape close, cohesive Dashicons replacing mixed glyphs, refined login math challenge & 2FA profile setup cards, mobile 2-column responsive tabs, and UI bug fixes (empty backup row tag, unverified restore tooltip, db_query_caching wrapper class, settings import confirmation scope, and schedule status formatting).

1.5.1 – September 2026

  • Hardened server-level IP whitelisting so client-supplied proxy headers cannot independently bypass IP blocking rules; trusted proxy/CDN deployments remain supported through server-side client IP normalization.
  • Hardened the safe-query page cache mode so unknown or ambiguous query parameters bypass cache reads and writes instead of colliding with the base page cache.
  • Improved Apache cache header compatibility by merging Vary: Accept-Encoding with existing Vary values instead of replacing them.
  • Improved Security Headers compatibility by removing the global form-action 'self' restriction that could interfere with legitimate external payment, SSO, CRM, and form endpoints.
  • Improved table-deletion safety: if moving a table to Optimal State Trash fails, the operation now stops safely instead of falling back to a permanent DROP TABLE.
  • Updated the user manual to document the hardened proxy/IP-whitelist behavior and related compatibility requirements.

1.5.0 – August 2026

  • New Performance Feature: Cron Manager.
  • New admin capability: Reset the 2FA settings of any user.
  • Refactored the Backup Manager class by splitting it into two smaller classes.
  • Refactored the Advanced Tools class by splitting it into two smaller classes.
  • Many bug fixes and improvements across several classes and functions.

1.4.3 – July 2026

  • New Security Feature: Security Headers (basic + optional).
  • New Security Feature: Configurable IP whitelisting.
  • New Security Feature: Enable Login Captcha.
  • New Security Feature: Disable built-in WordPress File Editor.
  • New Security Feature: Disable Application Passwords.
  • Fixed several minor bugs preventing certain features from working consistently.
  • Several classes have been refactored to reduce code duplication and improve overall efficiency.
  • Minor aesthetic enhancements to the user interface to improve usability and clarity.

1.4.2 – June 2026

  • New feature: Settings Presets (4 predefined configuration profiles).
  • Expanded and improved the One-Click Optimization Configuration.
  • Performance Features section redesigned for better readability.
  • Refactored two cleanup functions for improved efficiency and reliability.
  • One-Click Optimization’s preview modal redesigned to be more comprehensive and user-friendly.

1.4.1 – June 2026

  • New security feature: Two-Factor Authentication (2FA).
  • Added System Info section in the Dashboard tab.
  • Added Trash (Recover Deleted Folders) to the Legacy Plugin Data Scanner tool.
  • Added backup-and-restore capability to the Optimize Autoloaded Options tool.
  • Implemented several improvements and refinements for improved efficiency and reliability.

1.4.0 – June 2026

  • Implemented the ‘IP Number Blocker’ feature in addition to the ‘Login Page Protection’.
  • Resolved a minor JavaScript issue affecting the save buttons.
  • Added a new setting to the server-side caching feature (Minify HTML before caching).
  • Improved the Query Caching feature for better performance and reliability.
  • Removed configuration and logging files from uploads/optistate-settings/ folder and moved them to a dedicated database table.
  • Increased the replacement speed of the Database Search & Replace tool.
  • Slightly increased the database statistics load speed.
  • Added more details to the One-Click Optimization interface.

1.3.3 – June 2026

  • Main class “class-optistate.php” split into two additional classes.
  • Toast notification system enhanced for better accessibility and readability.
  • Added a “Refresh Items” button to the One-Click Optimization feature.
  • Improved database backup and restore system compatibility, now covering 99.5% of websites.
  • Enhanced memory management of the database restore process to minimize errors on low-performance servers.
  • Adjusted some settings in the database cleanup functions for faster and more reliable operation.
  • Updated XML-RPC Interface disabling to prevent error messages in the error log file.
  • Database Query Caching system optimized for higher reliability and improved performance.
  • Adjusted the “Optimize All Tables” feature to ensure maximum stability on slow servers as well.
  • Various minor adjustments to ensure full security across all operations on all compatible WordPress and PHP versions.

1.3.2 – June 2026

  • Optimal State becomes completely free starting on June 3, 2026.
  • Enjoy full access to all the advanced features free of charge!

1.3.1 – June 2026

  • Tested with WordPress 7.x for full compatibility.
  • Tested on PHP 8.5 for full compatibility.
  • Fixed a minor issue with date formatting.
  • Fixed the vertical alignment of the dashicons inside the buttons.
  • Fixed the “restore completed” admin notice displaying an incorrect elapsed time on some sites.
  • Fixed autoloaded options size being undercounted on WordPress 6.6+ sites.

1.3.0 – March 2026

  • Updated the server-side caching feature to improve the performance and reliability of the cache preloading and cache purging functionalities.
  • Improved the reliability of the Legacy Plugin Data Scanner to minimize false positives.
  • Added two performance features: Removal of 1. Feed Links (RSS & Atom) and 2. Post Relational Links.
  • Powered up the Database Query Caching feature by adding two extra settings and optimizing how things work.
  • Added validation of security headers via external link to the Browser Caching feature.
  • Added several new recommendations to the Health Score Database tool.
  • Added several new recommendations to the Performance Metrics (PageSpeed) tool.
  • Implemented an additional security check in the database table deletion function within the Database Structure Analysis tool.
  • Refined the Login Page Protection tool to increase its efficiency and reduce its impact on website performance.
  • Completely redesigned the main plugin class (class-optistate.php), optimizing a dozen areas for greater efficiency and improved compatibility.

1.2.2 – February 2026

  • The JavaScript code has been completely rewritten for better efficiency and reliability.
  • Improved Legacy Plugin Data Scanner for deeper scanning.
  • Expanded the database of plugins and themes detected by Legacy Plugin Data Scanner.
  • Improved the scan depth of the Database Search & Replace functionality.
  • Fixed a bug in the database statistics retrieval that caused an error when refreshing.
  • Optimized the integration of Performance Metrics (PageSpeed) for faster and more accurate reporting.
  • Expanded the capabilities of the Database Structure Analysis tool, which now displays plugin/theme names alongside their corresponding database table names.
  • The Bad Bot Blocker tool has been upgraded and now works perfectly and efficiently on Nginx servers as well.
  • The Login Page Protection tool has been revised to increase its efficiency against massive brute force attacks, while still being completely reliable.
  • The user manual has been updated, expanded, and is now more user-friendly.

1.2.1 – February 2026

New Feature: Legacy Plugin Data Scanner
* Detects data left behind by plugins/themes you have uninstalled
* Includes accurate security measures to avoid false positives
* The most powerful and comprehensive tool available in this category
Database Restore System Refinements:
* Full disabling on WordPress Multisite installations
* Enhanced efficiency of several core functions
* Increased protection against SQL injection vulnerabilities
* Added detailed how-to instructions for stuck restore processes
* Compatibility with phpMyAdmin exports increased to 100%
* Optimized server resource management to minimize errors and crashes
Security & Performance Improvements:
* Refined login page protection against brute force attacks
* Minimized memory and CPU waste during massive attack scenarios
* Improved security and behavior of cleanup operations related to:
– WooCommerce data
– Duplicate post meta
– Duplicate comment meta
Enhanced Analytics & Features:
* Improved accuracy of database statistics
* Enhanced efficiency of database queries for statistical retrieval
* Added new performance feature: Font Loading Optimization
* Improved efficiency and reliability of Bad Bot Blocker on Nginx servers
Documentation Updates:
* Expanded user manual with new sections
* Updated existing documentation for better user-friendliness
* Enhanced clarity for technical operations

1.2.0 – January 2026

  • Modal Confirmations: Added user-friendly confirmation dialogs for all critical database operations including Create Backup, One-Click Optimization, Table Defragmentation, Repair Corrupted Tables, Optimize Autoloaded Data, and all cleanup operations (both detailed and targeted). Each modal displays operation-specific details and item counts to ensure informed decisions before execution.
  • Print & Export: New functionality to print the manual or export it as a PDF for offline reference.
  • Navigation Enhancements: Integrated a “Back to Top” smooth-scroll button and a detailed Table of Contents for easier navigation of technical sections.
  • Persistent Tabs: The interface now uses sessionStorage in admin.js to remember your last active tab, ensuring you stay where you left off after a page refresh.
  • Preview Branding: Updated the header section with new “Preview” and “Free Version” badges for better version clarity.
  • Enhanced Modal Styling: Improved modal dialog appearance with better typography, spacing, and close button functionality for a more polished user experience.
  • Expanded Sanitization: Updated optistate.php with more robust sanitization for cache settings, including specific handling for cache_lifetime and query_handling.
  • Optimized Asset Loading: Modified admin.js to use passive scroll listeners, improving the responsiveness of the admin dashboard.
  • Code Refactoring: Migrated inline CSS styles from admin-interface.php to admin.css to improve performance and code maintainability.
  • Safety Features: All destructive operations now require explicit confirmation with clear warnings about permanent data deletion and backup recommendations where appropriate.

1.1.9 – January 2026

  • Added comprehensive user manual with detailed feature explanations
  • Expanded cleanup operations to 20 distinct types
  • Improved performance metrics display with Core Web Vitals
  • Enhanced toast notification system with detailed operation results
  • Replaced remote Font Awesome dependency with local Dashicons for faster loading
  • Localized Chart.js library to eliminate CDN dependency and improve privacy
  • Optimized database query efficiency for faster health score calculations
  • Fixed minor UI inconsistencies in mobile responsive design
  • Updated security recommendations based on WordPress 6.9 best practices

1.1.8 – November 2025

  • Added settings export/import functionality for configuration backup and migration
  • Enhanced PageSpeed Insights integration with detailed Core Web Vitals breakdown
  • Improved database structure analysis with index optimization recommendations
  • Fixed edge case where cache statistics displayed incorrect numbers
  • Updated security hardening recommendations for WordPress 6.8
  • Optimized backup compression algorithm for 15-20% smaller file sizes

1.1.7 – October 2025

  • Added specialized WooCommerce optimization targets (sessions, Action Scheduler, transients)
  • Enhanced caching configuration with mobile-specific options and GDPR cookie support
  • Improved automation scheduling interface with custom time selection
  • Added comprehensive activity logging for all optimization operations (last 150 actions)
  • Implemented smart cache invalidation on WooCommerce order updates
  • Fixed compatibility issue with WooCommerce 8.5+ database structure
  • Performance improvements in cleanup operation speed (30% faster)

1.1.6 – July 2025

  • Core database optimization features: 14 cleanup types, table optimization
  • Basic server-side and browser caching implementation
  • Security hardening tools: XML-RPC disable, emoji removal, header cleanup
  • Automated backup system with GZIP compression
  • Health score algorithm and visual dashboard
  • Performance features: lazy load, heartbeat control, revision limits
5 Jan 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)