{"id":36963884,"url":"https://github.com/lukegarrisondev/optistate","last_synced_at":"2026-01-13T19:09:09.133Z","repository":{"id":331122980,"uuid":"1125372182","full_name":"lukegarrisondev/optistate","owner":"lukegarrisondev","description":"WP Optimal State Plugin - Advanced optimization, backup and cleaning plugin: It cleans your database, optimizes your tables, backs up your database, and enables page caching for maximum performance.","archived":false,"fork":false,"pushed_at":"2026-01-12T18:25:31.000Z","size":7857,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T23:57:49.487Z","etag":null,"topics":["plugin","plugins-wordpress","wordpress","wordpress-development","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://x.com/lukegarri","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukegarrisondev.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-30T15:58:53.000Z","updated_at":"2026-01-12T18:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lukegarrisondev/optistate","commit_stats":null,"previous_names":["lukegarrisondev/optistate"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lukegarrisondev/optistate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukegarrisondev%2Foptistate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukegarrisondev%2Foptistate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukegarrisondev%2Foptistate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukegarrisondev%2Foptistate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukegarrisondev","download_url":"https://codeload.github.com/lukegarrisondev/optistate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukegarrisondev%2Foptistate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28397826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["plugin","plugins-wordpress","wordpress","wordpress-development","wordpress-plugin"],"created_at":"2026-01-13T19:09:08.491Z","updated_at":"2026-01-13T19:09:09.125Z","avatar_url":"https://github.com/lukegarrisondev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"WP Optimal State Free/Pro - v1.2.0\r\n\r\nTransform your WordPress site into a lean, high-performance machine with WP Optimal State Pro. This all-in-one optimization suite combines professional-grade database maintenance, intelligent backup management, and advanced caching systems into a single powerful plugin.\r\n\r\nWhy Your Database Needs WP Optimal State Pro\r\nEvery WordPress site naturally accumulates digital clutter over time. Draft revisions multiply with each save, spam comments pile up, orphaned metadata lingers after content deletion, and expired temporary data remains in your database. This accumulation degrades site speed, inflates hosting storage, and impacts overall performance.\r\n\r\nWP Optimal State Pro tackles these issues head-on with a sophisticated yet user-friendly approach to database maintenance.\r\n\r\nCore Capabilities\r\nSmart Database Optimization. The plugin provides granular control over what gets cleaned and when. Choose from 18 different cleanup operations including post revisions, auto-drafts, spam comments, orphaned metadata, duplicate entries, and expired transients. The one-click optimization feature intelligently processes all safe operations simultaneously, while advanced users can optimize individual tables, repair corrupted data, and streamline autoloaded options.\r\n\r\nEnterprise-Grade Backup System. Security is paramount when working with databases. WP Optimal State Pro implements a chunked backup system that handles databases of any size without server timeouts. Each backup includes SHA-256 checksums for integrity verification, metadata tracking, and configurable retention policies. The restore process incorporates automatic safety backups with rollback capability, ensuring your site remains protected even if restoration encounters issues.\r\n\r\nDual-Layer Caching Architecture. Accelerate your site with server-side HTML caching that serves pre-rendered pages instantly, bypassing PHP and database queries entirely. Complement this with browser caching rules that instruct visitors’ browsers to store static assets locally. The system includes mobile-specific caching, cookie consent detection, customizable exclusion patterns, and automatic cache preloading from sitemaps.\r\n\r\nPerformance Fine-Tuning Suite. Control WordPress core features to eliminate unnecessary overhead. Disable XML-RPC for security, limit post revisions to prevent bloat, adjust the Heartbeat API frequency to reduce server load, and remove unused components like emoji scripts and shortlinks. Each optimization includes clear descriptions of its impact.\r\n\r\nIntelligent Automation Schedule cleanup operations to run automatically at your preferred time, with configurable frequency from daily to yearly. Email notifications keep you informed of completed tasks, backup creation, and any issues requiring attention.\r\n\r\nDatabase Health Monitoring. The integrated health scoring system analyzes your database across performance, cleanliness, and efficiency metrics, providing actionable recommendations based on actual data analysis.\r\nBuilt exclusively for single-site WordPress installations with security, reliability, and performance at its core.\r\n\r\nEssentially, WP Optimal State Pro is four plugins in one:\r\nDatabase Cleanup and Optimization\r\nDatabase Backup and Restore\r\nDatabase Search \u0026 Replace\r\nCaching and Performance Tuning\r\n\r\nIt can easily replace the following plugins, saving you a considerable amount of money:\r\nUpdraftPlus, WP Database Backup, WP Rocket, WP Super Cache, WP-Optimize, Better Search Replace, Heartbeat Control, Perfmatters, WP Revisions Control, Clearfy, Advanced Database Cleaner.\r\n\r\nKey Features:\r\nOne-click database optimization\r\nSecure database backup \u0026 restore system\r\nDatabase health score \u0026 recommendations\r\nAutomatic scheduled optimization\r\nPerformance Features Manager\r\nEmail notifications for scheduled tasks\r\nSafety backup before restore operations\r\nDetailed database structure analysis\r\nEfficient page caching + browser caching\r\n\r\n-----------------------------------------------------------\r\n\r\nFeature Free Version Pro Version\r\nDatabase Backup \u0026 Restore\r\nCreate Database Backups ✓ Yes ✓ Yes\r\nMaximum Backups to Keep 1 Up to 10\r\nDownload Backups ✓ Yes ✓ Yes\r\nRestore from Existing Backups ✓ Yes ✓ Yes\r\nRestore Database from Uploaded File ✗ No ✓ Yes\r\nBackup Verification (Checksum) ✓ Yes ✓ Yes\r\nDatabase Cleanup \u0026 Optimization\r\nOne-Click Optimization ✓ Yes ✓ Yes\r\nDatabase Health Score ✓ Yes ✓ Yes\r\nDatabase Statistics ✓ Yes ✓ Yes\r\nDetailed Database Cleanup (18 cleanup types) ✓ Yes ✓ Yes\r\nOptimize All Tables ✓ Yes ✓ Yes\r\nAnalyze \u0026 Repair Tables ✗ No ✓ Yes\r\nOptimize Autoloaded Options ✗ No ✓ Yes\r\nDatabase Structure Analysis ✓ Yes ✓ Yes\r\nDatabase Search \u0026 Replace ✗ No ✓ Yes\r\nDelete Unused Tables ✗ No ✓ Yes\r\nAutomation Features\r\nAutomatic Backup and Cleaning (Scheduled Tasks) ✗ No ✓ Yes\r\nEmail Notifications for Scheduled Tasks ✗ No ✓ Yes\r\nCustomizable Schedule (Every X Days at Specific Time) ✗ No ✓ Yes\r\nPerformance Features\r\nServer-Side Page Caching ✓ Yes ✓ Yes\r\nBrowser Caching (.htaccess Rules) ✓ Yes ✓ Yes\r\nCache Purging ✓ Yes ✓ Yes\r\nCache Statistics ✓ Yes ✓ Yes\r\nAutomatic Cache Preload (Sitemap-Based) ✗ No ✓ Yes\r\nMobile-Specific Cache ✗ No ✓ Yes\r\nCustom Consent Cookie Support ✗ No ✓ Yes\r\nQuery String Handling Modes (3 Options) ✓ Yes ✓ Yes\r\nSmart Cache Invalidation on Content Updates ✓ Yes ✓ Yes\r\nDatabase Query Caching ✓ No ✓ Yes\r\nLazy Load Images \u0026 Iframes ✓ Yes ✓ Yes\r\nPost Revisions Limit Control ✓ Yes ✓ Yes\r\nTrash Auto-Empty Control ✓ Yes ✓ Yes\r\nHeartbeat API Control ✓ Yes ✓ Yes\r\nDisable XML-RPC ✓ Yes ✓ Yes\r\nRemove Emoji Scripts ✓ Yes ✓ Yes\r\nRemove Unused WordPress Headers ✓ Yes ✓ Yes\r\nIntegrated PageSpeed Metrics ✓ Yes ✓ Yes\r\nSecurity \u0026 Safety\r\nAutomatic Safety Backup Before Restore ✓ Yes ✓ Yes\r\nEmergency Rollback on Restore Failure ✓ Yes ✓ Yes\r\nTemporary Table Swap (Zero-Downtime Restore) ✓ Yes ✓ Yes\r\nDatabase Validation Before Restore ✓ Yes ✓ Yes\r\nMaintenance Mode During Restore ✓ Yes ✓ Yes\r\nProtected Backup Directory (.htaccess) ✓ Yes ✓ Yes\r\nUser Management (Restrict Access) ✗ No ✓ Yes\r\nSettings Export \u0026 Import ✓ Yes ✓ Yes\r\nLogging \u0026 Monitoring\r\nOptimization History Log (Last 80 Operations) ✓ Yes ✓ Yes\r\nDetailed Operation Results ✓ Yes ✓ Yes\r\nReal-Time Progress Tracking ✓ Yes ✓ Yes\r\nSupport \u0026 Documentation\r\nComprehensive Plugin Manual ✓ Yes ✓ Yes\r\nMulti-Language Interface Support ✓ Yes ✓ Yes\r\nIn-Dashboard Help \u0026 Tooltips ✓ Yes ✓ Yes\r\nPrice ✓ FREE $105 Lifetime ✓ PRO VERSION HERE\r\n\r\n--------------------------------------------------------------------------\r\n⚠️ Compatibility Notice: This plugin is designed for single-site WordPress installations only. It is not compatible with WordPress Multisite networks.\r\n--------------------------------------------------------------------------\r\n\r\nRequirements\r\nWordPress 5.5 or higher\r\nWordPress Installation Type: Single-site only (Multisite not supported)\r\nPHP 7.4 or higher\r\nMySQL 5.6 or higher\r\nUser Permission: Administrator access required\r\nFile System: Writable `wp-content/uploads/` directory for backups, settings, and logs\r\n\r\n--------------------------------------------------------------------------\r\n\r\nHOW TO INSTALL\r\n\r\nManual Installation:\r\n1. Download the plugin ZIP file (WP_Optimal_State_FREE_1-2-0.zip)\r\n2. Log in to your WordPress admin dashboard\r\n3. Navigate to Plugins → Add New\r\n4. Click Upload Plugin at the top\r\n5. Click Choose File and select the ZIP file\r\n6. Click Install Now\r\n7. Click Activate Plugin when installation completes\r\n8. Look for “Optimal State” in your admin menu\r\n\r\nInstallation via FTP:\r\n1. Download and extract the plugin ZIP file (WP_Optimal_State_FREE_1-2-0.zip)\r\n2. Upload the extracted plugin folder 'optistate' to /wp-content/plugins/\r\n3. Log in to your WordPress admin dashboard\r\n4. Navigate to Plugins\r\n5. Find “WP Optimal State” and click Activate\r\n6. Look for “Optimal State” in your admin menu\r\n\r\n--------------------------------------------------------------------------\r\n\r\nRelease Notes v1.2.0:\r\n1. Smart Polling Intervals: Updated admin.js to dynamically adjust the polling interval in pollRestoreStatus based on the server's response time, reducing admin-ajax.php load during long restores. \r\n2. Resilient Rate Limiting: Improved check_rate_limit to handle rapid concurrent requests more gracefully by utilizing set_transient with a shorter expiration buffer. \r\n3. Database Size Caching: Modified get_total_database_size to force a cache refresh ($force_refresh = true) immediately after a \"One-Click Optimization\" to ensure the dashboard reflects accurate gains. \r\n4. Memory Management: Enhanced _backup_table_data_chunked to call gc_collect_cycles() more frequently during the export of large tables like wp_posts, preventing memory exhaustion errors. \r\n5. Regex Pattern Caching: Cached the compilation of exclude patterns in get_compiled_exclude_patterns to a static property, improving page load performance when \"Server-Side Caching\" is enabled.\r\n6. Fixed: Addressed an issue in clean_orphaned_postmeta where the DELETE query could time out on extremely large databases by implementing stricter LIMIT batching. \r\n7. Fixed: Corrected a logic error in is_safe_restore_query that occasionally flagged valid INSERT statements containing the word \"DROP\" within the content string as security risks.\r\n8. Fixed: get_trusted_host now correctly sanitizes the HTTP_HOST header to prevent potential cache poisoning when generating cache file paths. \r\n9. Fixed: Ensured restore_backup properly resets the optistate_maintenance_mode_active option if a fatal error occurs during the restoration process.\r\n10. Code Hardening: Applied stricter sanitize_text_field input validation in ajax_save_auto_settings to prevent non-numeric values from being saved for auto_optimize_days.\r\n\r\n--------------------------------------------------------------------------\r\n\r\nDeveloper:\r\nLuke Garrison - https://x.com/lukegarri - https://github.com/lukegarrisondev\r\n\r\nPlugin's Official Page:\r\nhttps://payhip.com/b/AS3Pt\r\n\r\nSupport:\r\nhttps://payhip.com/optistate/contact\r\n\r\nUser Manual:\r\nhttps://spiritualseek.com/wp-content/uploads/2025/11/WP_Optimal_State_PRO_User_Manual.html\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukegarrisondev%2Foptistate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukegarrisondev%2Foptistate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukegarrisondev%2Foptistate/lists"}