is_pro(); $arwc_upgrade = $license->upgrade_url(); // Surface the lowest-scoring products first — they have the most to fix. usort( $arwc_rows, static function ( $a, $b ) { return (int) $a['score'] <=> (int) $b['score']; } ); // "Quick wins" = products with at least one issue that a FREE fix can resolve // fast (identifiers, structured data, price/category, description, image). Used // to drive merchants straight to their first easy fix. $arwc_quick_codes = array( 'missing_sku' => true, 'missing_gtin' => true, 'schema_no_description' => true, 'schema_no_offer' => true, 'schema_no_category' => true, 'schema_no_image' => true, 'thin_description' => true, 'empty_description' => true, 'no_specs_in_description' => true, 'marketing_heavy_description' => true, ); $arwc_quick_count = 0; $arwc_quick_first = 0; foreach ( $arwc_rows as $arwc_qr ) { $arwc_has_quick = false; foreach ( (array) $arwc_qr['issues'] as $arwc_qi ) { if ( isset( $arwc_qi['code'], $arwc_quick_codes[ $arwc_qi['code'] ] ) ) { $arwc_has_quick = true; break; } } if ( $arwc_has_quick ) { $arwc_quick_count++; if ( 0 === $arwc_quick_first ) { $arwc_quick_first = (int) $arwc_qr['id']; } } } ?>

' . esc_html( number_format_i18n( $arwc_imp_updated ) ) . '', esc_html( number_format_i18n( $arwc_imp_skipped ) ), esc_html( number_format_i18n( $arwc_imp_errors ) ) ); ?>

0 && $arwc_quick_first > 0 ) : ?>

' . esc_html__( 'Run the audit first', 'agentictrack-agent-readiness-for-woocommerce' ) . '' ); ?>

free_ai_cap(); $arwc_free_left = $fixer->free_ai_remaining(); $arwc_ai_client = $fixer->ai(); $arwc_ai_env = ( $arwc_ai_client instanceof ARWC_OpenRouter ) ? $arwc_ai_client->env_note() : ''; ?>
0 ) { printf( /* translators: 1: remaining free AI fixes today, 2: daily free allowance. */ esc_html( _n( 'All manual fixes are free. You also get %2$s free AI fix a day (%1$s left today) — upgrade to Pro for unlimited AI rewrites and attribute suggestions, no API key needed.', 'All manual fixes are free. You also get %2$s free AI fixes a day (%1$s left today) — upgrade to Pro for unlimited AI rewrites and attribute suggestions, no API key needed.', $arwc_free_cap, 'agentictrack-agent-readiness-for-woocommerce' ) ), '' . esc_html( number_format_i18n( $arwc_free_left ) ) . '', esc_html( number_format_i18n( $arwc_free_cap ) ) ); } else { esc_html_e( 'Free fixes (structured data, attributes, identifiers) are included. AI rewrites and AI-generated attributes are Pro — and require no API key once you upgrade.', 'agentictrack-agent-readiness-for-woocommerce' ); } ?>