Optimal State – Advanced Optimization, Performance & Security Suite
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 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 🔒 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 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.0 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 Live Interactive Demo Support Page User Manual 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.
Top keywords
- database22×1.82%
- optimization16×1.32%
- performance15×1.24%
- page13×1.07%
- caching11×0.91%
- cleanup11×0.91%
- restore11×0.91%
- optimal10×0.83%
- optimal state10×0.83%
- state10×0.83%
- backup9×0.74%
- support9×0.74%
Session Shredder for WooCommerce
Session Shredder is a production-grade, rule-based session cleanup plugin for WooCommerce 10.3+. WooCommerce 10.3 introduces experimental guest session storage and auto-pruning. Session Shredder builds directly on this already available foundation and adds behavior-based heuristics that predict which sessions are zombies (safe to prune) versus keepers (should be retained). Highlights – Heuristic pruning – Uses anonymized features (session age, pageviews, cart value, etc.) and conservative rules to identify low-value sessions. – Configurable rules & thresholds – Tune base age, hard timeout, bounce detection, and cart-protection rules from a dedicated WooCommerce settings screen. – Safe thresholds – Only considers sessions past a base age window and is biased towards keeping anything that shows meaningful activity or cart value. – Robust behavior – Even if tracking data is sparse, a conservative rule-based strategy kicks in (e.g. hard 72h timeout, bounces with no cart value). – Privacy-first – No PII is stored. Session IDs and countries are hashed; only coarse behavioral data is used. – Native Woo 10.3 integration – Reads from the WooCommerce session table (supports both legacy and new tables) and plays nicely with the core experimental pruning. – HPOS compatible – Declares compatibility with WooCommerce High-Performance Order Storage (custom order tables) and never touches orders, only session data. – Admin dashboard – Under WooCommerce → Session Shredder you get active sessions, pruned counts, a Chart.js visualization of active & pruned sessions per run, and a compact “Recent runs” summary. – Logging & observability – Uses wc_get_logger() for info/error logging; integrates cleanly with existing WooCommerce logs. Session Shredder is structured for real-world stores and designed as a companion to WooCommerce’s experimental guest session engine. It stays fully rule-based out of the box, but developers can extend it via hooks if they ever want to plug in external scoring services or AI endpoints. Why not rely only on the WooCommerce experimental pruning? – Core experimental pruning is largely age-based and opaque. – Session Shredder adds behavior-aware rules (pageviews, cart value, bounce flag) on top of age. – You get a dry-run mode to analyze impact before deleting anything. – The dashboard gives you visibility into how many sessions were pruned per run and how many sessions remained active. – WP-CLI commands let you script and automate analyze/prune runs. – It works alongside WooCommerce experimental guest sessions and HPOS rather than replacing them: Woo can still prune based on its own rules, while Session Shredder adds a tunable, rule-based layer with better reporting. How It Works Feature collection – On each page load, Session Shredder tracks session activity: – Session age (hours since first seen) – Pageviews count – Cart value (numeric) – Whether anything was added to cart – Geolocation hash (hashed billing/shipping country) – Simple bounce indicator (single pageview, no cart) – Features are stored per-session in non-autoloaded options and never include raw session IDs or user identifiers. Rule-based pruning – An hourly cron (session_shredder_cron) scans the WooCommerce session table for candidates based on age. – For each candidate, the plugin: – Loads stored features – Applies conservative rules like: – Session older than a hard timeout window (e.g. 72 hours) – Single pageview and no cart value – If the rules deem the session a low-value “zombie”, it is pruned. Stats & visualization – After each real run, Session Shredder records: – Total pruned sessions (lifetime and today) – A short history of recent runs, including how many sessions were pruned and how many remained active before/after each run – The admin dashboard renders a Chart.js line graph of active & pruned sessions per run via a secure AJAX endpoint, plus a compact “Recent runs” table. For developers Session Shredder exposes a small set of hooks and CLI commands so you can integrate it into more advanced workflows without forking the plugin. Hooks – session_shredder_features( array $features, string $session_hash ) – Filter the behavior feature array before it is stored and later used for pruning decisions. – $session_hash is a hashed identifier of the session (no raw IDs or PII). – session_shredder_base_age_hours( float $base_age_hours ) – Adjust the base age window (in hours) before sessions are considered as prune candidates. – session_shredder_should_prune( bool $should_prune, array $features ) – Override or refine the core rule-based decision for a given session. – session_shredder_feature_options_soft_limit( int $soft_limit ) – Adjust the soft cap for how many per-session feature options (session_shredder_features_*) are kept in wp_options before garbage collection trims the oldest entries. – session_shredder_feature_options_gc_batch( int $batch_size ) – Adjust how many feature options are removed per garbage-collection pass when the soft limit is exceeded. Larger values clean up faster; smaller values spread work over more runs. – session_shredder_before_run( float $base_age_hours, bool $dry_run ) – Fires before a prune run (cron, manual, or CLI) starts. – session_shredder_after_run( int $pruned_count, bool $dry_run ) – Fires after a prune run completes (dry-run or real). – session_shredder_pruned( int $pruned_count ) – Fires after a real prune run that actually deletes sessions; useful for logging or additional cleanup. WP-CLI commands If WP-CLI is available, Session Shredder registers the following commands: – wp session-shredder analyze – Performs a dry run using the current rules and settings. – Outputs the total number of sessions and how many would be pruned, without deleting anything. – wp session-shredder prune – Runs a real prune using the current rules and settings. – Deletes matching sessions, updates stats, and logs a summary.