This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BSF_Analytics_Stats::get_default_stats()

Retrieve stats for site.


Description


Return

(array) stats data.


Source

File: admin/bsf-analytics/class-bsf-analytics-stats.php

		private function get_default_stats() {
			return array(
				'graupi_version'         => defined( 'BSF_UPDATER_VERSION' ) ? BSF_UPDATER_VERSION : false,
				'domain_name'            => get_site_url(),
				'php_os'                 => PHP_OS,
				'server_software'        => isset( $_SERVER['SERVER_SOFTWARE'] ) ? filter_var( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), FILTER_SANITIZE_STRING ) : '',
				'mysql_version'          => $this->get_mysql_version(),
				'php_version'            => $this->get_php_version(),
				'php_max_input_vars'     => ini_get( 'max_input_vars' ), // phpcs:ignore:PHPCompatibility.IniDirectives.NewIniDirectives.max_input_varsFound
				'php_post_max_size'      => ini_get( 'post_max_size' ),
				'php_max_execution_time' => ini_get( 'max_execution_time' ),
				'php_memory_limit'       => ini_get( 'memory_limit' ),
				'zip_installed'          => extension_loaded( 'zip' ),
				'imagick_availabile'     => extension_loaded( 'imagick' ),
				'xmlreader_exists'       => class_exists( 'XMLReader' ),
				'gd_available'           => extension_loaded( 'gd' ),
				'curl_version'           => $this->get_curl_version(),
				'curl_ssl_version'       => $this->get_curl_ssl_version(),
				'is_writable'            => $this->is_content_writable(),

				'wp_version'             => get_bloginfo( 'version' ),
				'user_count'             => $this->get_user_count(),
				'site_language'          => get_locale(),
				'timezone'               => wp_timezone_string(),
				'is_ssl'                 => is_ssl(),
				'is_multisite'           => is_multisite(),
				'network_url'            => network_site_url(),
				'external_object_cache'  => (bool) wp_using_ext_object_cache(),
				'wp_debug'               => WP_DEBUG,
				'wp_debug_display'       => WP_DEBUG_DISPLAY,
				'script_debug'           => SCRIPT_DEBUG,

				'active_plugins'         => $this->get_active_plugins(),

				'active_theme'           => get_template(),
				'active_stylesheet'      => get_stylesheet(),
			);
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.