__( 'Critical CSS', 'a-smith-speed-optimizer' ), 'icon' => 'dashicons-art', 'pro_only' => true, ); $tabs['unused_css'] = array( 'label' => __( 'Unused CSS', 'a-smith-speed-optimizer' ), 'icon' => 'dashicons-editor-strikethrough', 'pro_only' => true, ); $tabs['image_optimization'] = array( 'label' => __( 'Image WebP/AVIF', 'a-smith-speed-optimizer' ), 'icon' => 'dashicons-format-image', 'pro_only' => true, ); $tabs['performance_history'] = array( 'label' => __( 'Performance History', 'a-smith-speed-optimizer' ), 'icon' => 'dashicons-chart-line', 'pro_only' => true, ); return $tabs; } /** * Show contextual Pro upgrade prompt on the dashboard. */ public function maybe_show_pro_prompt() { if ( self::is_pro_active() ) { return; } // Check if user has dismissed this. if ( get_user_meta( get_current_user_id(), 'asmith_so_dismissed_pro_prompt', true ) ) { return; } ?>
__( 'Critical CSS generation for above-the-fold content', 'a-smith-speed-optimizer' ), 'unused_css' => __( 'Unused CSS removal to eliminate render-blocking styles', 'a-smith-speed-optimizer' ), 'image_webp' => __( 'Automatic WebP/AVIF image conversion', 'a-smith-speed-optimizer' ), 'performance_history' => __( 'Performance score history and trend charts', 'a-smith-speed-optimizer' ), 'cdn_integration' => __( 'CDN integration for static assets', 'a-smith-speed-optimizer' ), 'preload_fonts' => __( 'Font preloading and display optimization', 'a-smith-speed-optimizer' ), 'page_cache' => __( 'Full page caching with cache rules', 'a-smith-speed-optimizer' ), ); } }