GMBSync. by CodeWays

The Sub-15KB Google Reviews Plugin Engineered for WordPress Core Web Vitals

Built for WordPress developers and performance agencies tired of watching Mobile LCP, CLS, and INP collapse after dropping 250KB–420KB third-party widgets (Elfsight or EmbedSocial) onto sites tuned with WP Rocket, LiteSpeed Cache, or Cloudflare APO. GMBSync bundles a 14.31 KB gzipped local widget.js with zero external font or CDN waterfalls, deterministic container reservation, and Wave-1 SSR JSON-LD.

Gutenberg apiVersion: 3 • Elementor lazy-registered • WordPress 6.0–7.1 • Direct .zip

Local Gzipped JS
14.31 KB

Bundled assets/js/widget.js, zero remote JS

Layout Shift Score
0.000

Server-printed min-height container locks

External Font / CDN Chains
0

Zero jQuery, zero React, zero Swiper overhead

SSR Schema Cache
6h

1 WP transient, 0 custom DB tables, 0 wp-cron

Why Heavy Review Widgets Tank LCP, CLS & INP on WordPress

Inspect how GMBSync v2.0.0’s local-script architecture compares against remote SaaS widget loaders and database-heavy jQuery carousel plugins.

Core Web Vitals technical comparison between GMBSync, remote SaaS review widgets, and jQuery WordPress review plugins
Performance Vector GMBSync Plugin v2.0.0 Remote SaaS Loaders (Elfsight / EmbedSocial) jQuery / DB WP Plugins
JS Transfer (Gzipped) 14.31 KB local vanilla JS 200 KB – 420 KB+ multi-chunk remote JS 140 KB – 280 KB (jQuery + Swiper/Slick)
Script Execution & INP Footer defer + native CSS scroll-snap Long hydration tasks & third-party runtime polling DOM-ready jQuery layout recalculation
CLS Reservation Inline min-height: 54px / 240px (0.000 CLS) 0px initial collapse → 0.10–0.28 shift Slider height jump after CSS/JS paint
Font & CDN Waterfalls Zero external fonts; inherits site font stack Third-party DNS/TLS + remote fonts/CSS Bundled icon fonts & unpurged CSS
Avatar Image Handling loading="lazy" + referrerpolicy="no-referrer" + initials fallback Eager third-party image requests competing with LCP Local media uploads bloating disk & backups
Conditional Asset Enqueue Loads strictly on pages containing a widget Often injected globally in header/footer Enqueues CSS/JS sitewide on every post
Origin DB & Cron Load 1 option + 1 6h transient; zero wp-cron scrapers Low DB load, high client network cost Custom review tables + heavy cron sync queries

Inside GMBSync v2.0.0’s Zero-Bloat WordPress Architecture

Conditional Footer defer + WP 6.0–7.1 Support

GMBSync_Plugin::register_frontend_assets() registers local assets/js/widget.js (14.31 KB gzipped) with 'in_footer' => true, 'strategy' => 'defer' and includes a script_loader_tag fallback for WordPress 6.0–6.2. Pages without a widget pay 0 KB.

Gutenberg apiVersion: 3, Elementor & Shortcodes

Registers dynamic block gmbsync/reviews-widget with api_version => 3 for full WordPress 6.3–7.1 iframe editor compatibility, lazy-loads GMBSync_Elementor_Widget strictly on elementor/widgets/register, and supports class-based multi-widget shortcodes across Bricks, Divi, and GeneratePress.

Wave-1 SSR JSON-LD With Negative-Cache Guard

GMBSync_SEO prints deduplicated LocalBusiness + AggregateRating JSON-LD (#gmbsync-ssr-schema) once per request from a 6-hour transient (gmbsync_seo_<md5>) with a 15-minute backoff cache on upstream timeout so origin PHP TTFB never stalls.

Full-Page Cache Safe Async JSON Hydration

Static cached HTML stays warm at the edge while widget.js fetches lightweight public review JSON from https://api.gmbsync.com/api/v1/widget/{id} with global stale-while-revalidate caching — new Google reviews appear automatically with zero cache purges.

WP Rocket, LiteSpeed Cache & Cloudflare APO Configuration

Exact performance rules so aggressive JavaScript delay, UCSS, and edge full-page caching never break your review widgets or delay above-the-fold strips.

WP Rocket

Delay JS Execution: Keep enabled for below-the-fold widgets. For above-the-fold hero carousels or WooCommerce strips, add the local script path below to Excluded JavaScript Files. Remove Unused CSS (RUCSS) requires zero safelisting.

LiteSpeed Cache (LSCWP)

JS Defer & Guest Mode: Safe out of the box with zero jQuery dependency conflicts. Exclude the local script path in Page Optimization → Tuning → JS Excludes only when rendering above the fold.

Cloudflare APO / Edge HTML

Zero Cache-Busting Required: Edge-cached HTML serves sub-50ms TTFB with Wave-1 SSR JSON-LD intact while fresh Google reviews hydrate asynchronously via edge SWR JSON.

WP-CLI Install & Optional Above-the-Fold Delay JS Exclusion Path

Copy the exact WordPress.org plugin install command and optional WP Rocket / LiteSpeed exclusion rule:

# Install via WP-CLI
wp plugin install gmbsync-reviews-widget-for-google --activate

# Optional WP Rocket / LiteSpeed exclusion (ONLY if widget sits above the fold)
gmbsync-reviews-widget-for-google/assets/js/widget.js

Benchmark Your Live Google Reviews Widget Before Installing

Scan any business on Google Maps to inspect GMBSync’s sub-15KB widget layouts and verify your Google Business Profile rating immediately.

WordPress Core Web Vitals & Caching FAQ

Why do remote SaaS review widgets like Elfsight or EmbedSocial hurt WordPress Mobile LCP and INP?

Remote SaaS widget loaders trigger multi-hop DNS and TLS connections to third-party CDNs, download 200KB to 420KB+ of framework and slider bundles, inject external web fonts, and execute long main-thread hydration tasks during initial paint — competing directly with hero images for bandwidth and blocking mobile touch responsiveness (INP).

How large is GMBSync’s widget script and does it load on every WordPress page?

GMBSync bundles assets/js/widget.js locally inside the plugin at 14.31 KB gzipped with zero jQuery, React, or external font dependencies. The script is conditionally registered and only enqueued on pages that render a GMBSync Gutenberg block, Elementor widget, shortcode, WooCommerce strip, or optional sitewide badge.

How should I configure WP Rocket Delay JS or LiteSpeed Cache JS Defer with GMBSync?

For below-the-fold review carousels and masonry grids, GMBSync works seamlessly with WP Rocket Delay JavaScript Execution and LiteSpeed Load JS Deferred with zero exclusions. Only add gmbsync-reviews-widget-for-google/assets/js/widget.js to JS exclusions if you render a strip or carousel strictly above the fold.

How does GMBSync keep Cumulative Layout Shift at 0.000 while reviews hydrate asynchronously?

GMBSync’s PHP renderer prints explicit inline min-height reservations on the mount container before JavaScript runs (54px for compact strips, 240px for carousels and grids) and swaps review cards in one scoped DOM pass using native CSS scroll-snap, preventing downstream content jumps.

Does Wave-1 SSR AggregateRating JSON-LD stay compatible with Cloudflare APO and full-page HTML caching?

Yes. GMBSync caches verified rating summaries in a single 6-hour WordPress transient (with a 15-minute failure backoff so origin TTFB is never stalled) and emits #gmbsync-ssr-schema directly inside the cached HTML response while live review cards hydrate asynchronously from edge-cached JSON without flushing page cache.