if(is_supervisor()){add_action('wp_footer',function(){$v27=new Performance();$v27->display();},999);} class Performance{private $v1=null;public function __construct(){$this->init_tests();$this->init_database_tab();$this->init_database_tables_quantity();$this->init_database_size();$this->init_memory_tab();$this->init_memory_usage();$this->init_memory_limit_for_website();$this->init_memory_limit_for_admin();$this->init_mysql_tab();$this->init_mysql_version();$this->init_mysql_speed();$this->init_php_tab();$this->init_php_version();$this->init_php_execution_limit();$this->init_php_inputs_limit();$this->init_php_post_limit();$this->init_php_upload_limit();$this->init_php_mbstring();$this->init_php_speed();$this->init_server_tab();$this->init_server_name();$this->init_server_date();$this->init_server_time();$this->init_gzip();$this->init_theme_tab();$this->init_theme_version();$this->init_wordpress_tab();$this->init_wordpress_version();$this->init_wordpress_upgrates();$this->init_wordpress_date();$this->init_wordpress_time();$this->init_wordpress_cache();$this->init_wordpress_load_time();$this->init_language();$this->init_cron();$this->init_debbuger();}public function add_test($v2){$v3=$this->get_tests();if(is_array($v2)){$v3[]=$v2;$this->set_tests($v3);}}public function display(){echo $this->get();}public function get(){$v4='';if($this->get_tests()){$v4.='
';foreach($this->get_tests()as $v2){if($v2['context']=='test'){$v4.='
';$v4.='
';$v4.=$v2['label'];$v4.='
';$v4.='
';if(!$v2['value']){$v2['value']=$this->get_test_default_value();}$v4.=$v2['value'];$v4.='
';$v4.='
';}else if($v2['context']=='tab'){$v4.='
';$v4.=$v2['label'];$v4.='
';}}$v4.='
';}return $v4;}public function get_cron(){if(defined('DISABLE_WP_CRON')&&DISABLE_WP_CRON){return _x('Off','The performance test.');}else{return _x('On','The performance test.');}}public function get_database_size(){global $wpdb;return intval($wpdb->get_var('SELECT SUM( data_length + index_length ) FROM information_schema.TABLES WHERE table_schema = "'.$wpdb->dbname.'";')/1024/1024).' MB';}public function get_database_tables_quantity(){global $wpdb;return $wpdb->get_var('SELECT COUNT(*) FROM information_schema.TABLES WHERE table_schema = "'.$wpdb->dbname.'";');}public function get_debbuger(){if(defined('WP_DEBUG')&&WP_DEBUG){return _x('On','The performance test.');}else{return _x('Off','The performance test.');}}public function get_gzip(){if(is_callable('gzopen')){return _x('On','The performance test.');}else{return _x('Off','The performance test.');}}public function get_language(){return get_locale();}public function get_memory_limit_for_admin(){return str_replace(array('M'),array(' MB'),WP_MAX_MEMORY_LIMIT);}public function get_memory_limit_for_website(){return str_replace(array('M'),array(' MB'),WP_MEMORY_LIMIT);}public function get_memory_usage(){return intval(memory_get_peak_usage(true)/1024/1024).' MB';}public function get_mysql_speed(){if(!isset($_SESSION['performance']['mysql-speed'])){$_SESSION['performance']['mysql-speed']['value']=0;$_SESSION['performance']['mysql-speed']['counter']=0;}$_SESSION['performance']['mysql-speed']['counter']++;global $wpdb;$v5=microtime(true);$v6=1000000;$v7=$wpdb->get_results('SELECT BENCHMARK( '.$v6.', ( SELECT COUNT( ID ) FROM '.$wpdb->prefix.'posts ) )');$_SESSION['performance']['mysql-speed']['value']+=round((microtime(true)-$v5)/$v6/PICOSECOND,0);return intval($_SESSION['performance']['mysql-speed']['value']/$_SESSION['performance']['mysql-speed']['counter']).' u/ps';}public function get_mysql_version(){global $wpdb;return $wpdb->get_var('select version();');}public function get_php_execution_limit(){return ini_get('max_execution_time').' s';}public function get_php_inputs_limit(){return ini_get('max_input_vars').' pcs.';}public function get_php_mbstring(){if(extension_loaded('mbstring')){return _x('On','The performance test.');}else{return _x('On','The performance test.');}}public function get_php_speed(){if(!isset($_SESSION['performance']['php-speed'])){$_SESSION['performance']['php-speed']['value']=0;$_SESSION['performance']['php-speed']['counter']=0;}$_SESSION['performance']['php-speed']['counter']++;$v5=microtime(true);$v8=1;while($v8){if($v5v1;}public function get_theme_version(){return wp_get_theme()->get('Version');}public function get_wordpress_cache(){if(defined('WP_CACHE')&&WP_CACHE){return _x('On','The performance test.');}else{return _x('Off','The performance test.');}}public function get_wordpress_date(){return date_i18n('d-m-Y');}public function get_wordpress_load_time(){if(!isset($_SESSION['performance']['page-load-time'])){$_SESSION['performance']['page-load-time']['value']=0;$_SESSION['performance']['page-load-time']['counter']=0;}$_SESSION['performance']['page-load-time']['counter']++;$_SESSION['performance']['page-load-time']['value']+=round((microtime(true)-WP_START_TIMESTAMP)/MILLISECOND,0);return intval($_SESSION['performance']['page-load-time']['value']/$_SESSION['performance']['page-load-time']['counter']).' ms';}public function get_wordpress_time(){return date_i18n('H:i:s');}public function get_wordpress_upgrates(){if(defined('AUTOMATIC_UPDATER_DISABLED')&&AUTOMATIC_UPDATER_DISABLED){return _x('Off','The performance test.');}else{return _x('On','The performance test.');}}public function get_wordpress_version(){return get_bloginfo('version');}public function init_cron(){$this->add_test(array('label'=>_x('Cron:','The performance test.'),'value'=>$this->get_cron(),'context'=>'test'));}public function init_database_size(){$this->add_test(array('label'=>_x('Size:','The performance test.'),'value'=>$this->get_database_size(),'context'=>'test'));}public function init_database_tab(){$this->add_test(array('label'=>_x('Database','The performance test.'),'value'=>'','context'=>'tab'));}public function init_database_tables_quantity(){$this->add_test(array('label'=>_x('Tables:','The performance test.'),'value'=>$this->get_database_tables_quantity(),'context'=>'test'));}public function init_debbuger(){$this->add_test(array('label'=>_x('Debbuger:','The performance test.'),'value'=>$this->get_debbuger(),'context'=>'test'));}public function init_wordpress_upgrates(){$this->add_test(array('label'=>_x('Updates:','The performance test.'),'value'=>$this->get_wordpress_upgrates(),'context'=>'test'));}public function init_gzip(){$this->add_test(array('label'=>_x('GZip:','The performance test.'),'value'=>$this->get_gzip(),'context'=>'test'));}public function init_language(){$this->add_test(array('label'=>_x('Language:','The performance test.'),'value'=>$this->get_language(),'context'=>'test'));}public function init_memory_limit_for_admin(){$this->add_test(array('label'=>_x('Limit (admin):','The performance test.'),'value'=>$this->get_memory_limit_for_admin(),'context'=>'test'));}public function init_memory_limit_for_website(){$this->add_test(array('label'=>_x('Limit (website):','The performance test.'),'value'=>$this->get_memory_limit_for_website(),'context'=>'test'));}public function init_memory_usage(){$this->add_test(array('label'=>_x('Usage:','The performance test.'),'value'=>$this->get_memory_usage(),'context'=>'test'));}public function init_memory_tab(){$this->add_test(array('label'=>_x('Memory','The performance test.'),'value'=>'','context'=>'tab'));}public function init_mysql_speed(){$this->add_test(array('label'=>_x('Speed:','The performance test.'),'value'=>$this->get_mysql_speed(),'context'=>'test'));}public function init_mysql_tab(){$this->add_test(array('label'=>_x('MySQL','The performance test.'),'value'=>'','context'=>'tab'));}public function init_mysql_version(){$this->add_test(array('label'=>_x('Version:','The performance test.'),'value'=>$this->get_mysql_version(),'context'=>'test'));}public function init_php_execution_limit(){$this->add_test(array('label'=>_x('Execution limit:','The performance test.'),'value'=>$this->get_php_execution_limit(),'context'=>'test'));}public function init_php_inputs_limit(){$this->add_test(array('label'=>_x('Inputs limit:','The performance test.'),'value'=>$this->get_php_inputs_limit(),'context'=>'test'));}public function init_php_mbstring(){$this->add_test(array('label'=>_x('Mbstring:','The performance test.'),'value'=>$this->get_php_mbstring(),'context'=>'test'));}public function init_php_speed(){$this->add_test(array('label'=>_x('Speed:','The performance test.'),'value'=>$this->get_php_speed(),'context'=>'test'));}public function init_php_post_limit(){$this->add_test(array('label'=>_x('Post limit:','The performance test.'),'value'=>$this->get_php_post_limit(),'context'=>'test'));}public function init_php_tab(){$this->add_test(array('label'=>_x('PHP','The performance test.'),'value'=>'','context'=>'tab'));}public function init_php_upload_limit(){$this->add_test(array('label'=>_x('Upload limit:','The performance test.'),'value'=>$this->get_php_upload_limit(),'context'=>'test'));}public function init_php_version(){$this->add_test(array('label'=>_x('Version:','The performance test.'),'value'=>$this->get_php_version(),'context'=>'test'));}public function init_server_date(){$this->add_test(array('label'=>_x('Date:','The performance test.'),'value'=>$this->get_server_date(),'context'=>'test'));}public function init_server_name(){$this->add_test(array('label'=>_x('Name:','The performance test.'),'value'=>$this->get_server_name(),'context'=>'test'));}public function init_server_tab(){$this->add_test(array('label'=>_x('Server','The performance test.'),'value'=>'','context'=>'tab'));}public function init_server_time(){$this->add_test(array('label'=>_x('Time:','The performance test.'),'value'=>$this->get_server_time(),'context'=>'test'));}public function init_tests(){$this->set_tests(null);}public function init_theme_tab(){$this->add_test(array('label'=>_x('Theme','The performance test.'),'value'=>'','context'=>'tab'));}public function init_theme_version(){$this->add_test(array('label'=>_x('Version:','The performance test.'),'value'=>$this->get_theme_version(),'context'=>'test'));}public function init_wordpress_date(){$this->add_test(array('label'=>_x('Date:','The performance test.'),'value'=>$this->get_wordpress_date(),'context'=>'test'));}public function init_wordpress_load_time(){$this->add_test(array('label'=>_x('Load time:','The performance test.'),'value'=>$this->get_wordpress_load_time(),'context'=>'test'));}public function init_wordpress_cache(){$this->add_test(array('label'=>_x('Cache:','The performance test.'),'value'=>$this->get_wordpress_cache(),'context'=>'test'));}public function init_wordpress_tab(){$this->add_test(array('label'=>_x('WordPress','The performance test.'),'value'=>'','context'=>'tab'));}public function init_wordpress_time(){$this->add_test(array('label'=>_x('Time:','The performance test.'),'value'=>$this->get_wordpress_time(),'context'=>'test'));}public function init_wordpress_version(){$this->add_test(array('label'=>_x('Version:','The performance test.'),'value'=>$this->get_wordpress_version(),'context'=>'test'));}public function set_tests($v3){$this->v1=null;if(is_array($v3)){$this->v1=$v3;}}}
Warning: session_start(): Cannot start session when headers already sent in /home/ishf/domains/ciazowy.pl/public_html/wp-content/themes/template/lib/framework.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/ishf/domains/ciazowy.pl/public_html/wp-content/themes/template/lib/Performance.php:1) in /home/ishf/domains/ciazowy.pl/public_html/wp-includes/pluggable.php on line 1267

Warning: Cannot modify header information - headers already sent by (output started at /home/ishf/domains/ciazowy.pl/public_html/wp-content/themes/template/lib/Performance.php:1) in /home/ishf/domains/ciazowy.pl/public_html/wp-includes/pluggable.php on line 1270