跳到内容

BlockGlow — Enhance, Optimize & Protect

v2.1.0

Mary Rose Elbambo · 2026年1月9日 上架

Enhance, optimize, and protect your WordPress website with block-level CSS customization, performance tools, and security features.

正在使用
10 以下
评分
暂无
累计下载
813
最近更新
2026年11月16日
需要 WordPress 6.6+已测试到 7.1.5PHP 8.2+

BlockGlow extends the WordPress Block Editor with tools for customizing, optimizing, and protecting your website.

Originally built as a per-block Custom CSS solution for Gutenberg, BlockGlow has evolved into a lightweight toolkit for block customization, performance optimization, and spam protection.

Features include:

  • Per-block Custom CSS with automatic CSS scoping.
  • Live CSS preview inside the block editor.
  • CSS validation and property validation.
  • Automatic CSS file generation and management.
  • LCP (Largest Contentful Paint) resource detection and preloading.
  • Automatic fetchpriority=”high” support for critical images.
  • Honeypot protection for Simple Membership forms.
  • Cloudflare Turnstile integration for Simple Membership forms.
  • CSS file management tools.
  • Secure file handling and capability checks.
  • Content Slider, Filter, Social Share, Table of Contents and Related Posts blocks.
  • Query Loop search, taxonomy filters and sorting.
  • Theme color, font, gradient and shadow presets in the Custom CSS editor.
  • Block animation settings with a preview.
  • Reviewed uploads cleanup and optional image filename renaming.

Enhance

BlockGlow adds a “BlockGlow — Custom CSS” panel to the inspector of Gutenberg blocks.

Use the Custom CSS editor to apply styles to an individual block without affecting other instances of the same block.

Features include:

  • Per-block Custom CSS.
  • Automatic CSS scoping using a unique BlockGlow ID.
  • Live CSS preview inside the block editor.
  • CSS validation.
  • CSS property validation.
  • CodeMirror-based editor when available.
  • Fallback textarea editor with Tab and Shift+Tab support.
  • Automatic CSS file generation.
  • CSS file cleanup when styles are removed.
  • Graceful fallback to inline styles when CSS file generation is unavailable.
  • CSS Manager for managing generated CSS files.
  • Popup CSS editing for updating CSS from other blocks when supported.

Optimize

BlockGlow includes performance tools designed to help improve page loading and Core Web Vitals.

Current optimization features include:

  • LCP resource detection.
  • LCP image preloading.
  • Automatic fetchpriority=”high” support for critical images.
  • Optional LCP preload support for selected post types.
  • LCP analysis and re-analysis tools.
  • Saved LCP resource management.

When LCP preload is enabled, open the page while signed in as a user who can edit it. BlockGlow detects and saves the LCP resource URL for subsequent preloading. Anonymous visitors cannot change the saved resource.

Protect

BlockGlow includes optional protection features designed to help reduce automated spam submissions and registrations.

Current protection features include:

  • Honeypot protection for Simple Membership forms.
  • Cloudflare Turnstile integration for Simple Membership forms.

These protection features can be enabled and configured from the BlockGlow administration area.

External Services

BlockGlow optionally integrates with Cloudflare Turnstile to provide spam and abuse protection for supported Simple Membership forms.

Cloudflare Turnstile is only used when the Cloudflare Turnstile protection feature is enabled and configured by the site administrator.

When enabled, BlockGlow loads the Cloudflare Turnstile JavaScript from Cloudflare’s servers. When a user interacts with a protected form, Turnstile generates a verification token. BlockGlow sends the token to Cloudflare’s Turnstile verification service to verify the request.

Service:
https://www.cloudflare.com/products/turnstile/

Turnstile documentation:
https://developers.cloudflare.com/turnstile/

Cloudflare Privacy Policy:
https://www.cloudflare.com/privacypolicy/

Cloudflare Terms of Service:
https://www.cloudflare.com/terms/

Please review Cloudflare’s documentation and policies for information about how Cloudflare processes data when Turnstile is used.

How CSS Scoping Works

BlockGlow creates a unique BlockGlow ID for each block instance and uses it to scope custom CSS.

For example:

[data-blockglow-id="bg-xxxxxxx"] h2 {
    color: red;
}

The CSS is scoped to the individual block instance so that styles do not unintentionally affect other blocks.

You can also use & as a shorthand for the BlockGlow wrapper in the Custom CSS editor.

Example:

& .my-class {
    color: red;
}

BlockGlow automatically replaces & with the appropriate BlockGlow selector for the editor preview and front-end output.

Content Slider Block

Insert BlockGlow Content Slider to create a vertical or horizontal scrolling showcase. Add any Gutenberg blocks inside each Slide. Customize the viewport, slide width, spacing, speed and centre emphasis in the sidebar. Add separate Heading or Paragraph blocks above it when needed. Motion pauses on hover/focus and respects reduced-motion preferences. Slides stay still while editing; preview the page to see auto-scroll. Built-in pause/play and previous/next controls need no third-party carousel library.

Image Filename Renaming

Enable image filename renaming under BlockGlow > Optimize, then reload the editor. Select an Image block and open Image filename – BlockGlow to preview and rename its Media Library file and generated sizes without re-uploading. Stored URLs are updated while the attachment ID, alt text and caption are preserved. Back up first: shared image uses are affected, and external/hard-coded URLs may need updating. Clear page/CDN caches afterwards; old-URL redirects are not created.

Uploads Cleanup

Open BlockGlow > Optimize > Uploads Cleanup to scan for possible orphan images.

Choose 10, 20, 50 or 100 images per load, then use Load more to continue. Select all loaded images selects only the cards already visible, leaving newly loaded candidates unselected. An optional generated-size audit finds obsolete derivative files while protecting Media Library metadata/srcset sizes and active registered sizes. An unused original’s generated sizes are removed with its Media Library record; orphan derivative candidates can be removed separately while keeping the original.

Enable Daily background pre-scan to prepare a review grid automatically. The daily scan runs in small cron batches and includes Media Library images. The latest completed report and timestamp are shown on Optimize. No scheduled deletion is performed. Sites with WordPress cron disabled need a server cron runner.
The scan checks JPG, PNG, GIF, WebP and AVIF images older than 30 days in dated upload folders. Review candidates in a thumbnail grid. Optionally include Media Library images; filenames and image IDs are checked across pages, custom post types, saved header/footer templates, custom fields, settings and active theme files. Plugin-managed folders are excluded.

Back up uploads and review each candidate before confirming permanent deletion. Dynamic references, plugin source code, external sites and remote storage cannot be fully detected. Deleting a Media Library candidate also removes its record and generated sizes. No files are deleted automatically. This tool cleans only the WordPress installation where it is running.

Support

BlockGlow is actively developed with a focus on helping WordPress users enhance, optimize, and protect their WordPress websites.

Feature requests, bug reports, and suggestions are welcome.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums