3 ], [ 'ctr' => '7.39', 'clicks' => 409, 'keyword' => 'aioseo wordpress', 'position' => '1.77', 'difference' => [ 'ctr' => '-0.39', 'decay' => 534, 'clicks' => 19, 'position' => '-0.13', 'impressions' => 515 ], 'impressions' => 5531 ], [ 'ctr' => '1.11', 'clicks' => 379, 'keyword' => 'headline analyzer aioseo', 'position' => '8.41', 'difference' => [ 'ctr' => '0.43', 'decay' => 134, 'clicks' => 147, 'position' => '-1.36', 'impressions' => -13 ], 'impressions' => 34043 ], [ 'ctr' => '2.63', 'clicks' => 364, 'keyword' => 'best seo plugin plugin', 'position' => '2.38', 'difference' => [ 'ctr' => '0.06', 'decay' => 836, 'clicks' => 29, 'position' => '0.20', 'impressions' => 807 ], 'impressions' => 13837 ], [ 'ctr' => '1.52', 'clicks' => 326, 'keyword' => 'best seo plugin pack', 'position' => '4.14', 'difference' => [ 'ctr' => '-0.19', 'decay' => -1590, 'clicks' => -66, 'position' => '0.64', 'impressions' => -1524 ], 'impressions' => 21450 ], [ 'ctr' => '6.70', 'clicks' => 264, 'keyword' => 'youtube title analyzer aioseo', 'position' => '7.19', 'difference' => [ 'ctr' => '4.73', 'decay' => 3842, 'clicks' => 257, 'position' => '-4.18', 'impressions' => 3585 ], 'impressions' => 3940 ] ]; return [ 'paginated' => [ 'rows' => $keywordsRows, 'totals' => [ 'page' => 1, 'pages' => 1, 'total' => 10 ], 'filters' => [ [ 'slug' => 'all', 'name' => 'All', 'active' => true ], [ 'slug' => 'topLosing', 'name' => 'Top Losing', 'active' => false ], [ 'slug' => 'topWinning', 'name' => 'Top Winning', 'active' => false ] ] ], 'topLosing' => $keywordsRows, 'topWinning' => $keywordsRows, 'topKeywords' => $keywordsRows, 'distribution' => [ 'top3' => '6.86', 'top10' => '11.03', 'top50' => '52.10', 'top100' => '30.01', 'difference' => [ 'top3' => '24.31', 'top10' => '33.70', 'top50' => '-30.50', 'top100' => '-27.51' ] ], 'distributionIntervals' => [ [ 'date' => '2022-10-23', 'top3' => '30.70', 'top10' => '38.60', 'top50' => '24.50', 'top100' => '6.20' ], [ 'date' => '2022-10-30', 'top3' => '31.60', 'top10' => '42.10', 'top50' => '21.00', 'top100' => '5.30' ], [ 'date' => '2022-11-06', 'top3' => '31.30', 'top10' => '44.40', 'top50' => '20.30', 'top100' => '4.00' ], [ 'date' => '2022-11-13', 'top3' => '31.70', 'top10' => '44.20', 'top50' => '20.20', 'top100' => '3.90' ], [ 'date' => '2022-11-20', 'top3' => '31.70', 'top10' => '45.70', 'top50' => '18.00', 'top100' => '4.60' ], [ 'date' => '2022-11-27', 'top3' => '32.50', 'top10' => '47.80', 'top50' => '16.80', 'top100' => '2.90' ], [ 'date' => '2022-12-04', 'top3' => '32.50', 'top10' => '47.20', 'top50' => '17.90', 'top100' => '2.40' ], [ 'date' => '2022-12-11', 'top3' => '31.80', 'top10' => '43.70', 'top50' => '21.00', 'top100' => '3.50' ], [ 'date' => '2022-12-18', 'top3' => '30.40', 'top10' => '43.60', 'top50' => '22.40', 'top100' => '3.60' ], [ 'date' => '2022-12-25', 'top3' => '26.90', 'top10' => '37.20', 'top50' => '29.70', 'top100' => '6.20' ], [ 'date' => '2023-01-01', 'top3' => '27.00', 'top10' => '33.80', 'top50' => '31.60', 'top100' => '7.60' ], [ 'date' => '2023-01-08', 'top3' => '26.60', 'top10' => '38.60', 'top50' => '30.00', 'top100' => '4.80' ], [ 'date' => '2023-01-16', 'top3' => '31.10', 'top10' => '43.90', 'top50' => '22.50', 'top100' => '2.50' ] ] ]; } /** * Returns the content performance data. * * @since 4.7.2 * * @return array The content performance data. */ public function getSeoStatisticsData( $args = [] ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable return []; } /** * Returns the Content Rankings data. * * @since 4.3.6 * * @param array $args The arguments. * @return array The Content Rankings data. */ public function getContentRankingsData( $args = [] ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable return [ 'paginated' => [ 'rows' => [ '/' => [ 'points' => [ '2022-04' => 13655, '2022-05' => 12683, '2022-06' => 13923, '2022-07' => 13031, '2022-08' => 10978, '2022-09' => 9726, '2022-10' => 13943, '2022-11' => 21813, '2022-12' => 11163, '2023-01' => 4442, '2023-02' => 4798, '2023-03' => 5405 ], 'page' => '/', 'peak' => 21813, 'decayPercent' => 75, 'decay' => 16407, 'recovering' => false, 'context' => [ 'lastUpdated' => 'December 6, 2021' ], 'objectTitle' => 'Homepage', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/high-ranking-page/' => [ 'points' => [ '2022-04' => 18426, '2022-05' => 18435, '2022-06' => 19764, '2022-07' => 14769, '2022-08' => 6486, '2022-09' => 11984, '2022-10' => 11539, '2022-11' => 9939, '2022-12' => 5340, '2023-01' => 3965, '2023-02' => 3799, '2023-03' => 5440 ], 'page' => '/high-ranking-page/', 'peak' => 19764, 'decayPercent' => 72, 'decay' => 14323, 'recovering' => false, 'context' => [ 'lastUpdated' => 'November 17, 2022' ], 'objectTitle' => 'High Ranking Page', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/pricing/' => [ 'points' => [ '2022-04' => 5356, '2022-05' => 5425, '2022-06' => 5165, '2022-07' => 5479, '2022-08' => 4995, '2022-09' => 4466, '2022-10' => 4545, '2022-11' => 5361, '2022-12' => 3092, '2023-01' => 1948, '2023-02' => 1630, '2023-03' => 2341 ], 'page' => '/pricing/', 'peak' => 5479, 'decayPercent' => 57, 'decay' => 3137, 'recovering' => false, 'context' => [ 'lastUpdated' => 'December 8, 2021' ], 'objectTitle' => 'Pricing', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/features-and-benefits/' => [ 'points' => [ '2022-04' => 1272, '2022-05' => 4151, '2022-06' => 6953, '2022-07' => 7785, '2022-08' => 4177, '2022-09' => 3378, '2022-10' => 2553, '2022-11' => 3971, '2022-12' => 2143, '2023-01' => 2335, '2023-02' => 1666, '2023-03' => 4892 ], 'page' => '/features-and-benefits/', 'peak' => 7785, 'decayPercent' => 37, 'decay' => 2893, 'recovering' => false, 'context' => [ 'lastUpdated' => 'February 7, 2022' ], 'objectTitle' => 'Features and Benefits', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/documentation/' => [ 'points' => [ '2022-04' => 594, '2022-05' => 385, '2022-06' => 337, '2022-07' => 378, '2022-08' => 714, '2022-09' => 2637, '2022-10' => 2831, '2022-11' => 2907, '2022-12' => 1851, '2023-01' => 277, '2023-02' => 226, '2023-03' => 175 ], 'page' => '/documentation/', 'peak' => 2907, 'decayPercent' => 93, 'decay' => 2731, 'recovering' => false, 'context' => [ 'lastUpdated' => 'January 7, 2022' ], 'objectTitle' => 'Documentation', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/blog/' => [ 'points' => [ '2022-04' => 2956, '2022-05' => 2363, '2022-06' => 2347, '2022-07' => 2154, '2022-08' => 2604, '2022-09' => 1995, '2022-10' => 1528, '2022-11' => 1578, '2022-12' => 1458, '2023-01' => 927, '2023-02' => 629, '2023-03' => 592 ], 'page' => '/blog/', 'peak' => 2956, 'decayPercent' => 79, 'decay' => 2363, 'recovering' => false, 'context' => [ 'lastUpdated' => 'April 21, 2022' ], 'objectTitle' => 'Blog', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/blog/my-best-content/' => [ '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/my-best-content/', 'peak' => 6955, 'decayPercent' => 32, 'decay' => 2272, 'recovering' => false, 'context' => [ 'lastUpdated' => 'April 22, 2022' ], 'objectTitle' => 'My Best Content', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/contact-us/' => [ 'points' => [ '2022-04' => 3668, '2022-05' => 3699, '2022-06' => 4934, '2022-07' => 5488, '2022-08' => 5092, '2022-09' => 5526, '2022-10' => 4694, '2022-11' => 4791, '2022-12' => 3989, '2023-01' => 4089, '2023-02' => 4189, '2023-03' => 4289 ], 'page' => '/contact-us/', 'peak' => 5526, 'decayPercent' => 34, 'decay' => 1907, 'recovering' => true, 'context' => [ 'lastUpdated' => 'January 28, 2022' ], 'objectTitle' => 'Contact Us', 'objectType' => 'post', 'inspectionResult' => $this->getInspectionResult(), 'objectId' => 0 ], '/support/' => [ 'points' => [ '2022-04' => 2715, '2022-05' => 2909, '2022-06' => 2981, '2022-07' => 2988, '2022-08' => 2586, '2022-09' => 2592, '2022-10' => 2391, '2022-11' => 2446, '2022-12' => 2045, '2023-01' => 1239, '2023-02' => 1077, '2023-03' => 1198 ], 'page' => '/support/', 'peak' => 2988, 'decayPercent' => 59, '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 ); } } }