| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: WPSpeed |
| 5 |
* Plugin URI: https://storejextensions.org/extensions/wpspeed.html |
| 6 |
* Description: WPSpeed allows your website to reach the maximum score and performance on Google PageSpeed Insights, GTmetrix and Core Web Vitals. <a href="https://storejextensions.org/extensions/wpspeed.html">Upgrade to PRO</a> to unlock all pages of the website, the ⚠️ FREE version is limited to the home page only. You can also get our <a href="https://storejextensions.org/wordpress-speed-performance-service.html">Optimization Service</a> to boost performance of your Wordpress site thanks to our expertise team. |
| 7 |
* Version: 2.6.8 |
| 8 |
* Author: JExtensions Store |
| 9 |
* Author URI: https://storejextensions.org |
| 10 |
* License: GNU/GPLv3 |
| 11 |
* Text Domain: wpspeed |
| 12 |
* Domain Path: /languages |
| 13 |
*/ |
| 14 |
|
| 15 |
/** |
| 16 |
* WPSpeed - Performs several front-end optimizations for fast downloads |
| 17 |
* |
| 18 |
* @package WPSpeed |
| 19 |
* @author JExtensions Store <info@storejextensions.org> |
| 20 |
* @copyright Copyright (c) 2022 JExtensions Store / WPSpeed |
| 21 |
* @license GNU/GPLv3, or later. See LICENSE file |
| 22 |
* |
| 23 |
* If LICENSE file missing, see <http://www.gnu.org/licenses/>. |
| 24 |
*/ |
| 25 |
|
| 26 |
// Requires PHP >= 7.2.0 |
| 27 |
if (! (PHP_VERSION_ID >= 70200)) { |
| 28 |
if (is_admin ()) { |
| 29 |
set_transient ( 'wpspeed_notices', 'WPSpeed requires a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.', 60 * 5 ); |
| 30 |
if ($messages = get_transient ( 'wpspeed_notices' )) { |
| 31 |
echo $messages; |
| 32 |
} |
| 33 |
delete_transient ( 'wpspeed_notices' ); |
| 34 |
} |
| 35 |
return; |
| 36 |
} |
| 37 |
|
| 38 |
define ( '_WP_EXEC', '1' ); |
| 39 |
define ( '_WPSPEED_EXEC', 1 ); |
| 40 |
define ( 'WPSPEED_VERSION', '2.6.8' ); |
| 41 |
|
| 42 |
define ( 'WPSPEED_FILE_PATH', __FILE__ ); |
| 43 |
define ( 'WPSPEED_URL', plugin_dir_url ( WPSPEED_FILE_PATH ) ); |
| 44 |
define ( 'WPSPEED_DIR', plugin_dir_path ( WPSPEED_FILE_PATH ) ); |
| 45 |
define ( 'WPSPEED_CACHE_DIR', WP_CONTENT_DIR . '/cache/wpspeed/' ); |
| 46 |
|
| 47 |
require_once (WPSPEED_DIR . '/vendor/autoload.php'); |
| 48 |
require_once (WPSPEED_DIR . 'src/Dispatcher.php'); |
| 49 |
|
| 50 |
/** |
| 51 |
* Initialize and run plugin |
| 52 |
*/ |
| 53 |
WPSpeed\Dispatcher::init (); |
| 54 |
|