Settings', AOMIN_PLUGIN_IDENTIFIER)), array('tab2', 'all-in-one-minifier-report', 'fa-chart-line', __(' Page Speed Report', AOMIN_PLUGIN_IDENTIFIER)), array('tab3', 'all-in-one-minifier-about', 'fa-info-circle', __(' About', AOMIN_PLUGIN_IDENTIFIER)), array('tab4', 'all-in-one-minifier-donate', 'fa-info-circle', __(' Donate', AOMIN_PLUGIN_IDENTIFIER)) ); $menu = null; foreach ($list as $item => $value) { $menu .= '
' . $value[3] . '
'; } echo wp_kses_post($menu); } /** * Register the stylesheet file(s) for the dashboard area */ public function enqueue_backend_standalone() { wp_register_style($this->plugin_name . '-standalone', plugin_dir_url(__FILE__) . 'assets/styles/standalone.css', array(), $this->version, 'all'); wp_enqueue_style($this->plugin_name . '-standalone'); } /** * Update `Options` on form submit */ public function return_update_options() { if ((isset($_POST['all-in-one-minifier-update-option'])) && ($_POST['all-in-one-minifier-update-option'] == 'true') && check_admin_referer('pwm-referer-form', 'pwm-referer-option') ) { $opts = array('start_minify' => 'off', 'admin' => 'off', 'loadtime' => 'off'); if (isset($_POST['_all-in-one_minifier']['start_minify'])) { $opts['start_minify'] = 'on'; } if (isset($_POST['_all-in-one_minifier']['admin'])) { $opts['admin'] = 'on'; } if (isset($_POST['_all-in-one_minifier']['loadtime'])) { $opts['loadtime'] = 'on'; } $data = update_option('_all-in-one_minifier', $opts); header('location:' . admin_url('admin.php?page=all-in-one-minifier-admin') . '&status=updated'); die(); } } /** * Return the `Options` page */ public function return_options_page() { $opts = get_option('_all-in-one_minifier'); if ((isset($_GET['status'])) && ($_GET['status'] == 'updated')) { $notice = array('success', __('Your settings have been successfully updated.', AOMIN_PLUGIN_IDENTIFIER)); } ?>
return_plugin_header()); ?>
return_tabs_menu('tab1')); ?>
×
×
×
' . __(AOMIN_PLUGIN_FULLNAME, AOMIN_PLUGIN_IDENTIFIER) . ''; return $html; } /** * Return the `About` page */ public function return_about_page() { ?>
return_plugin_header()); ?>
return_tabs_menu('tab3')); ?>
Mahesh Thorat

© - created by Mahesh Mohan Thorat

return_plugin_header()); ?>
return_tabs_menu('tab2')); ?> true, ); $post_types = get_post_types($args, 'objects'); foreach ($post_types as $post_type_obj): if ($post_type_obj->name != 'attachment') { array_push($allPostTypes, $post_type_obj->name); } endforeach; } else { array_push($allPostTypes, $_GET['filter-post-type']); } $paged = @$_GET['paged']; set_query_var('paged', $paged); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wpposts = new WP_Query( array( 'post_type' => $allPostTypes, 'posts_per_page' => 10, 'paged' => $paged, 'post_status' => 'publish', 'orderby' => 'title', 'order' => 'ASC' ) ); ?>
generatePagination($wpposts); ?> have_posts()) : $wpposts->the_post(); $postID = get_the_ID(); $post_title = get_the_title(); $post_link = get_permalink($postID); $current_queried_post_type = get_post_type($postID); $docReadyTimePrint = ''; $docCompleteTimePrint = ''; $bef_docReadyTime = ''; $bef_docCompleteTime = ''; $af_docReadyTime = ''; $af_docCompleteTime = ''; global $wpdb; $table_name = $wpdb->prefix . 'alone_minifier_analysis'; $querystr_1 = "SELECT postID, docReadyTime, docCompleteTime, minifyStatus, datetime FROM $table_name WHERE postID = $postID ORDER BY minifyStatus "; $pageposts_1 = $wpdb->get_results($querystr_1, OBJECT); $array_1 = array(); foreach ($pageposts_1 as $value_1) { $docReadyTime = $value_1->docReadyTime; $docCompleteTime = $value_1->docCompleteTime; $minifyStatus = $value_1->minifyStatus; $datetime = $value_1->datetime; if ($minifyStatus == 0) { $bef_docReadyTime = $docReadyTime; $bef_docCompleteTime = $docCompleteTime; $docReadyTimePrint .= 'Before : ' . $docReadyTime . ' Sec
'; $docCompleteTimePrint .= 'Before : ' . $docCompleteTime . ' Sec
'; } if ($minifyStatus == 1) { $af_docReadyTime = $docReadyTime; $af_docCompleteTime = $docCompleteTime; $docReadyTimePrint .= 'After : ' . $docReadyTime . ' Sec'; $docCompleteTimePrint .= 'After : ' . $docCompleteTime . ' Sec'; } } $minifiedPerReady = ''; $minifiedPerComp = ''; $minifiedPerPrint = ''; if ($bef_docReadyTime != '' && $bef_docCompleteTime != '' && $af_docReadyTime != '' && $af_docCompleteTime != '') { $minifiedPerReady = ($bef_docReadyTime / $af_docReadyTime) * 100; $minifiedPerComp = ($bef_docCompleteTime / $af_docCompleteTime) * 100; $minifiedPerReadyClass = 'color_red'; $minifiedPerCompClass = 'color_red'; if ($bef_docReadyTime > $af_docReadyTime) { $minifiedPerReadyClass = 'color_green'; } if ($bef_docCompleteTime > $af_docCompleteTime) { $minifiedPerCompClass = 'color_green'; } $minifiedPerPrint = 'Page Ready : ' . number_format($minifiedPerReady, 2) . ' %'; $minifiedPerPrint .= '
Page Complete : ' . number_format($minifiedPerComp, 2) . ' %'; } ?> have_posts()) { ?>
Page Page Ready Time Page Completely Loaded Minified % Date
—
Last Recorded on
Open url from here to generate report
Click here
No records found.
Page Page Ready Time Page Completely Loaded Minified % Date
generatePagination($wpposts); ?>
Post Type
found_posts); ?> items
str_replace( $big, '%#%', get_pagenum_link( $big ) ), 'base' => $pageUrl, 'format' => '?paged=%#%', 'current' => max(1, get_query_var('paged')), 'total' => $wpposts->max_num_pages ))); ?>
return_plugin_header()); ?>
return_tabs_menu('tab4')); ?>

Scan below code



Mr Mahesh Mohan Thorat

UPI - maheshmthorat@oksbi

0) { ?>

Please wait while we generating report for this page.

This will take less than a minute.
Note - Page will reload several times to generate report

Generating without web optimizations
Generating with web optimizations
Cancel Report
prefix . 'alone_minifier_analysis'; $querystr_1 = "SELECT postID, docReadyTime, docCompleteTime, minifyStatus, datetime FROM $table_name WHERE postID = $postID ORDER BY minifyStatus "; $pageposts_1 = $wpdb->get_results($querystr_1, OBJECT); $array_1 = array(); foreach ($pageposts_1 as $value_1) { $docReadyTime = $value_1->docReadyTime; $docCompleteTime = $value_1->docCompleteTime; $minifyStatus = $value_1->minifyStatus; $datetime = $value_1->datetime; if ($minifyStatus == 0) { $bef_docReadyTime = $docReadyTime; $bef_docCompleteTime = $docCompleteTime; $docReadyTimePrint .= 'Before : ' . $docReadyTime . ' Sec
'; $docCompleteTimePrint .= 'Before : ' . $docCompleteTime . ' Sec
'; } if ($minifyStatus == 1) { $af_docReadyTime = $docReadyTime; $af_docCompleteTime = $docCompleteTime; $docReadyTimePrint .= 'After : ' . $docReadyTime . ' Sec'; $docCompleteTimePrint .= 'After : ' . $docCompleteTime . ' Sec'; } } $minifiedPerReady = ''; $minifiedPerComp = ''; $minifiedPerPrint = ''; if ($bef_docReadyTime != '' && $bef_docCompleteTime != '' && $af_docReadyTime != '' && $af_docCompleteTime != '') { $minifiedPerReady = ($bef_docReadyTime / $af_docReadyTime) * 100; $minifiedPerComp = ($bef_docCompleteTime / $af_docCompleteTime) * 100; $minifiedPerReadyClass = 'color_red'; $minifiedPerCompClass = 'color_red'; if ($bef_docReadyTime > $af_docReadyTime) { $minifiedPerReadyClass = 'color_green'; } if ($bef_docCompleteTime > $af_docCompleteTime) { $minifiedPerCompClass = 'color_green'; } $minifiedPerPrint = 'Page Ready : ' . number_format($minifiedPerReady, 2) . ' %'; $minifiedPerPrint .= '
Page Complete : ' . number_format($minifiedPerComp, 2) . ' %'; } $backBtnLink = admin_url('admin.php') . '?page=all-in-one-minifier-report'; ?>

Page Speed Report

Page Ready Time
Page Completely Loaded
Minified %
Close Report Back to All Report Re-Scan Page
" . __('Settings') . ''; array_push( $links, $settings_link ); return $links; } } ?>