-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-optimizer.php
42 lines (34 loc) · 1.06 KB
/
wp-optimizer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @author sh1zen
* @copyright Copyright (C) 2024.
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL
*/
/**
* Plugin Name: WP Optimizer
* Plugin URI: https://github.com/sh1zen/wp-optimizer
* Description: Performance Optimization plugin, support automatic image compression, integrated caching, deep WordPress and server enhancements .
* Author: sh1zen
* Author URI: https://sh1zen.github.io/
* Text Domain: wpopt
* Domain Path: /languages
* Version: 2.3.4
*/
const WPOPT_VERSION = '2.3.4';
const WPOPT_FILE = __FILE__;
// setup constants
require_once __DIR__ . '/inc/wps_and_constants.php';
// essential
require_once WPOPT_INCPATH . 'functions.php';
require_once WPOPT_INCPATH . 'Report.class.php';
// initializer class
require_once WPOPT_ADMIN . 'PluginInit.class.php';
/**
* Initialize the plugin.
*/
WPOptimizer\core\PluginInit::Initialize();
wps_core()->meter->lap('wpopt-loaded');
if (wps('wpopt')->settings->get('tracking.errors', true)) {
// on user consent allow error tracking report
wps_error_handler('wp-optimizer');
}