| Server IP : 51.91.236.255 / Your IP : 216.73.217.120 Web Server : Apache System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : laureet ( 1012854) PHP Version : 8.0.30 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/laureet/www/wp-content/plugins/image-optimization/modules/stats/ |
Upload File : |
<?php
namespace ImageOptimization\Modules\Stats;
use ImageOptimization\Classes\Module_Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends Module_Base {
public function get_name(): string {
return 'stats';
}
public static function component_list(): array {
return [
'Optimization_Stats_Handler',
];
}
public static function routes_list() : array {
return [
'Get_Stats',
'Get_Optimization_Details',
];
}
/**
* Module constructor.
*/
public function __construct() {
$this->register_routes();
$this->register_components();
}
}