WP Manifestindependent plugin directory
manifest / performance / wp-static-runtime

StatixPress Static Runtime

Static HTML caching engine for WordPress. Serve pages at CDN speed from any host — zero PHP execution on cached pages. Smart crawler, dependency graph, Apache/Nginx rules. Premium: ISR, CDN purge (Cloudflare/BunnyCDN/Fastly), Redis index.

by Loka Dwiartara · github.com/lokadwiartara/wp-static-runtime · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/lokadwiartara/wp-static-runtime/archive/refs/heads/main.zip

Static HTML caching engine — ISR, Smart Dependency Graph, CDN Purge, Redis, Memcached, LiteSpeed, PageSpeed Optimizer.

Description

🚀 StatixPress Static Runtime — 100% Free & Open Source

Version: 1.3.0
License: GPL-2.0-or-later
Requires WordPress: 5.8+
Requires PHP: 7.4+


⚡ What is WP Static Runtime?

WP Static Runtime transforms your WordPress site into a blazing-fast static HTML cache engine. Every page is pre-generated and served as static HTML—eliminating PHP processing overhead.

Result: From 850ms TTFB to 12ms TTFB (70× faster ⚡)


🎁 All Features — 100% FREE

📄 Static HTML Caching

Convert WordPress pages into optimized static HTML files. On every publish/update:

  • WordPress content is auto-rendered to /wp-content/cache/
  • Static files are served instead of running PHP
  • Zero PHP overhead — Apache/Nginx serves plain HTML

Cached Content:

  • ✅ Pages & posts
  • ✅ Custom post types
  • ✅ Archive pages (category, tag, date)
  • ✅ Sitemap (XML, HTML)
  • ✅ Home page
  • ✅ 404 pages

🧠 Smart Dependency Graph

Understand which pages need to be purged when content changes:

Auto-Purge on:

  • Post/page publish or update
  • Category/tag changes
  • Customizer changes (colors, logos, menus)
  • Theme option updates
  • WooCommerce product/catalog changes
  • Reusable Gutenberg blocks
  • Related posts (custom fields)

Dependency Tracking:

  • Posts → affected pages
  • Tags/categories → archive pages
  • Menus → all pages using that menu
  • Query loops → pages embedding a post type

🗜️ Asset Optimization

Minify & optimize CSS & JavaScript for lightning-fast load times.

CSS Minification & Optimization

  • Remove comments and whitespace
  • Combine multiple stylesheets (reduce HTTP requests)
  • Lazy-load non-critical CSS
  • Critical CSS — inline above-the-fold CSS into <head> (see below)

JavaScript Minification

  • Remove comments, whitespace, unused code
  • Combine scripts (reduce HTTP requests)
  • Defer non-critical scripts
  • Async loading for third-party scripts

Result: 40–60% asset size reduction


🎯 Critical CSS Generator

Extract above-the-fold CSS automatically — no headless browser needed.

How it works:

  1. Heuristic selector analysis (not DOM-based)
  2. Prioritizes selectors: body, h1-h3, nav, header, layout classes
  3. Excludes non-critical: :hover, :active, footer, sidebar, animations
  4. Inlines critical CSS into <head> for instant styling

Features:

  • One-click generation — WordPress Admin → Static Runtime → Advanced Opt
  • Persistent caching — 1-day TTL (transient cache)
  • Fallback method — If self-request times out, reads CSS from registered stylesheets on disk
  • Zero external dependencies — no Puppeteer, no API calls

Result: Eliminates render-blocking CSS, improves LCP (Largest Contentful Paint)


🔴 Redis Cache Index (Optional)

Replace MySQL-based cache index with Redis for sub-millisecond lookups.

Benefits:

  • Near-zero latency cache metadata queries
  • Scales to millions of cached URLs
  • Reduces database load
  • Automatic fallback to MySQL if Redis unavailable

Requires: php-redis extension
Optional: Not required if not installed


💾 Memcached Integration (Optional)

Use Memcached as a persistent cache backend.

Benefits:

  • Distributed cache across multiple servers
  • Reduces disk I/O
  • Automatic expiration (TTL)
  • Falls back to file cache if unavailable

Requires: php-memcached extension
Optional: Works alongside file cache


🌍 ISR — Incremental Static Regeneration

Instead of deleting cache on update, ISR:

  1. Serves stale cache immediately — no downtime
  2. Queues URL for re-render — background job
  3. Atomically replaces file — once new version ready

Benefits:

  • Zero downtime on content updates
  • Users always see a page (no blank screens)
  • Reduced server load (async regeneration)

Configuration:

  • isr_revalidate — seconds before page is considered stale
  • isr_queue_size — URLs processed per cron batch

🌐 CDN Purge Integration

Automatically purge CDN cache when content changes.

Supported Providers:

  • 🔵 Cloudflare — Purge URLs & full purge
  • 🟡 BunnyCDN — Purge URLs
  • Fastly — Purge URLs

Setup:

  • Add API key in WordPress Admin → Static Runtime → CDN
  • On content update, WP Static Runtime automatically purges CDN cache
  • Keep origin + CDN perfectly in sync

📈 Performance Optimizer — PageSpeed Integration

Built-in HTML optimizer to improve Core Web Vitals:

Optimization Techniques:

  • Remove inline `