๐ LCP Optimizer Universal PRO
 
 
 
 
 

  Free WordPress plugin to automatically optimize Core Web Vitals (LCP, INP, CLS) with zero configuration required.
Compatible with all major themes, page builders (Elementor, Divi, etc.), and cache plugins (WP Rocket, LiteSpeed, Autoptimize).
๐ธ Screenshots
Base Settings - One-Click Optimization
 Enable optimizations with a single toggle. Smart defaults work out of the box.
Enable optimizations with a single toggle. Smart defaults work out of the box.
Advanced Configuration - Custom Selectors
 Fine-tune CSS animation removal and target selectors for your theme.
Fine-tune CSS animation removal and target selectors for your theme.
Font Optimization - Google Fonts Control
 Manual Google Fonts URL control with automatic preloading and font-display swap.
Manual Google Fonts URL control with automatic preloading and font-display swap.
Preload Resources - Critical Assets
 Preload critical CSS, JavaScript, and LCP images for faster rendering.
Preload critical CSS, JavaScript, and LCP images for faster rendering.
 One-click access to PageSpeed Insights, GTmetrix, Pingdom, and WebPageTest.
One-click access to PageSpeed Insights, GTmetrix, Pingdom, and WebPageTest.
Guide & Info - WP Rocket Integration
 Complete WP Rocket configuration guide and troubleshooting tips.
Complete WP Rocket configuration guide and troubleshooting tips.
โจ Whatโs New in Version 2.3.2
๐ Google Fonts CSS URL Field Restored
  - FIXED: Re-added โGoogle Fonts CSS URLโ input field in Font Optimization tab
- NEW: Manual control over Google Fonts URL for better optimization
- IMPROVED: Performance tip to load only required font weights
- Optional field with auto-detection fallback
๐ ๏ธ Previous Updates (2.3.1)
  - NEW: Quick-access buttons to performance testing tools
    
      - PageSpeed Insights (pre-filled URL)
- GTmetrix (pre-filled URL)
- Pingdom Tools
- WebPageTest (pre-filled URL)
 
- One-click access to industry-standard testing platforms
๐ Previous Updates (2.3.0)
  - Complete English translation of admin panel
- Enhanced help texts and tooltips
- Comprehensive WP Rocket configuration guide
- Security improvements (admin-only debug panel)
See full changelog โ
๐ฏ Key Features
โ
 Core Web Vitals Ready
  - LCP (Largest Contentful Paint) < 2.5s
- INP (Interaction to Next Paint) < 200ms
- CLS (Cumulative Layout Shift) < 0.1
โก Technical Optimizations
๐ค Font Optimization
  - Global font-display: swapfor instant text rendering
- Direct preload for WOFF2/WOFF/TTF files
- Asynchronous Google Fonts loading
- Manual Google Fonts URL control
- Performance tip: Each font adds ~50-100KB
๐ฅ Resource Preloading
  - Auto-detects critical CSS (WP Rocket, Autoptimize)
- Preloads up to 3 LCP images
- DNS prefetch with auto-included domains:
    
      - fonts.googleapis.com
- fonts.gstatic.com
- cdnjs.cloudflare.com
- (Adds ~150 bytes, saves 50-200ms per domain)
 
๐ผ๏ธ Image Optimization
  - fetchpriority="high"for LCP candidates
- Smart lazy loading (skips above-the-fold images)
- Aspect-ratio preservation to prevent CLS
- Automatic width/height attributes
  - Early Hints (HTTP/2+) for fastest resource hints
- INP optimization via intelligent debouncing
- Minimal CSS injection (<2KB)
- No jQuery dependency
๐ Safety Guarantees
  - โ No interference with dropdown menus
- โ
 100% native theme menu control
- โ
 Compatible with all major page builders
- โ
 No conflicts with cache plugins
๐ป Requirements
  
    
      | Requirement | Version | 
  
  
    
      | WordPress | 6.0+ | 
    
      | PHP | 7.4+ | 
    
      | Server | Apache/Nginx | 
    
      | Optional | HTTP/2+ for Early Hints | 
  
๐ฅ Installation
Method 1: Download from GitHub (Recommended)
  - Download the latest release:
    
      - Go to Releases
- Download lcp-optimizer-universal-pro-v2.3.2.zip
 
- Upload to WordPress:
    
      - Go to Plugins โ Add New โ Upload Plugin
- Choose the ZIP file
- Click Install Now
 
- Activate the plugin
Method 2: Manual Installation
cd /path/to/wordpress/wp-content/plugins/
unzip lcp-optimizer-universal-pro-v2.3.2.zip
Then activate in WordPress admin.
Method 3: Git Clone (For Developers)
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/emanuelcelano/lcp-optimizer-universal-pro.git
๐ Quick Start Guide
1๏ธโฃ Basic Setup (2 minutes)
  - Go to LCP Optimizer in WordPress admin
- Click โEnable LCP Optimizationโ
- Click โSave Changesโ
- Clear all caches (plugin, theme, server)
- Test with PageSpeed Insights
Thatโs it! The plugin works out-of-the-box with zero configuration.
2๏ธโฃ Advanced Setup (Optional)
Add Your Hero Image for Preload
  - Open your homepage in Chrome DevTools
- Run: PerformanceObserverto find LCP element
- Copy image URL
- Add to โCritical Images Preloadโ in plugin settings
Optimize Google Fonts
  - Go to Font Optimization tab
- Add your Google Fonts CSS URL (e.g., https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap)
- Pro tip: Use only 2-3 font weights maximum
Fine-tune for Your Theme
  - Add theme-specific menu selectors if needed:
    .main-menu, .menu-item, .sub-menu
 
๐ง WP Rocket Integration
If you use WP Rocket, follow these settings for best results:
โ๏ธ File Optimization
Exclude from CSS Minification:
lcp-optimizer
/lcp-accelerator
elementor-frontend
CSS Safelist (Prevent Menu Issues):
lcp-element
pxl-nav-menu
menu-item
sub-menu
dropdown
โ๏ธ JavaScript Optimization
Exclude from JS Delay:
jquery
lcp-optimizer
elementor-frontend
mediaelementplayer
[Full WP Rocket guide available in plugin admin โ]
๐ Expected Results
  
    
      | Metric | Before | After | Improvement | 
  
  
    
      | LCP | 4.5s | 2.1s | -53% โก | 
    
      | INP | 350ms | 180ms | -49% ๐ฏ | 
    
      | CLS | 0.25 | 0.05 | -80% โ | 
    
      | PageSpeed Score | 65 | 92 | +27 points ๐ | 
  
Results may vary based on hosting, theme, and content.
๐ Troubleshooting
Solution: Add menu-specific CSS selectors in plugin settings:
.main-navigation, .menu-item, .sub-menu, .dropdown-menu
โ LCP Not Improving?
Checklist:
  - โ
 Identify LCP element using Chrome DevTools Performance tab
- โ
 Add LCP image URL to โCritical Images Preloadโ
- โ
 Reduce Google Fonts to 2-3 weights maximum
- โ
 Clear all caches (WP Rocket, browser, CDN)
- โ
 Test in incognito mode
โ Conflicts with Other Plugins?
Known Compatible Plugins:
  - โ
 WP Rocket
- โ
 LiteSpeed Cache
- โ
 Autoptimize
- โ
 Elementor / Elementor Pro
- โ
 Divi Builder
- โ
 Yoast SEO
- โ
 Rank Math
Known Issues:
  - โ ๏ธ Some lazy-load plugins may conflict. Disable duplicate lazy-loading features.
โ Debug Mode
Enable debug panel (admin only):
  - Add to wp-config.php:define('WP_DEBUG', true);
- View debug info in plugin settings โ Debug tab
๐งช Testing Your Site
Use the built-in testing tools in the plugin:
  - PageSpeed Insights (Googleโs official tool)
- GTmetrix (Detailed waterfall analysis)
- Pingdom (Global server locations)
- WebPageTest (Advanced filmstrip view)
All tools are pre-filled with your site URL for instant testing!
๐ค Contributing
We welcome contributions! Hereโs how:
๐ Report Bugs
Open an issue with:
  - WordPress version
- PHP version
- Theme name
- Steps to reproduce
๐ก Request Features
Open an issue tagged enhancement
๐ง Pull Requests
  - Fork the repository
- Create feature branch (git checkout -b feature/AmazingFeature)
- Commit changes (git commit -m 'Add AmazingFeature')
- Push to branch (git push origin feature/AmazingFeature)
- Open a Pull Request
๐ License
This project is licensed under the GPL-2.0 License - see the LICENSE file for details.
TL;DR: You can use, modify, and distribute this plugin freely. Commercial use is allowed.
๐ Support
Free Support
Professional Support
For custom implementation or consulting:
๐ง Email: info@analisideirischinformatici.it
๐ Websites:
๐จโ๐ป Author
Dr. Emanuel Celano
Digital Forensics & Cyber Incident Response Specialist
Informatica in Azienda
โญ Show Your Support
If this plugin helped your site, please:
  - โญ Star this repository
- ๐ฆ Tweet about it with #LCPOptimizer
- ๐ Write a review (coming soon on WordPress.org)
- ๐ Share with others
๐ Stats
 
 

๐บ๏ธ Roadmap
Version 2.4 (Q1 2025)
Version 3.0 (Q2 2025)
Vote for features โ
Made with โค๏ธ for WordPress Performance
Helping websites pass Core Web Vitals since 2024
๐ Quick Links