=== VN Speed Optimizer === Contributors: tranduy258 Tags: speed, performance, cache, optimization, lcp Requires at least: 5.8 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html High-performance optimization suite: Static HTML Cache, Async Assets, LCP Fixer, and Community CDN. == Description == **VN Speed Optimizer** is a comprehensive performance optimization suite designed for high-performance websites worldwide. While it includes specialized routing optimization for challenging network regions (like Vietnam), it delivers lightning-fast speed for any WordPress site globally. = Core Features = * **Static HTML Cache** - Lightning-fast page delivery with intelligent cache management. * **Smart Cleanup** - Removes bloat (Emojis, Embeds, Dashicons) and optimizes Heartbeat API. * **Social Boost** - Optimized delivery for Facebook, TikTok, and Zalo traffic. * **Community CDN (Beta)** - Join the community network to accelerate content delivery. * **Instant Touch** - Preloads pages on hover for instant navigation. * **Smart SEO & Schema** - Auto-generated JSON-LD and Crawl Control to save crawl budget. * **WooCommerce Optimizer** - Unloads heavy Woo scripts on non-shop pages. * **Smart Fonts** - Fixes CLS with fallback fonts and localizes Google Fonts. * **Smart Media** - Cloud Image CDN and auto-compression. * **Asset Optimization** - Async CSS, Defer JS, Smart JS Delay, and Critical CSS. * **Security & Access** - Security Headers (XSS protection) and A11Y fixes (Smart Access). * **Database Detox** - Auto-schedule cleanup for revisions and transients. * **YouTube Lazy Load** - Replaces heavy iframes with lightweight thumbnails. = Community Acceleration Network (Opt-In Feature) = **Important:** This is a peer-to-peer (P2P) network, NOT a traditional CDN like Cloudflare or AWS. Your site will both receive AND serve cached resources to other community members. When enabled, your site can participate in the VN-Nexus Community Network to share cached resources and help accelerate loading for other community members. **Privacy & Transparency:** * 100% anonymous participation * No personal data collected * Requires explicit user opt-in * Can be disabled anytime * Check your hosting provider's Terms of Service before enabling (some hosts restrict P2P) **How it works:** * Your site announces cached resource availability to the network * Other sites in the network can request these resources (typically 1-5MB/day for small sites, 10-20MB/day for medium traffic sites) * Everyone benefits from faster loading speeds * All communication is encrypted and anonymous **Note:** This is an experimental community-driven project and not a replacement for commercial CDN services. == Installation == 1. Upload the plugin files to `/wp-content/plugins/vn-speed-optimizer/` 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Navigate to 'VN Speed Optimizer' in the admin menu 4. Configure your optimization settings == Frequently Asked Questions == = Is this plugin compatible with my theme? = Yes, VN Speed Optimizer is compatible with all WordPress themes. However, we recommend testing in a staging environment first. = Will this plugin work with other caching plugins? = We recommend disabling other caching plugins (like WP Super Cache or W3 Total Cache) to avoid conflicts. VN Speed Optimizer provides comprehensive caching functionality. = What is Community CDN? = Community CDN is an optional feature that allows your site to participate in a peer network to accelerate content delivery. It's completely anonymous and requires explicit opt-in. This feature is currently in Beta. = Does Community CDN share my personal data? = No. Community CDN only shares cached public assets (images, CSS, JS) and uses an anonymous identifier (hashed site URL). No personal data, user information, or private content is ever shared. = Can I disable Community CDN after enabling it? = Yes, absolutely! You can enable or disable Community CDN at any time from the plugin settings. = What does LCP mean? = LCP stands for "Largest Contentful Paint" - a Core Web Vitals metric that measures how long it takes for the main content of your page to load. Good LCP is under 2.5 seconds. = What is Critical CSS? = Critical CSS is the minimum CSS needed to render above-the-fold content. By inlining it, your page can display faster without waiting for external stylesheets to load. = What does CLS mean? = CLS stands for "Cumulative Layout Shift" - a metric measuring visual stability. Lower CLS means your page doesn't jump around while loading, creating a better user experience. == Screenshots == 1. Main dashboard with performance metrics 2. Social Boost configuration 3. Cache management interface == Changelog == = 1.1.0 = * **New**: Smart Hosting Profiler (Auto-detects CPU/RAM). * **New**: Turbo Mode (5x Speedup with Parallel Processing). * **New**: Redis Object Cache integration (Drop-in). * **New**: Cloudflare API Integration (Auto-Purge). * **New**: Generic CDN Support (Pull Zone). * **New**: Cache Preloader (Sitemap Crawler). * **New**: Auto-Alt Tags (Accessibility & SEO). * **New**: LCP Preload & Preconnect (Core Web Vitals). * **New**: Inline Critical CSS & Query String Removal. * **Fix**: GDPR Compliance (Removed frontend beacon). * **Fix**: Network Stats accuracy. * New: Community CDN (Beta) - Join the P2P network to accelerate content delivery. * New: Social Boost - Optimized routing for Facebook, TikTok, and Zalo traffic. * New: Smart Cleanup - Remove bloat (Emojis, Embeds, Dashicons) & Heartbeat Control. * New: Instant Touch - Preload pages on hover for instant navigation. * New: Smart SEO - Auto-generated JSON-LD Schema & Crawl Budget control. * New: WooCommerce Optimizer - Unload heavy scripts on non-shop pages. * New: Smart Fonts - Local Google Fonts & CLS Fixer with fallback fonts. * New: Smart Media - Cloud Image CDN integration & auto-compression. * New: Smart JS Delay - Delay JavaScript execution until user interaction. * New: Security Headers - Added XSS protection & Permissions-Policy. * New: Smart Access - A11Y fixes for Viewport Zoom & Missing Alt Text. * Improved: CSS Grid layout stability. * Improved: Admin User Interface & UX. = 1.0.0 = * Initial release * Static HTML Cache * Asset Optimization * Database Optimizer * YouTube Lazy Load == External Services == This plugin optionally connects to external services when specific features are enabled by the user. = VN-Nexus Community Network = **Service URL:** https://edge.vn-nexus.com **When Used:** 1. **Social Boost:** Connects to `edge.vn-nexus.com/boost/facebook` to optimize traffic flow when Social Boost is enabled and social traffic is detected. 2. **Community CDN:** Connects to `edge.vn-nexus.com` (or configured node) to announce/retrieve public assets when Community CDN is enabled. **Data Sent:** * Anonymous site identifier (MD5 hash of site URL) * Region code (derived from WordPress locale) * Public asset URLs (CSS/JS/Images) * Timestamp **Purpose:** To enable peer-to-peer content acceleration and regional traffic optimization. **Privacy:** * No personal data is collected or transmitted * Participation is 100% voluntary and opt-in **Privacy Policy:** https://vn-speed.ttpdn.com/privacy.html **Terms of Service:** https://vn-speed.ttpdn.com/terms.html = VN-Nexus License API = **Service URL:** https://api.vn-nexus.com AND https://edge.vn-nexus.com/license **Operated By:** VN-Nexus Project Contributors (same team that develops this plugin) **When Used:** When validating PRO features or checking license status in plugin settings. **Data Sent:** * License Key * Site URL * Plugin Version * Timestamp **Purpose:** To validate software licenses and deliver feature updates. **Privacy:** * Only technical data required for validation is sent * No personal user data is tracked * No content is accessed **Privacy Policy:** https://vn-speed.ttpdn.com/privacy.html **Terms of Service:** https://vn-speed.ttpdn.com/terms.html = Google Fonts / YouTube = * **Google Fonts:** Uses `preconnect` resource hints. * **YouTube:** Fetches thumbnails from `i.ytimg.com` for local caching if Lazy Load is enabled. = Weserv.nl Image CDN = **Service URL:** https://images.weserv.nl **When Used:** When "Smart Image CDN" is enabled and no custom CDN URL is provided. **Data Sent:** * Image URLs (to be fetched and optimized) * Visitor IP (standard HTTP log) **Purpose:** To compress, resize, and serve images in next-gen formats (WebP) via a global edge network. **Privacy Policy:** https://github.com/weserv/images/blob/5.x/Privacy-Policy.md **Terms of Service:** https://github.com/weserv/images/blob/5.x/LICENSE = VN-Speed Worker API = **Service URL:** https://edge.vn-nexus.com **When Used:** When "Critical CSS" generation is triggered for the homepage or new posts. **Data Sent:** * Page URL * Viewport Dimensions * HTML Content (for analysis) **Purpose:** To generate Critical CSS to eliminate Render-Blocking resources and improve FCP/LCP. **Privacy Policy:** https://vn-speed.ttpdn.com/privacy.html **Terms of Service:** https://vn-speed.ttpdn.com/terms.html == Developer Disclosure == **Service Ownership:** The VN-Nexus Community Network (edge.vn-nexus.com, api.vn-nexus.com) referenced in this plugin is operated by the same development team that maintains this plugin as an open-source project. **No Commercial Benefit:** The plugin author does not financially benefit from users enabling Community Acceleration. This is a community-driven performance optimization network provided free of charge. **No Service Lock-In:** Users can disable Community Acceleration entirely and still access 100% of the plugin's core optimization features including: * Static HTML Cache * Asset Optimization (CSS/JS minification, defer, async) * Image Lazy Loading * Database Cleanup * Smart SEO & Schema * WooCommerce Optimization * And all other performance features Community Acceleration is a completely optional enhancement and does not restrict access to any core functionality.