array('Content-Type' => 'application/json'), 'body' => wp_json_encode(array('site_token' => $token)), 'timeout' => 6, 'sslverify' => true, )); $data = !is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200 ? json_decode(wp_remote_retrieve_body($response), true) : null; if (is_array($data) && isset($data['cards'])) set_transient($key, $data, 60); } return $data; } public static function optimization_button($data) { if (!is_array($data) || empty($data['project_id'])) return; $url = SEOAI_PLATFORM_URL . '/dashboard/automations?open_optimization=1&project_id=' . rawurlencode($data['project_id']); echo '

Optimize website

Review findings in your linked AI4Ranks account. Opening the workspace does not apply changes.

'; } public static function render() { if (!current_user_can('manage_options') || !get_option('seoai_site_token', '')) return; $data = self::data(); self::optimization_button($data); ?>

YOUR WEBSITE AT A GLANCE

Website insights

Key signals and next steps from your AI4Ranks workspace.

Open full dashboard ↗

Workspace insights are temporarily unavailable. Your local content tools remain available below.

Try again
reports available · Demo data

Latest available reports for this website. Each report may cover a different period. Updates are cached for up to one minute.