id = 'thinkrank/run-seo-analyzer'; $this->label = __( 'Run Site SEO Analyzer Audit', 'thinkrank' ); $this->description = __( 'Run a fresh whole-site SEO audit (Site SEO Analyzer), bypassing and refreshing the hourly cache. Returns the same payload as get-seo-analyzer: overall 0-100 score, grade, summary counts, and per-check results across Basic, Advanced, Content, Performance, and Security.', 'thinkrank' ); } /** * {@inheritDoc} * * @return array */ public function get_annotations() { return [ 'readonly' => false, 'destructive' => false, 'idempotent' => true, 'priority' => 2.0, 'openWorldHint' => false, ]; } /** * Execute ability. * * @param array $input Ability input payload. * @return array */ public function execute( $input ) { $analyzer = new SEO_Analyzer(); return $analyzer->run( true ); } }