$instance
$instance : mixed
Public static variable to hold the single instance of the class.
Class MainWP_Child_Pagespeed
MainWP Page Speed extension handler.
sync_others_data(array $information, array $data = array()) : array
Method sync_others_data()
Sync the Google Pagespeed Insights plugin data.
array | $information | Array containing the sync information. |
array | $data | Array containing the Google Pagespeed Insights plugin data to be synced. |
$information Array containing the sync information.
hide_plugin(array $plugins) : array
Method hide_plugin()
Remove the Google Pagespeed Insights plugin from the list of all plugins when the plugin is hidden.
array | $plugins | Array containing all installed plugins. |
$plugins Array containing all installed plugins without the Google Pagespeed Insights plugin.
cal_pagespeed_data(string $strategy) : array
Method cal_pagespeed_data()
Calculate page speed scores.
string | $strategy | Contains the selected strategy (desktop, mobile or both). |
Array containing data including last modified timespamp, average score and number of pages.