lcp-optimizer-universal-pro

๐Ÿš€ LCP Optimizer Universal PRO

Version WordPress PHP License Downloads Stars

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

Base Settings Enable optimizations with a single toggle. Smart defaults work out of the box.

Advanced Configuration - Custom Selectors

Advanced Configuration Fine-tune CSS animation removal and target selectors for your theme.

Font Optimization - Google Fonts Control

Font Optimization Manual Google Fonts URL control with automatic preloading and font-display swap.

Preload Resources - Critical Assets

Preload Resources Preload critical CSS, JavaScript, and LCP images for faster rendering.

Performance Tools - Built-in Testing

Performance Tools One-click access to PageSpeed Insights, GTmetrix, Pingdom, and WebPageTest.

Guide & Info - WP Rocket Integration

Guide & Info Complete WP Rocket configuration guide and troubleshooting tips.


โœจ Whatโ€™s New in Version 2.3.2

๐Ÿ”— Google Fonts CSS URL Field Restored

๐Ÿ› ๏ธ Previous Updates (2.3.1)

๐ŸŒ Previous Updates (2.3.0)

See full changelog โ†’


๐ŸŽฏ Key Features

โœ… Core Web Vitals Ready

โšก Technical Optimizations

๐Ÿ”ค Font Optimization

๐Ÿ“ฅ Resource Preloading

๐Ÿ–ผ๏ธ Image Optimization

๐ŸŽจ CSS & Performance

๐Ÿ”’ Safety Guarantees


๐Ÿ’ป Requirements

Requirement Version
WordPress 6.0+
PHP 7.4+
Server Apache/Nginx
Optional HTTP/2+ for Early Hints

๐Ÿ“ฅ Installation

  1. Download the latest release:
    • Go to Releases
    • Download lcp-optimizer-universal-pro-v2.3.2.zip
  2. Upload to WordPress:
    • Go to Plugins โ†’ Add New โ†’ Upload Plugin
    • Choose the ZIP file
    • Click Install Now
  3. 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)

  1. Go to LCP Optimizer in WordPress admin
  2. Click โ€œEnable LCP Optimizationโ€
  3. Click โ€œSave Changesโ€
  4. Clear all caches (plugin, theme, server)
  5. 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

  1. Open your homepage in Chrome DevTools
  2. Run: PerformanceObserver to find LCP element
  3. Copy image URL
  4. Add to โ€œCritical Images Preloadโ€ in plugin settings

Optimize Google Fonts

  1. Go to Font Optimization tab
  2. Add your Google Fonts CSS URL (e.g., https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap)
  3. Pro tip: Use only 2-3 font weights maximum

Fine-tune for Your Theme

  1. 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

โ“ Menu Flashing on Page Load?

Solution: Add menu-specific CSS selectors in plugin settings:

.main-navigation, .menu-item, .sub-menu, .dropdown-menu

โ“ LCP Not Improving?

Checklist:

  1. โœ… Identify LCP element using Chrome DevTools Performance tab
  2. โœ… Add LCP image URL to โ€œCritical Images Preloadโ€
  3. โœ… Reduce Google Fonts to 2-3 weights maximum
  4. โœ… Clear all caches (WP Rocket, browser, CDN)
  5. โœ… Test in incognito mode

โ“ Conflicts with Other Plugins?

Known Compatible Plugins:

Known Issues:

โ“ Debug Mode

Enable debug panel (admin only):

  1. Add to wp-config.php: define('WP_DEBUG', true);
  2. View debug info in plugin settings โ†’ Debug tab

๐Ÿงช Testing Your Site

Use the built-in testing tools in the plugin:

  1. PageSpeed Insights (Googleโ€™s official tool)
  2. GTmetrix (Detailed waterfall analysis)
  3. Pingdom (Global server locations)
  4. 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:

๐Ÿ’ก Request Features

Open an issue tagged enhancement

๐Ÿ”ง Pull Requests

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push to branch (git push origin feature/AmazingFeature)
  5. 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:

  1. โญ Star this repository
  2. ๐Ÿฆ Tweet about it with #LCPOptimizer
  3. ๐Ÿ“ Write a review (coming soon on WordPress.org)
  4. ๐Ÿ”— Share with others

๐Ÿ“ˆ Stats

GitHub stars GitHub forks GitHub watchers


๐Ÿ—บ๏ธ 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