=== DiveWP - Boost Site Performance with Clear, Actionable Steps ===
Contributors: replikon
Tags: performance optimization, security, site health, cron jobs, abilities api
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 2.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Learn WP Best Practices Through Your Own Site! Get clear insights about Performance, Security, and Best Practices – explained in plain English.

== Description ==

= 🔌 NEW: Plugins Management =

**Monitor and manage all installed plugins from one place.** DiveWP's **Plugins Management** feature shows every plugin with active/inactive status, update availability, and "Up to date" state. View details and changelog from WordPress.org, and activate or deactivate plugins without leaving the dashboard.

**Plugins Management & Abilities API:** Use the `divewp/plugins-management` ability so AI assistants can list plugins, fetch description and changelog for a plugin, or activate/deactivate a plugin by file path.

**What Plugins Management Delivers:**
* **Unified plugin list** - All installed plugins with status pills (Active, Inactive, Update Available, Up to date)
* **Dashboard overview** - Green and red pill counts on the main dashboard for quick health overview
* **Details drawer** - Overview, full description, and changelog from WordPress.org
* **Toggle activation** - Activate or deactivate plugins from the card or drawer
* **Search** - Filter plugins by name, author, or description
* **Abilities API** - Operations: list (all plugins), details (wp.org info for one plugin), toggle (activate/deactivate)

= 🤖 NEW: AI Capabilities & WordPress Abilities API =

**Talk to your WordPress site through AI!** DiveWP integrates with the **WordPress Abilities API** and Model Context Protocol (MCP), so AI tools like Cursor, Claude, and ChatGPT can query your site's health and diagnostics directly—no copy-paste needed.

**WordPress Abilities API & MCP:**
* **11 Diagnostic Abilities** - Server insights, cron monitoring, plugins management, database health, security audits, and more via the Abilities API
* **Zero Copy-Paste** - AI agents run diagnostics through MCP without manual log sharing
* **Secure Authentication** - WordPress Application Passwords for safe, controlled access
* **Step-by-Step Setup** - "AI Capabilities" tab guides you through 3-step configuration for Abilities API and MCP clients

**Available Abilities:**
* `divewp/server-insights` - Full server health & config check
* `divewp/cron-insights` - Monitor WP-Cron and Action Scheduler; background tasks & overdue jobs
* `divewp/db-insights` - Database size & optimization status
* `divewp/security-insights` - Vulnerability & configuration audit
* `divewp/performance-checks` - Caching & optimization discovery
* `divewp/theme-builder-insights` - Theme and page builder health
* `divewp/woocommerce-best-practices` - WooCommerce optimization
* `divewp/seo-optimization` - SEO configuration audit
* `divewp/email-communications` - Email delivery & SMTP status
* `divewp/hosting-benchmark-latest` - Latest benchmark results
* `divewp/plugins-management` - List installed plugins, fetch wp.org details/changelog, or toggle plugin activation (operations: list, details, toggle)

= ⏰ NEW: Cron Job Manager & WP-Cron Monitoring =

**Take control of WordPress cron jobs and scheduled tasks.** DiveWP’s **Cron Job Manager** gives you a clear view of WP-Cron and Action Scheduler so you can spot overdue jobs, slow hooks, and misconfigured cron setups.

**Cron Jobs & Abilities API:** Use the `divewp/cron-insights` ability so AI assistants can inspect your cron status, overdue tasks, and recommendations without opening the admin.

**What the Cron Job Manager Delivers:**
* **Real-time cron monitoring** - WP-Cron and Action Scheduler in one dashboard
* **Hook performance** - Execution time and memory per cron hook
* **Overdue & orphan detection** - Find stuck or orphaned scheduled tasks
* **Execution history** - Filterable, paginated cron run history
* **Health guidance** - System health and cron configuration tips

= 🚀 Hosting Performance Benchmark - Know If You Need to Upgrade! =

**Measure how your hosting handles your WordPress site!** DiveWP's comprehensive Hosting Performance Benchmark is a powerful enterprise-grade testing system that evaluates your hosting environment through real-world performance tests.

**What It Tests:**
* **Database Performance** - Tests INSERT, SELECT, UPDATE operations, datetime functions, and aggregate operations (8 comprehensive tests)
* **Server Resources** - Evaluates CPU, memory, I/O, and network capabilities (5 resource tests)
* **Concurrency Handling** - Measures how your hosting performs under multiple simultaneous requests (4 concurrency tests)
* **E-commerce Performance** - Tests WooCommerce-like operations including price calculations, shipping, and inventory checks (3 performance tests)

**Key Benefits:**
* **20+ Individual Tests** - Comprehensive evaluation across 4 major categories
* **Real-World Simulation** - Tests simulate actual WordPress operations, not synthetic benchmarks
* **6-Minute Complete Analysis** - Get detailed insights in approximately 6 minutes
* **Actionable Results** - Understand if your current hosting is sufficient or if you need to upgrade
* **Cross-Database Compatible** - Works with MySQL, MariaDB, PostgreSQL, SQLite, and SQL Server
* **Optimized for Shared Hosting** - Designed to work efficiently even on shared hosting environments

**Perfect For:**
* Site owners wondering if their hosting plan is sufficient
* Users experiencing slow performance and wanting to identify bottlenecks
* Anyone considering upgrading their hosting plan
* Developers evaluating hosting performance for client sites

= 🎯 Transform Your WP Journey =

Discover your site's true potential by understanding exactly what's happening under the hood. DiveWP provides clear insights about Performance, Security, and Best Practices – all explained in plain English. Take control of your digital presence by learning as you optimize!

= 🔍 Key Features =

**🔌 NEW: Plugins Management**
* Unified list of all installed plugins with status (Active, Inactive, Update Available, Up to date)
* Dashboard counts green (up to date) and red (updates available) pills for quick overview
* Details drawer with overview, WordPress.org description, and changelog
* Toggle plugin activation from card or drawer; search by name, author, or description
* Abilities API: `divewp/plugins-management` (list, details, toggle) for AI-assisted plugin management

**⏰ NEW: Cron Job Manager & WP-Cron Monitoring**
* Real-time WP-Cron and Action Scheduler tracking
* Monitor hook performance and execution time
* Detect orphaned and overdue tasks
* Identify problematic cron hooks affecting performance
* Complete execution history with filtering and pagination
* Integrates with Abilities API via `divewp/cron-insights` for AI-assisted cron diagnostics

**🤖 NEW: AI Capabilities & WordPress Abilities API**
* WordPress Abilities API and MCP let AI assistants query your site for diagnostics
* 11 abilities for server, cron jobs, plugins, security, database, and performance insights
* Works with Cursor, Claude Desktop, ChatGPT, and other MCP clients
* Secure access via WordPress Application Passwords
* Step-by-step setup guide in "AI Capabilities" tab

**🚀 Hosting Performance Benchmark**
* Comprehensive hosting evaluation with 20+ real-world performance tests
* Database, resource, concurrency, and e-commerce performance analysis
* Determine if your hosting plan is sufficient for your site
* Cross-database compatibility (MySQL, MariaDB, PostgreSQL, SQLite, SQL Server)
* Optimized for shared hosting environments

**Deep Site Insights**
* Understand your site inside out
* Comprehensive analysis of core functions
* Database health monitoring
* User activity tracking
* Everything explained in plain English

**⚡ Performance & Speed**
* Clear performance insights
* Actionable optimization steps
* Speed improvement recommendations
* Learn what affects your site's performance

**🛡️ Security & Best Practices**
* Proactive security checks
* Easy-to-follow hardening recommendations
* Learn WordPress security best practices
* Implement as you learn

**📊 Database Health**
* Optimize database performance
* Clear insights into tables and structure
* Cleanup recommendations
* Learn database management without being a tech expert

**🎯 SEO & Visibility**
* Practical SEO recommendations
* Essential optimization techniques
* Improve search engine rankings
* Learn while implementing

**🛍️ WooCommerce Optimization**
* Specialized store insights
* Performance optimization
* Checkout process analysis
* Shopping experience improvements

**📧 Email System Monitor**
* Detailed logging and diagnostics
* Track email system performance
* Ensure reliable communication
* Monitor delivery status

**🎨 Theme & Builder Analysis**
* Theme performance insights
* Page builder optimization
* Visual elements analysis
* Speed optimization guidance

= 💡 How It Works =

1. **Install & Scan:** Quick installation and automatic site analysis
2. **Get Clear Insights:** Receive easy-to-understand explanations
3. **Learn Best Practices:** Understand WordPress through your own site
4. **Implement Changes:** Follow actionable recommendations
5. **Monitor Progress:** Track improvements and keep learning

= 🎯 Perfect For =

* **WordPress Beginners:** Finally understand what's happening on your site
* **Store Owners:** Optimize WooCommerce performance and boost sales
* **Agency Teams:** Maintain multiple sites while learning best practices
* **Content Creators:** Improve site visibility while mastering WordPress

= 🌟 What's New in 2.3.0 =

* **NEW**: Plugins Management
* New "Plugins Management" feature: view all installed plugins with status pills (Active, Inactive, Update Available, Up to date)
* Dashboard overview counts green (up to date) and red (updates available) pills alongside other feature statuses
* Details drawer with overview, full description, and changelog from WordPress.org
* Activate/deactivate plugins from the card or drawer; search by name, author, or description
* **NEW**: Abilities API – `divewp/plugins-management`
* Operations: list (all plugins with status), details (wp.org description and changelog for one plugin), toggle (activate/deactivate by plugin file)
* AI assistants can list plugins, fetch plugin info, or change activation state via MCP

= 🌟 What's New in 2.2.0 =

* **NEW**: AI Capabilities & WordPress Abilities API
* New "AI Capabilities" tab with step-by-step setup guide
* 10 diagnostic abilities for AI agents (server, cron jobs, database, security, performance, and more)
* Support for Cursor, Claude Desktop, ChatGPT via Model Context Protocol (MCP)
* Secure access using WordPress Application Passwords
* **NEW**: Cron Job Manager & WP-Cron Monitoring
* Full cron jobs dashboard: WP-Cron and Action Scheduler in one place
* Hook performance, overdue and orphan detection, execution history
* Abilities API integration: `divewp/cron-insights` for AI-driven cron diagnostics
* **NEW**: REST API Access Logging in User Events
* Track API access via Application Passwords in the event log
* Monitor AI agent activity and external integrations
* Throttled logging to prevent flood from MCP bursts
* **IMPROVED**: Cron Jobs Feature Enhancements
* Aligned AJAX and server health calculations for consistent status display
* "Potential orphan" terminology for clearer task identification
* Added Alternate Cron explanation footnote
* Visual accent pills for Important/Recommendation notes in task modals

== Installation ==

1. Go to Plugins > Add New in your WordPress admin
2. Search for "DiveWP"
3. Click "Install Now"
4. Activate the plugin
5. Click on "DiveWP" in your admin menu to view insights

Alternative Manual Installation:
1. Download the plugin ZIP file
2. Go to Plugins > Add New > Upload Plugin
3. Upload the ZIP file
4. Activate the plugin
5. Click on "DiveWP" in your admin menu

== Frequently Asked Questions ==

= Is DiveWP free to use? =

Yes! DiveWP's core features are completely free. We plan to introduce premium features in the future while maintaining our commitment to providing valuable free functionality.

= Will DiveWP slow down my site? =

No. DiveWP runs exclusively in the WordPress admin area and doesn't add any load to your public-facing pages.

= Does DiveWP make changes to my site? =

No. DiveWP is an analysis tool that provides insights and recommendations. It doesn't make any changes to your site settings or configuration.

= Is WooCommerce required? =

No. WooCommerce is optional. If installed, DiveWP will provide additional WooCommerce-specific insights and optimization recommendations.

= How often should I check my site's health? =

We recommend checking your site's health weekly for optimal maintenance. However, DiveWP runs passive monitoring continuously and will alert you to any critical issues.

= Can I use DiveWP on multiple sites? =

Yes! You can install DiveWP on as many WordPress sites as you need. Each installation will provide site-specific insights and recommendations.

== Screenshots ==

1. Comprehensive Dashboard Overview - Get all critical insights at a glance
2. Server Health Analysis - Detailed server configuration and performance metrics
3. Security Status Overview - Complete security audit and recommendations
4. WooCommerce Performance Insights - Store-specific optimization opportunities
5. Email System Monitor - Email configuration and delivery status

== Changelog ==


= 2.3.3 =
* **FIXED**: Plugins Management – update button state no longer persists across plugin modals
* Fixed: After updating a plugin in the drawer, opening another plugin's modal showed the previous plugin's success message and disabled update button
* Fixed: Update button is now fully reset (label, classes, disabled state) when opening each plugin's drawer

= 2.3.2 =
* **FIXED**: Plugin Check – nonce verification for theme/plugin file edit logging
* **FIXED**: Plugin Check – PreparedSQL and DirectQuery phpcs ignores for DB/migration code
* **FIXED**: Cron execution log – RUNS column now shows correct per-hook totals (SQL GROUP BY)
* **FIXED**: Hook history modal – Total Runs uses authoritative backend count, not capped at 50
* **FIXED**: Hook filter – exact match instead of partial LIKE for accurate counts
* **FIXED**: Clear logs – result modal shows success count or "No logs older than X days"
* **FIXED**: Clear older button – prompts to select time period when none selected
* **FIXED**: Result modal close – uses top-right X only (consistent with other cron modals)
* **FIXED**: PHPCS – PreparedSQL.InterpolatedNotPrepared warnings in DB access layer
* **IMPROVED**: User Events – structured context (WHO/WHERE/VIA-WHAT/WHEN)
* Added: Additive schema migration for user_events (actor_snapshot, channel, source_context, target_context, request_metadata)
* Added: Event details modal – click any event row to see Who, Via, When, Details, and technical context
* Added: Structured logging – who initiated, where (screen/route), via what (admin UI, AJAX, REST app password)
* Fixed: Timeline "Today" label – now correctly compares with site timezone instead of always showing "Today" for first group
* Fixed: Removed inline styles from User Events markup (moved to user-events.css)
* Compatibility: Existing events remain visible; new fields are optional with fallbacks. No destructive changes.

= 2.3.1 =
* **NEW**: Plugins Management feature
* Added: Plugins Management dashboard – list all installed plugins with status pills (Active, Inactive, Update Available, Up to date)
* Added: Dashboard overview counts green (up to date) and red (updates available) pills for plugins
* Added: Details drawer with overview, WordPress.org description, and changelog
* Added: Toggle plugin activation from card or drawer; search by name, author, or description
* **NEW**: Abilities API – divewp/plugins-management
* Added: Ability operations – list (all plugins), details (wp.org info for one plugin), toggle (activate/deactivate)
* AI assistants can manage plugins via MCP (list, fetch details/changelog, activate/deactivate)

= 2.2.1 =
* **FIXED**: W3 Total Cache compatibility fatal error
* Fixed: ArgumentCountError in cron_request filter when called with single argument by third-party plugins
* Fixed: Method signature now accepts optional $doing_wp_cron parameter for broader plugin compatibility

= 2.2.0 =
* **NEW**: AI Capabilities & MCP Integration
* Added: New "AI Capabilities" tab with step-by-step setup guide for connecting AI assistants
* Added: 10 diagnostic abilities for AI agents via WordPress Abilities API
* Added: Support for Cursor, Claude Desktop, ChatGPT, and other MCP-compatible clients
* Added: Secure authentication using WordPress Application Passwords
* Added: Simple MCP explanation for non-technical users
* Added: Example prompts for common AI assistant commands
* **NEW**: REST API Access Logging
* Added: Event logging for REST API access via Application Passwords
* Added: Track AI agent activity in User Events timeline
* Added: Throttled logging (5-minute intervals) to prevent MCP burst flooding
* **IMPROVED**: Cron Jobs Feature Enhancements
* Fixed: Inconsistent health status between page load and AJAX refresh
* Improved: Changed "Orphaned?" to "Potential orphan" for clearer terminology
* Added: Footnote explaining Alternate Cron functionality
* Added: Visual accent pills for Important/Recommendation notes in modal dialogs
* Removed: "Last Run" display (unreliable data source)

= 2.1.1 =
* **NEW**: Comprehensive Cron Jobs Monitoring System
* Added: Real-time WP-Cron and Action Scheduler execution tracking
* Added: Hook performance monitoring with execution time and memory metrics
* Added: Orphaned hook detection and overdue task identification
* Added: Complete cron execution history with filtering and pagination
* Added: System health status for cron configuration recommendations
* Fixed: WordPress Plugin Check compliance issues
* Enhanced: Database query security and PHPCS standards compliance
* **IMPROVED**: Responsive Layout and UI Enhancements
* Fixed: Cron job tables task name column breaking into single letters on screens below 1920x1080
* Improved: Right sidebar now more compact (reduced from 320px to 240px) with optimized spacing
* Enhanced: Sidebar automatically moves below main content at resolutions below 1920px for maximum content space
* Improved: Sidebar sections display as horizontal cards when moved below content
* Enhanced: Better responsive behavior across all screen sizes (1920px+, 1600px, 1400px, 1200px)
* Improved: Main content area now has significantly more space on lower resolution displays

= 2.0.1 =
* **MAJOR NEW FEATURE**: Complete Hosting Performance Benchmark System
* Added: Comprehensive server performance testing across 4 categories (Database, Resources, Concurrency, E-commerce)
* Added: Real-world benchmark tests simulating actual site operations
* Added: Advanced scoring algorithms with realistic thresholds for shared/VPS hosting
* Added: Cross-database compatibility for MySQL, MariaDB, PostgreSQL, SQLite, and SQL Server
* Added: WordPress Plugin Check compliance improvements
* Enhanced: All benchmark tests optimized for 16+ second runtime on shared hosting
* Improved: Database compatibility layer for cross-engine operations
* Fixed: All WordPress coding standards violations and PHPCS errors
* Enhanced: Security standards compliance with proper input validation and sanitization

= 1.0.0 =
* First public release on WordPress.org
* Complete UI redesign for better non-technical user experience
* New card-based visualization system
* Structured JSON content loading system
* Comprehensive Administrator Activity Tracking
* Enhanced security measures
* Advanced analysis capabilities
* Improved architecture

= 2.0.2 =
* Added: New Hosting Performance Benchmark feature for comprehensive server testing
* Added: Advanced benchmark tests for database performance, resources, concurrency, and WooCommerce-like operations
* Added: Database benchmark results storage and retrieval system
* Enhanced: Complete hosting evaluation capabilities with real-world performance metrics



== Upgrade Notice ==

= 2.3.3 =
User Events upgrade: structured context (Who/Where/Via/When), event details modal, and timeline fixes. Additive DB migration—existing data preserved. Recommended for all users.

= 2.3.2 =
Bug fixes for Cron execution log (correct RUNS counts, clear logs feedback, PHPCS compliance). Recommended for all users.

= 2.3.0 =
New Plugins Management feature: view and manage all installed plugins, see update status, and use the Abilities API (divewp/plugins-management) for AI-assisted plugin management. Recommended for all users.

= 2.2.1 =
Critical bug fix: Resolves fatal error with W3 Total Cache and other plugins. Highly recommended for all users.

= 2.2.0 =
New AI Capabilities and WordPress Abilities API support—connect Cursor, Claude, or ChatGPT for automated diagnostics. New Cron Job Manager for WP-Cron and Action Scheduler monitoring. REST API access logging in User Events. Recommended for all users.

= 2.0.2 =
Major feature addition: New Hosting Performance Benchmark system with comprehensive server testing capabilities. Database tables will be automatically created/updated. Recommended for all users wanting advanced hosting evaluation.

= 1.0.0 =
First public release on WordPress.org. Major update with complete UI redesign, new features, and improved user experience. Recommended for all users.

== Support ==

Need help? We're here for you!

* 📚 [Documentation](https://divewp.com/documentation/)
* 💬 [Support Forum](https://wordpress.org/support/plugin/divewp/)
* 🐞 [Bug Reports and Contact](https://divewp.com/contact/)

== Privacy ==

DiveWP respects your privacy and that of your users. We do not collect any personal data. All analysis is performed locally on your server.

== Credits ==

DiveWP is proudly created and maintained by Oleg Petrov.
