0 ) || '' !== trim( (string) get_option( 'aeolynx_logo_url', '' ) ) || ( function_exists( 'get_site_icon_url' ) && '' !== (string) get_site_icon_url() ); $aeolynx_counters = AEOLynx_Activity_Log::get_counters(); $aeolynx_events = AEOLynx_Activity_Log::get_events(); $aeolynx_checks = array( array( 'label' => __( 'Model Context Protocol (WebMCP) Gateway & 6 Callable Read Tools', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_is_active, 'detail' => $aeolynx_is_active ? __( 'Active — AI agents can query getSiteInfo, searchSite, getFeaturedContent, getPostContent, getSiteTaxonomies, and getCatalogItems.', 'aeolynx-for-webmcp' ) : __( 'Disabled in Settings.', 'aeolynx-for-webmcp' ), ), array( 'label' => __( 'Interconnected Schema.org @graph, Speakable, Auto-FAQ & WooCommerce Product Engine', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_schema_on && $aeolynx_speakable_on, 'detail' => ( $aeolynx_schema_on && $aeolynx_speakable_on ) ? __( 'Active — Organization, WebSite, WebPage, BreadcrumbList, Article, Product/Offer, Speakable & Auto-FAQPage are live.', 'aeolynx-for-webmcp' ) : __( 'Partially disabled — enable both under Schema & Entity settings.', 'aeolynx-for-webmcp' ), ), array( 'label' => __( 'Clean AI Markdown Stream (?format=markdown)', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_markdown_on, 'detail' => $aeolynx_markdown_on ? __( 'Active — Appending ?format=markdown to any post or product serves clean LLM-ready Markdown with YAML metadata.', 'aeolynx-for-webmcp' ) : __( 'Disabled in Settings.', 'aeolynx-for-webmcp' ), ), array( 'label' => __( '/llms.txt & /llms-full.txt AI Corpus Index', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_llmstxt_on && $aeolynx_permalinks_on, 'detail' => ! $aeolynx_llmstxt_on ? __( 'Disabled in Settings.', 'aeolynx-for-webmcp' ) : ( $aeolynx_permalinks_on ? __( 'Active — /llms.txt and /llms-full.txt are live at your domain root.', 'aeolynx-for-webmcp' ) : __( 'Action needed: enable pretty permalinks under Settings > Permalinks so /llms.txt routes cleanly.', 'aeolynx-for-webmcp' ) ), ), array( 'label' => __( 'Publisher Brand Logo & Site Tagline', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_logo_ready && $aeolynx_tagline_set, 'detail' => ( $aeolynx_logo_ready && $aeolynx_tagline_set ) ? __( 'Configured — Your brand logo ImageObject and description are embedded in Schema.org.', 'aeolynx-for-webmcp' ) : __( 'Tip: set a Site Tagline (Settings > General) and a fallback logo URL (Settings > Schema & Entity) for 100% Google validation.', 'aeolynx-for-webmcp' ), ), array( 'label' => __( 'Search Engine & AI Answer Bot Visibility', 'aeolynx-for-webmcp' ), 'passed' => $aeolynx_public_site, 'detail' => $aeolynx_public_site ? __( 'Public — ChatGPT Search, Perplexity, Claude, and Google AI Overviews are allowed to index your site.', 'aeolynx-for-webmcp' ) : __( 'Warning: "Discourage search engines from indexing this site" is checked under Settings > Reading!', 'aeolynx-for-webmcp' ), ), ); $aeolynx_passed_count = 0; foreach ( $aeolynx_checks as $aeolynx_c ) { if ( $aeolynx_c['passed'] ) { ++$aeolynx_passed_count; } } // Single source of truth for the readiness score: the industry-standard local // audit (same cached report the Agent Audit screen renders). No second score. $aeolynx_audit = AEOLynx_Agent_Audit::get_fresh_report(); $aeolynx_audit_ok = is_array( $aeolynx_audit ) && isset( $aeolynx_audit['counts']['score'] ); $aeolynx_score = $aeolynx_audit_ok ? (int) $aeolynx_audit['counts']['score'] : null; $aeolynx_level_name = $aeolynx_audit_ok && isset( $aeolynx_audit['levelName'] ) ? (string) $aeolynx_audit['levelName'] : ''; $aeolynx_band = null === $aeolynx_score ? 'empty' : ( $aeolynx_score < 60 ? 'fail' : ( $aeolynx_score < 90 ? 'warn' : 'pass' ) ); $aeolynx_ev_icons = array( 'tool_call' => 'dashicons-rest-api', 'markdown' => 'dashicons-format-aside', 'llmstxt' => 'dashicons-media-text', 'wellknown' => 'dashicons-media-text', 'bot_crawl' => 'dashicons-robot', 'xray' => 'dashicons-search', ); $aeolynx_start = admin_url( 'admin.php?page=aeolynx-for-webmcp' ); $aeolynx_release_tag = '1.5.1'; $aeolynx_dismissed_release = (string) get_user_meta( get_current_user_id(), 'aeolynx_dismissed_release', true ); $aeolynx_show_announce = ( $aeolynx_dismissed_release !== $aeolynx_release_tag ); $aeolynx_has_pro = defined( 'AEOLYNX_PRO_VERSION' ); ?>