WP Manifestindependent plugin directory
manifest / performance / critical-css-wp

Critical CSS for WP WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Critical CSS for WP — Generate and inject critical CSS for WordPress pages via a configurable API endpoint

★ 0stars
v0.2.13latest · 2mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gmatta01/critical-css-wp/archive/refs/heads/main.zip
Updates itself. It ships its own updater, so new versions appear under Dashboard → Updates.

Critical CSS for WP generates and stores critical CSS for published WordPress content using a configurable HTTP API endpoint. It injects the generated CSS inline on the frontend and can defer render-blocking styles when a page has critical CSS available.

Features

  • Generates CSS for published posts, pages, and other public post types
  • Stores generated CSS in post meta using the _critical_css key
  • Injects the CSS inline in the page head via wp_head
  • Defers non-critical enqueued styles using the media="print" onload="this.media='all'" pattern
  • Supports manual regeneration from the settings screen, bulk actions, and single-post actions
  • Uses WP Cron for scheduled regeneration with configurable intervals and thresholds
  • Provides a settings page under Settings → Critical CSS

Configuration

  1. Activate the plugin.
  2. Open Settings → Critical CSS.
  3. Set the API URL for the critical CSS service.
  4. Select enabled post types.
  5. Save the settings and trigger a manual regeneration if needed.

Notes

  • The API endpoint is configurable so it can be changed later without changing code.
  • The plugin keeps the implementation simple and extendable for future API changes.
  • Logs are written to the WordPress debug log when WP_DEBUG and WP_DEBUG_LOG are enabled.

Releases

10 releases.

Tag
Published
v0.2.13 latest
Aug 21, 2026 2mo ago
Aug 21, 2026 2mo ago
Jul 23, 2026 3mo ago
Jul 23, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago
Jul 18, 2026 3mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Critical CSS for WP 0.2.13 · audited by WP Registry

No security issues found.

Audited release
0.2.13
Findings
none
Worst severity
—
Content hash
afd2b83824a376648edd5eb2…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.