Added WooCommerce 7.0 minimum version requirement and compatibility headers.
Declared High-Performance Order Storage (HPOS / Custom Order Tables) compatibility.
Added version gate: plugin now shows a clear admin notice if WooCommerce < 7.0 is detected.
Replaced direct call to internal OrdersScheduler class with the public woocommerce_analytics_update_order_stats action for safer cross-version compatibility.
Fixed deprecated current_time(‘timestamp’) usage — replaced with current_time(‘U’) (WP 5.3+).