=== BerqWP: Page Speed, Cache and Core Web Vitals Optimization === Contributors: berqwp, thevisionofhamza Tags: optimize, cache, pagespeed, performance, speed Requires at least: 5.3 Tested up to: 7.1 Stable tag: 5.0.1 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Speed up WordPress and pass Core Web Vitals. Privacy first, optimized on your own server. SEO first, crawlers see every page in full. == Description == **A faster WordPress site in minutes, with nothing to configure.** [BerqWP](https://berqwp.com/?utm_source=wordpress-repo) caches and optimizes every page of your site, right on your own server, using the techniques Google recommends on [web.dev](https://web.dev/performance). Pages load faster, Core Web Vitals improve and visitors stay longer. Install it and it gets to work. **Free to start, ready to grow** - **BerqWP Basic**, this plugin, is free and unlimited. No account, no license key and no page limits. - **BerqWP Premium** adds the optimizations that take a site to 90+ on mobile, like Remove Unused CSS, Delay JavaScript, the BerqWP CDN and next gen images. It's a separate plugin that comes with a [paid plan](https://berqwp.com/pricing/?utm_source=wordpress-repo). You'll see the difference wherever you test: [Google PageSpeed Insights](https://pagespeed.web.dev/), [GTmetrix](https://gtmetrix.com/), [Pingdom](https://tools.pingdom.com/) and the rest all measure pages the same way. ## 🔒 Privacy first BerqWP optimizes your pages on your own server, not in someone else's cloud. - **No cloud processing.** Caching and CSS and JavaScript optimization all run on your server. - **Image conversion is the one exception.** With Image Optimization in BerqWP Premium, BerqWP's servers fetch your public images and convert them to WebP or AVIF. The converted images are then stored and served from your own site. - **The BerqWP CDN is optional.** It's off by default. If you turn it on, your static files are served from BerqWP's CDN. - **No calls to Google Fonts and similar services.** Self-host External Assets serves those files from your own site. - **Your Web Vitals stay with you.** Visitor data is stored on your site, not sent to us. - **Nothing in the background.** BerqWP Basic only contacts the services listed under External Services below, and only when you use them. ## 🔎 SEO first - **Crawler-Ready Pages.** Search engine crawlers get your cached pages with lazy loading undone, so they see every image and every section at once. On by default. - **The same page for everyone.** Crawlers and visitors get the same content, with no tricks and no separate versions. - **Better Core Web Vitals.** Google uses page experience in its rankings, and BerqWP works on all three Core Web Vitals. - **Changes show up right away.** When you edit a post, BerqWP refreshes it along with its category, tag and author pages, so search engines crawl the new version. ## 💙 Why site owners choose BerqWP - **Nothing to set up.** The defaults work for nearly every site, so there are no settings to learn. - **Built not to break your site.** Try any change in Sandbox Mode before a single visitor sees it. - **Works with what you already use.** Popular themes and page builders, WooCommerce, multilingual plugins, Cloudflare and MainWP. ## 🔥 What you get for free with BerqWP Basic - **Page Cache With Automatic Preload:** Every page gets a ready made copy, built in the background before your visitors ask for it. - **Smart Cache Updates:** Edit a post and BerqWP refreshes it with its category, tag, author and translated pages. Unpublished or deleted pages leave the cache right away. - **Server-side Cache:** Cached pages are served before WordPress and the database load, or straight by Apache or Nginx, so pages start arriving within milliseconds. - **Cloudflare Edge Cache:** Serve your pages from Cloudflare's servers, close to every visitor. BerqWP sets up the cache rule and keeps Cloudflare up to date. [See the setup guide](https://berqwp.com/help-center/cloudflare-edge-cache/?utm_source=wordpress-repo). - **Lazy Load Images, Videos and Embeds:** Images, YouTube videos, Google Maps and other embeds wait until a visitor scrolls to them. - **Self-host External Assets:** Google Fonts and other outside files are served from your own site. - **Speculative Loading:** The page a visitor is about to open starts loading in the background, so it appears almost instantly. - **Crawler-Ready Pages:** Search engine crawlers get your cached pages with lazy loading undone, so they see all of your content at once. - **Dynamic Caching and URL Parameters:** Decide which URL parameters get their own cached copy and which ones are ignored. - **Sandbox Mode:** Test BerqWP's optimizations while logged in, without changing anything for your visitors. - **Database Optimization:** Clear out revisions, drafts, trash and expired data on a schedule. - **Debloat:** Switch off WordPress features most sites don't need, like the Heartbeat API, emojis, embeds, XML-RPC and self pingbacks. - **Made for agencies:** Multisite networks, WP-CLI commands, MainWP support and white label. ## 🚀 What BerqWP Premium adds - **Four Optimization Modes:** Choose how far each site goes, from safe and steady to the fastest possible. - **Remove Unused CSS:** Each page carries only the CSS it actually uses, so it can appear without waiting for full stylesheets. - **Delay JavaScript:** Scripts wait for the visitor's first interaction, which removes most of the work that blocks a page. That first tap or click still counts, it runs as soon as the scripts are ready. - **Delay Third-Party Scripts:** Analytics, chat widgets and ad pixels load after the first interaction, not before your content. - **Above the Fold Optimization:** BerqWP learns what each page shows first on mobile and desktop, then preloads exactly that image and those fonts. - **Image Optimization:** Fluid images sized for every screen, or next gen WebP and AVIF images that are far smaller than JPEG and PNG. - **BerqWP CDN:** Images, CSS, JavaScript and fonts load from Cloudflare's global network, close to every visitor. - **Preload Cookie Banner:** Your cookie banner shows right away, even with JavaScript delayed. Works with CookieYes, Complianz, Real Cookie Banner, CYTRIO, My Agile Privacy and GetTerms. - **Lazy Render Below the Fold:** Sections further down the page are drawn only when a visitor gets close to them. - **Web Vitals:** See the Core Web Vitals your real visitors experience, stored on your own site. ## 👩‍💻 Real User Success Stories * **★★★★★ [BerqWP beat NitroPack, LiteSpeed Cache, WP Rocket, Perfmatters, FlyingPress….](https://wordpress.org/support/topic/berqwp-beat-nitropack-litespeed-cache-wp-rocket-perfmatters-flyingpress/)** _"BerqWP beat NitroPack, LiteSpeed Cache, WP Rocket, Perfmatters, FlyingPress, W3 Total Cache, Super Cache and more. On their homepage you can test your site speed and they will show you the expected Page Speed Insights score. In my experience, once BerqWP plugin is installed, your PSI scores will be higher than their estimate. Connect your Cloudflare free account and get Edge Page Caching. Then set to Aggressive mode and enjoy higher scores without changing a single setting. BerqWP is Voodoo Magic!"_ * **★★★★★ [Consistent 100/100 score, Great support](https://wordpress.org/support/topic/consistent-100-100-score-great-support/)** _"I have tried multiple caching software programs, but none of them were so easy to set up, and the results are incomparable! I have reached out several times to the support. They always respond, sometimes you have to wait (decent time), sometimes within a day they respond and solve your issue instantly. Keep up the good work!"_ * **★★★★★ [Working really great](https://wordpress.org/support/topic/working-really-great/)** _"Just bought the pro plugin and started using it replacing the 10web io which was great but expensive for me, I was just a little worried whether this one would work ok without conflicting with my current plugins so i tested the free version first and it worked fine. Good customer support as well. I would recommend the pro plugin but try the free one first and then decide."_ * **★★★★★ [A must have](https://wordpress.org/support/topic/a-must-have-532/)** _"It’s been a while without writing a review from my side, but BerqWP deserves my 5 stars.It’s incredible easy to use, seriously, a newbie could make it work easily. It improves loading times dramatically, to the point that I don’t really understand what’s the magic behind it (I’m not joking). I always thought that a bit more speed could be achieved at my websites, but not this much. I wasn’t aware that the servers that I use for my sites were capable of this speeds, and I always thought that part of the issue was using medium servers instead of top notch ones.Thank you so much guys! Keep doing your magic, I’ll spread the word about you as I really want you to succeed and last forever. Oh, and I really can’t believe how your plugin can exceed that much what other premium plugins achieve (I tried quite a few)."_ * **★★★★★ [Plugin is incredibly easy to use](https://wordpress.org/support/topic/plugin-is-incredibly-easy-to-use/)** _"The BerqWP plugin is incredibly easy to use, even for those who are not optimization experts. The setup is intuitive, and it works flawlessly, even on websites built with Elementor Pro, without causing any issues. Additionally, their support team is active and consistently responds to inquiries promptly, instilling confidence in the service."_ **[See all reviews](https://wordpress.org/support/plugin/searchpro/reviews/)** ## How Does BerqWP Work? * When a page is visited for the first time or changes, BerqWP adds it to a queue. * The queue builds an optimized copy of each page, one at a time, in the background. * That copy is stored as cache and served to every visitor. * When something changes, BerqWP refreshes the pages it affects, including the copies Cloudflare or your host keeps. ## ✅ Built for Core Web Vitals Google's Core Web Vitals measure how fast your pages appear, respond and settle. BerqWP works on all three. **Largest Contentful Paint (LCP), how fast the main content appears** * **Page cache:** Pages arrive ready made, so the browser starts sooner. * **LCP preload (Premium):** The main image on each page is fetched first. * **Next gen images (Premium):** WebP and AVIF images are much smaller than JPEG and PNG. * **Lazy loading:** Images further down the page wait until they're needed. **Interaction to Next Paint (INP), how fast the page responds** * **Deferred JavaScript:** BerqWP Basic loads scripts without holding up the page. * **Delay JavaScript (Premium):** Scripts wait for the first interaction, so the page is ready to respond right away. **Cumulative Layout Shift (CLS), how still the page stays** * **Image dimensions:** Images get a width and height, so the page doesn't jump while they load. * **Font display (Premium):** Text shows right away in a fallback font while your web fonts load. ## ✅ Four Optimization Modes BerqWP offers four [optimization modes](https://berqwp.com/help-center/berqwp-optimization-modes/). BerqWP Basic runs Smart, BerqWP Premium lets you choose: * **Standard**: the essentials, like page cache, image optimization and URL prefetch. * **Smart**: a very stable mode for most sites, with deferred JavaScript. * **Blaze**: design first, with prioritized CSS and delayed third-party scripts. * **Turbo**: the fastest, with as few requests as possible on the first load. Start with **Turbo** for the best results. If a page needs it, step down to Blaze or Smart. ## ⚙️ Get Started in 3 Steps 1. Deactivate any other speed optimization plugin, then install and activate BerqWP. 2. The welcome screen tests your homepage and shows how much faster BerqWP makes it. Caching starts right away. 3. Want more speed? Connect your berqwp.com account on the License page, install BerqWP Premium and pick the **Turbo** mode. ## 📌 Support If something doesn't look right, turn on **Sandbox Mode** and open a support ticket. **BerqWP Premium** users also get our dedicated support center. **Get BerqWP and give your visitors a faster site today.** == Installation == 1. In WordPress, go to **Plugins › Add New**, search for BerqWP and click **Install Now**. Or upload the plugin files to `/wp-content/plugins/searchpro`. 2. Activate the plugin on the **Plugins** screen. 3. Follow the welcome screen. BerqWP starts caching as soon as it's active. == Frequently Asked Questions == = Why is the plugin slug searchpro when your product is called BerqWP? = Early in development we registered our plugin under the searchpro namespace on WordPress.org. Unfortunately, WordPress.org doesn’t allow slugs to be renamed once created. Rest assured, this is only a directory name. Every feature, every update, and every bit of our branding is still BerqWP. You won’t see “Search Pro” anywhere in the UI, URLs, or your dashboards after installation. = How does BerqWP work? = BerqWP optimizes your pages on your own server and stores the results as cache. A queue builds them one page at a time in the background, so your site stays responsive while it works. = Will BerqWP slow down my server? = No. Pages are optimized one at a time in the background, and once cached, they're served without loading the database. = What are the requirements to run BerqWP? = A WordPress site running PHP 7.4 or newer. = What will I get in the free version? = BerqWP Basic is free and unlimited, with no account needed. It includes the page cache with automatic preload, server-side cache, Cloudflare Edge Cache, lazy loading, self-hosted external assets, database optimization and more. BerqWP Premium, a separate plugin with a paid plan, adds Remove Unused CSS, Delay JavaScript, the BerqWP CDN, image optimization and the other Premium features. = Can I test BerqWP without affecting my visitors? = Yes. Turn on Sandbox Mode and your visitors keep getting your site as it is. While logged in as an admin, add ?berqwp to any address to see the optimized version. = Which web servers are supported? = Apache, Nginx and LiteSpeed. = Do I get BerqWP CDN on all plans? = The BerqWP CDN comes with every BerqWP Premium plan. Turn it on or off on the CDN page of the plugin settings. = Does BerqWP CDN support background images? = Yes, including lazy loaded background images. = Can I use any external CDN if I want to? = Yes. You can use any CDN you like, and CDN plugins work with BerqWP too. = Does BerqWP work with Cloudflare? = Yes. Connect Cloudflare on the Integration page with an API token and BerqWP serves your cached pages from Cloudflare's edge, sets up the cache rule and clears pages from Cloudflare when they change. It works on every Cloudflare plan, including Free. [See the setup guide](https://berqwp.com/help-center/cloudflare-edge-cache/?utm_source=wordpress-repo). = Will my plan be renewed automatically? = Yes, BerqWP Premium plans renew automatically. = Can I use the Speculative Loading plugin with BerqWP? = There's no need. BerqWP already includes the URL prefetching that the Speculative Loading plugin adds. = Which hosting providers are supported? = Any host. If your host has its own built-in speed optimizer, turn it off so the two don't overlap. = Are multilingual and e-commerce websites supported? = Yes. BerqWP works with WooCommerce and with multilingual plugins like WPML, Polylang and TranslatePress. = What if I need support? = Our support team is ready to help with anything BerqWP related. = I use BerqWP Basic and need help. = Please open a support ticket at https://wordpress.org/support/plugin/searchpro/ and we'll help you there. = Where do I report security bugs found in this plugin? = Please report security bugs found in the source code of the BerqWP plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/1f596c21-7f77-46cf-a109-eaf488b31eca). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin. == External Services == BerqWP optimizes your pages on your own server. BerqWP Basic only connects to the services below, and only in the cases described. = BerqWP API (berqwp.com) = Used for: Checking a BerqWP Premium license, once a day and when you activate or deactivate it, and connecting your berqwp.com account from the License page or the welcome screen. Data sent: Your license key and your site's address. Only when you add a license or connect your account. = Google PageSpeed Insights (googleapis.com) = Used for: The speed test on the welcome screen, which shows your homepage's mobile score without optimization and with BerqWP. Data sent: Your homepage's address, from your browser, only while the welcome screen runs the test. [Google Terms of Service](https://policies.google.com/terms), [Google Privacy Policy](https://policies.google.com/privacy) = Cloudflare API (api.cloudflare.com) = Used for: The Cloudflare Edge Cache integration. BerqWP reads your zones, keeps its cache rule in your zone and clears changed pages from Cloudflare's cache. Data sent: Your API token, your zone ID and the addresses of the pages being cleared. Only after you connect Cloudflare on the Integration page. [Cloudflare Terms](https://www.cloudflare.com/website-terms/), [Cloudflare Privacy Policy](https://www.cloudflare.com/privacypolicy/) = Self-hosted assets = With Self-Host External Assets on, BerqWP downloads the fonts, scripts and stylesheets your pages already load from other sites (like Google Fonts) and serves them from your site. It requests those files from the same servers your visitors' browsers would. BerqWP Premium, a separate plugin, adds optional services: the BerqWP CDN (static.berqwp.com) and image conversion (images.berqwp.com). They're off until you turn them on. Their data use is described in BerqWP Premium. - [BerqWP Terms and Conditions](https://berqwp.com/terms-conditions/) - [BerqWP Privacy Policy](https://berqwp.com/privacy-policy/) == Upgrade Notice == = 5.0.1 = Fixes inline scripts that were cut off on some pages, and a cache queue that could keep the CPU busy when a site removed BerqWP's query string. Recommended for everyone on 5.0.0. = 5.0.0 = Premium features now come in a separate plugin, BerqWP Premium. If you have a BerqWP license, download BerqWP Premium from your berqwp.com account after updating to keep them. Click Flush cache once after updating. == Compatibility == BerqWP works with all WordPress themes, plugins and hosting providers. The one exception is other speed and caching plugins, since they do the same job, so deactivate them before you start. If your host has its own built-in speed optimizer, turn it off too. Tested and supported, among many others: **Themes:** Astra, GeneratePress, Divi, OceanWP, Kadence, Neve, Blocksy, Hello Elementor, Delta **Plugins:** Yoast SEO, Rank Math, All in One SEO, WooCommerce, Elementor, Divi Builder, Polylang, WPML, TranslatePress, Cloudflare, Complianz, CookieYes, MainWP == Other Products == Also check out our other WordPress products. - [WP Replai](https://wpreplai.com/): The skills-powered AI customer support agent that lives inside your site, answering questions, walking visitors through fixes, qualifying leads, and only escalating to your team when it truly should. - [ElizaWP](https://elizawp.com/): SEO MCP for AI agents that researches, writes and publishes for WordPress. - [Berq Markdown](https://wordpress.org/plugins/berq-markdown/): Automatically generate markdown version of web pages for AI agents. - [Berq Used CSS](https://wordpress.org/plugins/berq-used-css/): Remove unused CSS automatically. - [CanvoWP](https://canvowp.com/): Completely free Agent-first website builder plugin. No blocks, no bloat. - [Camouflage Security](https://wordpress.org/plugins/camouflage/): Static WordPress Firewall and PHP Isolation. - [Barlapse](https://wordpress.org/plugins/barlapse/): Fix admin bar overflow issue in WordPress admin panel. - [Seenli Blocks](https://wordpress.org/plugins/seenli-blocks/): Conditional display blocks for logged in users & user roles. - [Footloom Analytics](https://wordpress.org/plugins/footloom/): Self-Hosted Google Analytics Alternative == Screenshots == 1. Lightning fast cache for instant page loading. Cache lifespan, Crawler-Ready Pages and Dynamic Caching on the Cache page. 2. Serve crisp, sharp, next gen images. Fluid images, next gen formats and the max image width on the Media page. 3. Make your webpages lightweight. Remove Unused CSS and how your CSS and JavaScript load. 4. Privacy, SEO and performance. The dashboard shows your optimization queue and lets you pick an optimization mode. == Changelog == = 5.0.1 = * [Bug] Inline scripts with "