Skip to content

fleixweb/wp-health-doctor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Health Doctor

是一个专业的WordPress网站"体检医生",帮你发现并修复网站的隐藏问题,让网站运行更快更稳定。这个通用工具提供自动诊断、智能修复和持续监控,确保网站最佳性能。

Description

WP Health Doctor 是一个通用的WordPress插件,专为提升和维护任何WordPress网站的性能而设计。无论你运行的是WooCommerce、自定义电商解决方案,还是任何突出特色内容的网站,这个插件都提供优化性能和可靠性所需的工具。

Perfect for any WordPress site that:

  • Highlights featured products or content
  • Uses custom post meta for product management
  • Requires database optimization and maintenance
  • Needs automated performance monitoring
  • Benefits from cache management and optimization

Features

🔍 Universal Diagnostics Engine

  • Database Integrity Analysis: Identifies orphaned meta data, duplicate entries, and invalid values across any WordPress installation
  • Query Performance Monitoring: Analyzes and optimizes database queries for featured content systems
  • Cache Compatibility Check: Automatically detects and works with 17+ popular caching solutions
  • Universal Health Scoring: Provides comprehensive system health assessment for any WordPress site

🛠️ Intelligent Auto-Repair System

  • One-Click Universal Fix: Automatically resolves common issues across different WordPress configurations
  • Smart Data Cleanup: Safely removes corrupted meta data and rebuilds database indexes
  • Query Optimization: Enhances database performance for featured content queries
  • Multi-Cache Support: Intelligently clears relevant caches across different caching plugins
  • Index Rebuilding: Optimizes database indexes for improved query performance

📊 Real-time Monitoring Dashboard

  • Live Status Monitoring: Continuously tracks system health and performance metrics
  • Performance Analytics: Detailed insights into query performance and cache effectiveness
  • Intelligent Alerting: Proactive notifications for critical issues requiring attention
  • Activity Timeline: Comprehensive logging of all maintenance and repair activities

🎯 Enterprise-Grade Features

  • Automated Backup System: Creates safety backups before any repair operations
  • Progress Tracking: Real-time updates during repair and maintenance processes
  • Historical Analysis: Maintains detailed records of system health over time
  • Universal Compatibility: Works seamlessly with any WordPress theme or plugin setup

Universal Cache Plugin Support

This plugin automatically detects and optimizes cache settings for maximum compatibility:

  • WP Rocket
  • W3 Total Cache
  • WP Super Cache
  • LiteSpeed Cache
  • WP Fastest Cache
  • Autoptimize
  • WP Optimize
  • Hummingbird
  • SG Optimizer
  • Comet Cache
  • Cache Enabler
  • Breeze
  • Swift Performance
  • Perfmatters
  • Redis Object Cache
  • Cloudflare
  • Memcached

And many more - the plugin intelligently adapts to any caching solution.

Installation

  1. Upload the plugin files to /wp-content/plugins/featured-products-fix/
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Navigate to Featured Fix in your admin menu to access the dashboard
  4. Run your first diagnostic to assess your site's health

Quick Start Guide

For New Users

  1. Access Dashboard: Go to Featured Fix > Dashboard in your WordPress admin
  2. Run Initial Diagnostic: Click "Run Diagnostic" to get a complete health assessment
  3. Review Results: Check your database integrity, query performance, and cache status
  4. One-Click Repair: Use "One-Click Repair" to automatically fix any detected issues

For Advanced Users

  • Custom Repairs: Access Featured Fix > Repair for granular control over repair operations
  • Detailed Diagnostics: Use Featured Fix > Diagnostic for in-depth system analysis
  • Monitoring Setup: Configure automated alerts and scheduled maintenance tasks

Common Use Cases

E-commerce Websites

  • Optimize WooCommerce featured product queries
  • Maintain database integrity for product catalogs
  • Ensure fast loading times for featured product sections
  • Monitor performance during high-traffic periods

Content Management Sites

  • Optimize featured post and page queries
  • Clean up orphaned metadata from deleted content
  • Improve search and filtering performance
  • Maintain database efficiency over time

Multi-site Networks

  • Standardize featured content management across sites
  • Centralized monitoring and maintenance
  • Consistent performance optimization across the network
  • Bulk repair and maintenance operations

API Usage

The plugin provides developer-friendly functions for custom integrations:

// Run comprehensive diagnostic check
$report = featured_products_fix_run_diagnostic();

// Execute specific repairs
$results = featured_products_fix_run_repair(['meta_data', 'cache']);

// Get current health score
$score = featured_products_fix_get_health_score();

// Check cache status
$cache_info = featured_products_fix_get_cache_status();

System Requirements

  • WordPress: 5.0 or higher (tested up to 6.4)
  • PHP: 7.4 or higher (8.x recommended)
  • MySQL: 5.6+ or MariaDB 10.0+
  • Memory: 64MB minimum (128MB recommended)
  • Disk Space: 5MB for plugin files

Optional but Recommended:

  • WooCommerce for e-commerce optimization
  • Object caching (Redis/Memcached) for enhanced performance
  • SSD storage for optimal database performance

Frequently Asked Questions

Is this plugin safe to use on production sites?

Absolutely! The plugin creates automatic backups before making any changes and includes comprehensive rollback functionality. All operations are thoroughly tested and include safety checks.

Will it work with my theme and plugins?

Yes! This plugin is designed for universal compatibility. It works with any WordPress theme and is compatible with all major plugins including WooCommerce, membership plugins, and page builders.

Do I need WooCommerce for this plugin to work?

No. While the plugin provides excellent WooCommerce optimization, it works with any WordPress site that uses featured content, custom post types, or needs database optimization.

How often should I run diagnostics?

The plugin includes automatic weekly health checks, but you can run manual diagnostics anytime. For high-traffic sites, consider running diagnostics monthly or after major content updates.

What if something goes wrong during a repair?

Every repair creates an automatic backup that can be restored instantly. Additionally, all repairs are logged, and you receive detailed reports of any issues encountered.

Can I use this on multisite networks?

Yes! The plugin fully supports WordPress multisite installations and can manage optimization across your entire network.

Changelog

1.0.0

  • Initial release
  • Comprehensive diagnostic system
  • Automated repair functionality
  • Real-time monitoring dashboard
  • Multi-cache plugin support
  • Backup and restore capabilities

Testing

This plugin includes comprehensive testing capabilities to ensure reliability and performance:

Quick Health Check

# Command line
php wp-content/plugins/featured-products-fix/run-tests.php --suite health

# Web interface
http://yoursite.com/wp-content/plugins/featured-products-fix/run-tests.php?suite=health

Running All Tests

# Command line - all tests
php wp-content/plugins/featured-products-fix/run-tests.php --suite all

# Web interface - all tests
http://yoursite.com/wp-content/plugins/featured-products-fix/tests/run-all-tests.php?run_all_tests=1

PHPUnit Tests

For developers with Composer and PHPUnit:

cd wp-content/plugins/featured-products-fix/
composer install --dev
vendor/bin/phpunit

Test Environment Setup

cd wp-content/plugins/featured-products-fix/
chmod +x bin/setup-tests.sh
./bin/setup-tests.sh

Available Test Suites

  • Health Check: Quick plugin health verification
  • Unit Tests: Individual component testing
  • Integration Tests: End-to-end functionality testing
  • Performance Tests: Performance benchmarks and scalability testing

For detailed testing information, see TESTING.md.

Support

For support, feature requests, or bug reports, please visit our GitHub repository.

License

This plugin is licensed under the GPL v2 or later.

Credits

Developed with ❤️ for the WordPress community.