| Server IP : 193.146.211.90 / Your IP : 10.85.6.55 Web Server : Apache System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 User : 1001 ( 1001) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/google-pagespeed-insights/ |
Upload File : |
<?php
/*
Plugin Name: Insights from Google PageSpeed
Plugin URI: http://mattkeys.me
Description: Get insights from the Google Pagespeed API right in your WordPress dashboard
Author: Matt Keys
Version: 4.0.8
Author URI: http://mattkeys.me
*/
/* Copyright 2016 Matt Keys (email : me@mattkeys.me)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
// Path to this file
if ( ! defined( 'GPI_PLUGIN_FILE' ) ) {
define( 'GPI_PLUGIN_FILE', __FILE__ );
}
// Path to the plugin's directory
if ( ! defined( 'GPI_DIRECTORY' ) ) {
define( 'GPI_DIRECTORY', dirname( __FILE__ ) );
}
// Publicly accessible path
if ( ! defined( 'GPI_PUBLIC_PATH' ) ) {
define( 'GPI_PUBLIC_PATH', plugin_dir_url( __FILE__ ) );
}
// Plugin basename
if ( ! defined( 'GPI_BASENAME' ) ) {
define( 'GPI_BASENAME', plugin_basename( __FILE__ ) );
}
// Internal version number
if ( ! defined( 'GPI_VERSION' ) ) {
define( 'GPI_VERSION', '4.0.8' );
}
if ( is_admin() ) {
require 'classes/class-GPI-Activation.php';
require 'classes/class-GPI-Uninstall.php';
require 'classes/class-GPI-Admin.php';
$doaction = ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) ? true : false;
if ( $doaction && ( isset( $_GET['page'] ) && 'google-pagespeed-insights' == $_GET['page'] ) ) {
require 'classes/class-GPI-Actions.php';
}
}
require 'classes/class-GPI-Core.php';