'decay' => 1789, 'recovering' => false, 'context' => [ 'lastUpdated' => 'February 21, 2021' ], 'objectTitle' => 'Support', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/blog/top-10-contents/' => [ 'points' => [ '2022-04' => 1889, '2022-05' => 1714, '2022-06' => 2849, '2022-07' => 4175, '2022-08' => 5343, '2022-09' => 6360, '2022-10' => 6492, '2022-11' => 6955, '2022-12' => 6930, '2023-01' => 5880, '2023-02' => 5211, '2023-03' => 4683 ], 'page' => '/blog/top-10-contents/', 'peak' => 6955, 'decayPercent' => 32, 'decay' => 2272, 'recovering' => false, 'context' => [ 'lastUpdated' => 'October 14, 2022' ], 'objectTitle' => 'Top 10 Contents', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], ], 'totals' => [ 'page' => 1, 'pages' => 1, 'total' => 10 ], 'additionalFilters' => [ [ 'name' => 'postType', 'options' => [ [ 'label' => __( 'All Content Types', 'all-in-one-seo-pack' ), 'value' => '' ] ] ] ] ] ]; } /** * Get minimum required values for the inspection result. * * @since 4.5.0 * * @return array The inspection result. */ private function getInspectionResult() { $verdicts = [ 'PASS', 'FAIL', 'NEUTRAL' ]; return [ 'indexStatusResult' => [ 'verdict' => $verdicts[ array_rand( $verdicts ) ], ] ]; } /** * Clears the Search Statistics cache. * * @since 4.5.0 * @version 4.6.2 Moved from Pro to Common. * * @return void */ public function clearCache() { aioseo()->core->cache->clearPrefix( 'aioseo_search_statistics_' ); aioseo()->core->cache->clearPrefix( 'search_statistics_' ); } /** * Returns all scheduled Search Statistics related actions. * * @since 4.6.2 * * @return array The Search Statistics actions. */ protected function getActionSchedulerActions() { return [ $this->site->action, $this->sitemap->action ]; } /** * Cancels all scheduled Search Statistics related actions. * * @since 4.3.3 * @version 4.6.2 Moved from Pro to Common. * * @return void */ public function cancelActions() { foreach ( $this->getActionSchedulerActions() as $actionName ) { as_unschedule_all_actions( $actionName ); } } }