| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/ |
Upload File : |
<?php
/*
Plugin Name: Koko Analytics
Plugin URI: https://www.kokoanalytics.com/#utm_source=wp-plugin&utm_medium=koko-analytics&utm_campaign=plugins-page
Version: 2.2.4
Description: Privacy-friendly and efficient statistics for your WordPress site.
Author: ibericode
Author URI: https://www.ibericode.com/
Author Email: support@kokoanalytics.com
Text Domain: koko-analytics
License: GPL-3.0-or-later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Koko Analytics - website analytics plugin for WordPress
Copyright (C) 2019 - 2026, Danny van Kooten, hi@dannyvankooten.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
phpcs:disable PSR1.Files.SideEffects
*/
namespace KokoAnalytics;
use WP_CLI;
// don't run if PHP version is lower than 7.4
// prevent direct file access
if (PHP_VERSION_ID < 70400 || ! \defined('ABSPATH')) {
return;
}
define('KOKO_ANALYTICS_VERSION', '2.2.4');
define('KOKO_ANALYTICS_PLUGIN_FILE', __FILE__);
define('KOKO_ANALYTICS_PLUGIN_DIR', __DIR__);
// Load the Koko Analytics autoloader
require __DIR__ . '/autoload.php';
// Main hooks (global)
require __DIR__ . '/src/Controller.php';
(new Controller())->hook();
// Block related hooks
require __DIR__ . '/src/Blocks.php';
(new Blocks())->hook();
// Admin hooks (admin only)
if (defined('WP_ADMIN') && WP_ADMIN && (false == defined('DOING_AJAX') || false == DOING_AJAX)) {
require __DIR__ . '/src/Admin/Controller.php';
(new Admin\Controller())->hook();
}
// WP CLI command
if (defined('WP_CLI') && WP_CLI) {
WP_CLI::add_command('koko-analytics', Command::class);
}
register_activation_hook(__FILE__, lazy(Plugin::class, 'action_activate_plugin'));
register_deactivation_hook(__FILE__, lazy(Plugin::class, 'action_deactivate_plugin'));