{"id":323165,"date":"2026-06-18T16:31:19","date_gmt":"2026-06-18T16:31:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/site-optimizer-by-beplus\/"},"modified":"2026-06-18T16:08:17","modified_gmt":"2026-06-18T16:08:17","slug":"beplus-performance-optimizer","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/beplus-performance-optimizer\/","author":15226952,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Beplus Performance Booster","header_author":"Minh BePlus","header_description":"Smart caching, JS\/CSS minification, lazy loading, and site cleanup in one lightweight plugin \u2014 frontend performance without touching the admin.","assets_banners_color":"61626c","last_updated":"2026-06-18 16:08:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/beplusthemes.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":38,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"minhphamit","date":"2026-06-18 16:08:17"}},"upgrade_notice":{"1.0.0":"<p>Initial release \u2014 no upgrade steps required.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3577552,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3577552,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3577552,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3577552,"resolution":"1","location":"assets","locale":"","width":1699,"height":837},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3577552,"resolution":"2","location":"assets","locale":"","width":1697,"height":783},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3577552,"resolution":"3","location":"assets","locale":"","width":1715,"height":836}},"screenshots":{"1":"<strong>Dashboard tab<\/strong> \u2014 Master cache toggle, one-click recommended-settings panel, and cache statistics.","2":"<strong>Cache Files tab<\/strong> \u2014 CSS and JS file minification options with cache-exclusion controls.","3":"<strong>Status tab<\/strong> \u2014 Live system status report covering PHP, WordPress, server environment, and plugin settings.","4":"<strong>Admin bar panel<\/strong> \u2014 Cache size and file count, colour-coded status dot, one-click Clear Cache button."}},"plugin_section":[],"plugin_tags":[146,4884,1736,187,247],"plugin_category":[52,54],"plugin_contributors":[267756],"plugin_business_model":[],"class_list":["post-323165","plugin","type-plugin","status-publish","hentry","plugin_tags-cache","plugin_tags-lazy-load","plugin_tags-minify","plugin_tags-optimization","plugin_tags-performance","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-minhphamit","plugin_committers-bearsthemes","plugin_committers-minhphamit"],"banners":{"banner":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/banner-772x250.png?rev=3577552","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/icon-128x128.png?rev=3577552","icon_2x":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/icon-256x256.png?rev=3577552","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/screenshot-1.png?rev=3577552","caption":"<strong>Dashboard tab<\/strong> \u2014 Master cache toggle, one-click recommended-settings panel, and cache statistics."},{"src":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/screenshot-2.png?rev=3577552","caption":"<strong>Cache Files tab<\/strong> \u2014 CSS and JS file minification options with cache-exclusion controls."},{"src":"https:\/\/ps.w.org\/beplus-performance-optimizer\/assets\/screenshot-3.png?rev=3577552","caption":"<strong>Status tab<\/strong> \u2014 Live system status report covering PHP, WordPress, server environment, and plugin settings."}],"raw_content":"<!--section=description-->\n<p>Beplus Performance Booster is a no-bloat performance plugin that gives you fine-grained\ncontrol over your site's front-end assets. All features can be toggled independently\nfrom a single settings page (Settings &gt; Beplus Performance Booster).<\/p>\n\n<p>All front-end optimisations are bypassed for logged-in administrators so you never\naccidentally break the admin panel or your own editing experience.<\/p>\n\n<p><strong>Feature summary:<\/strong><\/p>\n\n<ul>\n<li>JavaScript delay and defer with per-script exclude list<\/li>\n<li>CSS file and inline minification with cache<\/li>\n<li>Non-render-blocking stylesheet loading<\/li>\n<li>Lazy load images with IntersectionObserver fallback<\/li>\n<li>Remove emoji, wp-embed, Gutenberg CSS, WooCommerce assets on non-shop pages<\/li>\n<li>HTML minification and comment stripping<\/li>\n<li>Browser cache and gzip\/brotli rules via .htaccess<\/li>\n<li>Per-page option to disable the cache for specific posts\/pages<\/li>\n<\/ul>\n\n<h3>Settings Reference<\/h3>\n\n<p>Navigate to <strong>Settings &gt; Beplus Performance Booster<\/strong> to configure the plugin.<\/p>\n\n\n\n<h4>\u26a1 JavaScript Optimization<\/h4>\n\n<p><strong>Delay JS Execution<\/strong>\nDefault: off<\/p>\n\n<p>Delays all non-excluded front-end scripts until the first user interaction (click,\nscroll, keydown, or touchstart). After 5 seconds without interaction the scripts\nload automatically as a safety fallback. Best for scripts that are not needed until\nthe user actually engages with the page (e.g. chat widgets, marketing pixels).<\/p>\n\n<p><strong>Defer Non-Critical JS<\/strong>\nDefault: off<\/p>\n\n<p>Adds the <code>defer<\/code> attribute to every non-excluded <code>&lt;script&gt;<\/code> tag so scripts are\nfetched in parallel and executed after the HTML is parsed. jQuery and\njquery-migrate are always protected from deferral.<\/p>\n\n<p><strong>Exclude JS Files<\/strong>\nDefault: empty<\/p>\n\n<p>One URL keyword per line. Any script whose <code>src<\/code> attribute contains a listed\nkeyword is excluded from both Delay and Defer. Use this to protect scripts that\nmust run immediately (e.g. analytics that need to capture the first page view).<\/p>\n\n<p>Examples: <code>jquery<\/code>, <code>woocommerce<\/code>, <code>my-critical-script<\/code><\/p>\n\n\n\n<h4>\ud83c\udfa8 CSS Optimization<\/h4>\n\n<p><strong>Minify Inline CSS<\/strong>\nDefault: off<\/p>\n\n<p>Strips block comments (<code>\/* \u2026 *\/<\/code>), collapses redundant whitespace, and removes\ntrailing semicolons from every inline <code>&lt;style&gt;<\/code> block in <code>&lt;head&gt;<\/code>. License\ncomments (<code>\/*! \u2026 *\/<\/code>) are preserved. Spaces around <code>+<\/code> are intentionally kept\nso <code>calc(100% + 20px)<\/code> expressions are never broken.<\/p>\n\n<p><strong>Minify CSS Files<\/strong>\nDefault: off\nRequires: wp-content\/uploads\/bepluspb-cache\/ directory to be writable<\/p>\n\n<p>Minifies every enqueued external CSS file and serves the cached version from\n    wp-content\/uploads\/bepluspb-cache\/. Already-minified <code>*.min.css<\/code> files and\nexternal CDN stylesheets are skipped automatically. Cache files are named using a\n12-character content MD5 hash so they self-invalidate whenever the source changes.<\/p>\n\n<p><strong>Non-Render-Blocking CSS<\/strong>\nDefault: off<\/p>\n\n<p>Converts <code>&lt;link rel=\"stylesheet\"&gt;<\/code> tags to the preload + onload swap pattern:<\/p>\n\n<pre><code>&lt;link rel=\"preload\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\"&gt;\n&lt;noscript&gt;&lt;link rel=\"stylesheet\" ...&gt;&lt;\/noscript&gt;\n<\/code><\/pre>\n\n<p>This prevents stylesheets from blocking the initial render. A <code>&lt;noscript&gt;<\/code> fallback\nensures CSS loads correctly even when JavaScript is disabled.<\/p>\n\n<p>Tip: if you see a flash of unstyled content (FOUC), add your theme's main stylesheet\nURL keyword to the Exclude CSS Files list.<\/p>\n\n<p><strong>Exclude CSS Files<\/strong>\nDefault: empty<\/p>\n\n<p>One URL keyword per line. Stylesheets whose <code>href<\/code> contains a listed keyword are\nleft completely untouched by both the Non-Blocking and Minify CSS Files features.<\/p>\n\n\n\n<h4>\ud83d\uddbc\ufe0f Lazy Load Images<\/h4>\n\n<p><strong>Enable Lazy Loading<\/strong>\nDefault: off<\/p>\n\n<p>Adds <code>loading=\"lazy\"<\/code> to qualifying <code>&lt;img&gt;<\/code> tags found in post content, featured\nimages, widget text, and <code>&lt;picture&gt;<\/code> elements. For browsers that do not support the\nnative <code>loading<\/code> attribute, a small IntersectionObserver polyfill is injected into\n    wp_footer (activates only when native support is absent).<\/p>\n\n<p><strong>Skip First N Images<\/strong>\nDefault: 1<\/p>\n\n<p>Images 1 through N are marked <code>loading=\"eager\"<\/code> instead of <code>loading=\"lazy\"<\/code>.\nSet this to at least 1 to protect the hero\/LCP image from being lazy-loaded, which\nwould hurt Core Web Vitals. Accepts 0\u201320.<\/p>\n\n<p><strong>Exclude by CSS Class<\/strong>\nDefault: empty<\/p>\n\n<p>Comma-separated CSS class names. Any <code>&lt;img&gt;<\/code> that has one of these classes loads\neagerly (not lazily).<\/p>\n\n<p>Example: <code>hero-image, no-lazy, skip-lazy<\/code><\/p>\n\n<p><strong>Exclude by Element ID<\/strong>\nDefault: empty<\/p>\n\n<p>Comma-separated element IDs. Any <code>&lt;img&gt;<\/code> with a matching <code>id<\/code> attribute loads\neagerly.<\/p>\n\n<p>Example: <code>hero-banner, site-logo<\/code><\/p>\n\n<p><strong>Exclude by Filename<\/strong>\nDefault: empty<\/p>\n\n<p>Comma-separated partial filename strings. Any <code>&lt;img&gt;<\/code> whose <code>src<\/code> URL contains one\nof these strings loads eagerly.<\/p>\n\n<p>Example: <code>logo, hero, banner<\/code><\/p>\n\n\n\n<h4>\ud83d\uddd1\ufe0f Remove Unused Assets<\/h4>\n\n<p><strong>Remove Emoji Scripts<\/strong>\nDefault: off<\/p>\n\n<p>Removes the WordPress emoji detection script, its inline stylesheet, and the\n    s.w.org DNS prefetch hint. Safe to enable if you use real Unicode emoji in your\ncontent \u2014 browsers display them natively without the WordPress helper.<\/p>\n\n<p><strong>Remove oEmbed \/ wp-embed<\/strong>\nDefault: off<\/p>\n\n<p>Removes the <code>wp-embed.js<\/code> script and the oEmbed discovery links added to <code>&lt;head&gt;<\/code>.\nAlso unregisters the oEmbed REST API endpoint. Disable only if you rely on\nembedding your WordPress posts inside other websites.<\/p>\n\n<p><strong>Remove Block \/ Gutenberg CSS<\/strong>\nDefault: off<\/p>\n\n<p>Dequeues <code>wp-block-library<\/code>, <code>wp-block-library-theme<\/code>, and <code>global-styles<\/code>\nstylesheets on the front-end. Disable if your theme or content depends on\nGutenberg block styles.<\/p>\n\n<p><strong>Disable WooCommerce Assets on Non-Shop Pages<\/strong>\nDefault: off\nRequires: WooCommerce active<\/p>\n\n<p>Dequeues WooCommerce scripts and styles on pages that are unrelated to the shop,\ncart, checkout, or account. WooCommerce assets are always kept on those pages.<\/p>\n\n\n\n<h4>\ud83d\udcc4 HTML Optimization<\/h4>\n\n<p><strong>Minify HTML Output<\/strong>\nDefault: off<\/p>\n\n<p>Collapses redundant whitespace between HTML tags in the full page output. Content\ninside <code>&lt;pre&gt;<\/code>, <code>&lt;textarea&gt;<\/code>, <code>&lt;script&gt;<\/code>, and <code>&lt;style&gt;<\/code> tags is always preserved\nexactly as-is.<\/p>\n\n<p><strong>Remove HTML Comments<\/strong>\nDefault: off<\/p>\n\n<p>Strips HTML comments (e.g. theme generator tags, plugin banners) from the page\noutput. Conditional IE comments are also removed.<\/p>\n\n<p><strong>Remove Inline JS Comments<\/strong>\nDefault: off<\/p>\n\n<p>Removes <code>\/\/<\/code> single-line and <code>\/* \u2026 *\/<\/code> block comments from inline <code>&lt;script&gt;<\/code>\nblocks in the HTML output. String literals and template literals are never\nmodified. License comments (<code>\/*! \u2026 *\/<\/code>) are preserved.<\/p>\n\n<p><strong>Remove Inline CSS Comments<\/strong>\nDefault: off<\/p>\n\n<p>Removes <code>\/* \u2026 *\/<\/code> block comments from inline <code>&lt;style&gt;<\/code> blocks in the HTML output.<\/p>\n\n\n\n<h4>\ud83d\ude80 Browser Cache Headers (.htaccess)<\/h4>\n\n<p><strong>Enable Browser Caching<\/strong>\nDefault: off\nRequires: Apache with mod_expires, mod_headers, mod_deflate. .htaccess writable.<\/p>\n\n<p>Injects the following directives into the root <code>.htaccess<\/code> file inside a clearly\nlabelled block that is never duplicated:<\/p>\n\n<ul>\n<li><strong>Gzip compression<\/strong> (mod_deflate) for HTML, CSS, JS, JSON, SVG, and fonts.<\/li>\n<li><strong>Brotli compression<\/strong> (mod_brotli, Apache 2.4.26+) for the same types.<\/li>\n<li><strong>Expires headers<\/strong> (mod_expires): 1-year cache for static assets; no-cache\nfor HTML and API responses.<\/li>\n<li><strong>Cache-Control headers<\/strong> (mod_headers): <code>max-age=31536000, public, immutable<\/code>\nfor CSS, JS, images, and fonts.<\/li>\n<\/ul>\n\n<p>Disabling this option or deactivating the plugin removes the injected block cleanly.<\/p>\n\n\n\n<h4>\ud83d\udce6 JS File Minification &amp; Cache<\/h4>\n\n<p><strong>Minify JS Files<\/strong>\nDefault: off\nRequires: wp-content\/uploads\/bepluspb-cache\/ directory to be writable<\/p>\n\n<p>Minifies every enqueued JavaScript file using a safe character-by-character comment\nstripper that correctly handles string literals, template literals, and URL protocol\nslashes (<code>https:\/\/<\/code>). Already-minified <code>*.min.js<\/code> files and external CDN scripts are\nskipped. Cache files use a 12-character content MD5 hash for automatic cache busting.<\/p>\n\n<p>Lines are never joined to avoid breaking JavaScript's Automatic Semicolon Insertion\n(ASI) rules.<\/p>\n\n<p><strong>Cache Status<\/strong><\/p>\n\n<p>Shows how many CSS and JS files are currently stored in the cache directory\n(<code>wp-content\/uploads\/bepluspb-cache\/<\/code>). Use the \"Clear CSS\/JS Cache\" button to delete\nall cached files; they are regenerated on the next page load.<\/p>\n\n<p>The \"Beplus Performance Booster\" item in the WordPress admin bar (visible to administrators on\nboth the front-end and back-end) shows cache size and file count in a dropdown panel\nand provides a one-click button to clear the cache.<\/p>\n\n\n\n<h4>Per-Page Cache Disable (Meta Box)<\/h4>\n\n<p>Every post and page edit screen includes a \"Beplus Performance Booster\" meta box in the sidebar.\nChecking <strong>Disable CSS\/JS cache optimizations for this page\/post<\/strong> stores the\n    _bepluspb_disable_cache flag in post meta. When set, the Minify CSS Files and Minify\nJS Files features are bypassed for that specific URL and the original (unminified)\nfiles are served instead. Useful for debugging or resolving conflicts on a specific\npage without disabling minification site-wide.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>beplus-performance-booster<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Navigate to <strong>Settings &gt; Beplus Performance Booster<\/strong> to configure each feature.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20this%20plugin%20slow%20down%20my%20admin%20panel%3F\"><h3>Will this plugin slow down my admin panel?<\/h3><\/dt>\n<dd><p>No. Every optimisation hook is guarded by <code>is_admin()<\/code> and an additional check that\nskips users with the <code>manage_options<\/code> capability on the front-end.<\/p><\/dd>\n<dt id=\"i%20see%20a%20flash%20of%20unstyled%20content%20%28fouc%29%20after%20enabling%20non-render-blocking%20css.\"><h3>I see a flash of unstyled content (FOUC) after enabling Non-Render-Blocking CSS.<\/h3><\/dt>\n<dd><p>Add a URL keyword for your theme's main stylesheet to the <strong>Exclude CSS Files<\/strong>\ntextarea. That file will be loaded normally while the rest are deferred.<\/p><\/dd>\n<dt id=\"the%20browser%20cache%20option%20says%20my%20.htaccess%20is%20not%20writable.\"><h3>The Browser Cache option says my .htaccess is not writable.<\/h3><\/dt>\n<dd><p>Your server's file permissions do not allow PHP to write to <code>.htaccess<\/code>. Set the\nfile to 644 (or ask your host) and try again, or add the rules manually.<\/p><\/dd>\n<dt id=\"where%20are%20the%20minified%20css%2Fjs%20cache%20files%20stored%3F\"><h3>Where are the minified CSS\/JS cache files stored?<\/h3><\/dt>\n<dd><p>In <code>wp-content\/uploads\/bepluspb-cache\/<\/code> \u2014 inside your <code>wp-content<\/code> directory. The directory\nis created automatically with an <code>index.php<\/code> stub (to prevent directory listing) and\na <code>.htaccess<\/code> stub (to block direct PHP execution).<\/p><\/dd>\n<dt id=\"is%20woocommerce%20required%3F\"><h3>Is WooCommerce required?<\/h3><\/dt>\n<dd><p>No. The WooCommerce asset-removal option is only applied when WooCommerce is active.\nAll other features work independently.<\/p><\/dd>\n<dt id=\"can%20i%20use%20this%20plugin%20alongside%20a%20caching%20plugin%3F\"><h3>Can I use this plugin alongside a caching plugin?<\/h3><\/dt>\n<dd><p>Yes. The .htaccess browser-caching rules complement full-page caches (LiteSpeed\nCache, W3 Total Cache, WP Super Cache, etc.). The JS\/CSS optimisations operate at\nthe PHP output level and work with most caching setups.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20my%20settings%20when%20i%20delete%20the%20plugin%3F\"><h3>What happens to my settings when I delete the plugin?<\/h3><\/dt>\n<dd><p>The <code>uninstall.php<\/code> script removes all plugin data: the <code>bepluspb_settings<\/code> option, the\ninjected <code>.htaccess<\/code> rules, every file in <code>uploads\/bepluspb-cache\/<\/code>, and the\n    _bepluspb_disable_cache post meta from every post.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>JavaScript delay and defer with per-script exclude list.<\/li>\n<li>CSS inline minification and non-render-blocking preload swap.<\/li>\n<li>CSS file minification with content-hash disk cache.<\/li>\n<li>JS file minification with safe comment stripper (respects string literals, ASI).<\/li>\n<li>Native lazy loading for <code>&lt;img&gt;<\/code> and <code>&lt;picture&gt;<\/code> elements.<\/li>\n<li>IntersectionObserver polyfill for lazy load in older browsers.<\/li>\n<li>Skip first N images (LCP protection), exclude by class \/ ID \/ filename.<\/li>\n<li>Remove emoji, wp-embed, Gutenberg block CSS, WooCommerce assets on non-shop pages.<\/li>\n<li>HTML minification and comment\/JS-comment\/CSS-comment stripping.<\/li>\n<li>Browser cache and gzip\/brotli rules injected into .htaccess via insert_with_markers().<\/li>\n<li>Admin bar \"Beplus Performance Booster\" menu with cache size\/file count panel and one-click clear.<\/li>\n<li>Per-page cache-disable meta box on all public post type edit screens.<\/li>\n<li>Uninstall script cleans up all options, rules, cache files, and post meta.<\/li>\n<\/ul>","raw_excerpt":"Lightweight WordPress optimizer with JS\/CSS minification, lazy loading, asset cleanup, and browser cache headers. Zero dependencies.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/323165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=323165"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bearsthemes"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=323165"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=323165"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=323165"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=323165"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=323165"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=323165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}