×
notice[1], AOMIN_PLUGIN_IDENTIFIER); ?>
×
×
Settings', 'all-in-one-minifier')), array('tab2', 'all-in-one-minifier-report', 'fa-chart-line', __(' Page Speed Report', 'all-in-one-minifier')), array('tab3', 'all-in-one-minifier-about', 'fa-info-circle', __(' About', 'all-in-one-minifier')), array('tab4', 'all-in-one-minifier-donate', 'fa-info-circle', __(' Say Thanks', 'all-in-one-minifier')) ); $menu = null; foreach ($list as $item => $value) { $menu .= '
'; } 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'; // } update_option('_all-in-one_minifier', $opts); $this->notice = array('success', __('Your settings have been successfully updated.', 'all-in-one-minifier')); // header('location:' . admin_url('admin.php?page=all-in-one-minifier-admin') . '&status=updated'); // die(); } } /** * Return the `Options` page */ public function return_options_page() { $this->_getJSReady(); $opts = get_option('_all-in-one_minifier'); // if ((isset($_GET['status'])) && ($_GET['status'] == 'updated')) { // $this->notice = array('success', __('Your settings have been successfully updated.', AOMIN_PLUGIN_IDENTIFIER)); // } $allPostTypes = array(); $args = array( 'public' => 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; $wc_query = new WP_Query(array( 'post_type' => $allPostTypes, 'post_status' => 'publish', 'posts_per_page' => -1 )); $allPostData = array(); if ($wc_query->have_posts()) { while ($wc_query->have_posts()) { $wc_query->the_post(); $post_id = get_the_ID(); $allPostData[] = ['post' => get_permalink($post_id)]; } } $disablePluginOption = ''; $frontpage_id = get_option('page_on_front'); if (!isset($opts['start_minify']) || ($opts['start_minify']) == 'off') { $disablePluginOption = 'alone-disabled-options'; } if ($frontpage_id == '' || $frontpage_id == '0') { $disablePluginOption = 'alone-disabled-options'; } ?>© - created by Mahesh Mohan Thorat
| Content | Page Before Optimization | Page After Optimization | Minified % | Date | ||||
|---|---|---|---|---|---|---|---|---|
| href="javascript:_buildCache('', -1)" class="row-title"> — | Last cache on |
Build cache for this href="javascript:_buildCache('', -1)" class="row-title">Click here |
||||||
| No records found. | ||||||||
| Page | Page Ready Time | Page Completely Loaded | Minified % | Date | ||||
This will take less than a minute.
Note - Page will reload several times to generate report