RankKernel
A zero-bloat SEO and schema engine for WordPress. Hard-gated modules, one metadata row and no telemetry.
A modular SEO engine with one metadata row
Most SEO suites grow into heavy stacks: modules load even when unused, per-post settings spread across dozens of meta rows, and admin screens carry upsells or telemetry.
RankKernel started from the opposite constraints: a small kernel, modules that cost nothing when disabled, one metadata row per object, and a test suite that runs without a database.
The 0.1.0 release is deliberately narrow: a working SEO and schema engine for single-site WordPress, with a clear line between shipped and planned.
Off means off: a disabled module registers no hooks and runs no queries.
Constraints that shaped the design
Runtime floor. WordPress 6.5+ and PHP 8.2+.
Off means off. A disabled module registers no hooks and runs no queries.
One payload. One metadata row per post, term and user.
No telemetry. External calls only when explicitly configured.
Kernel-to-module execution pipeline
Kernel → Registry → Manager → Metadata → Schema → Modules. The kernel guards and autoloads, boots Plugin services, reads ModuleEnableMap and asks ModuleManager to boot enabled modules. Boot order runs metadata at 10, sitemaps at 20, schema at 30, redirects at 40 and the monitor at 50.
Three request paths
Metadata render path
- 01Request enters WordPress and the kernel boots once.
- 02Context resolves the query, settings and template tokens.
- 03HeadRenderer emits title, description, robots, canonical, OG and Twitter.
- 04SchemaModule reuses the same context and prints one JSON-LD graph.
- 05Only enabled modules contribute output.
Sitemap cache path
- 01save_post, term and user hooks invalidate the sitemap cache.
- 02The router rebuilds the index through bounded providers.
- 03The cache validator changes after an upgrade.
- 04Rewrite rules flush once per sitemap version.
- 05Core sitemap output stays disabled.
Analysis save path
- 01The analysis save handler verifies edit_post.
- 02A deterministic score is written to one meta payload.
- 03Cache invalidation follows the save.
- 04IndexNow is queued only after two opt-ins.
- 05Unchanged republish and a ten-minute debounce suppress duplicates.
Evaluated options and trade-offs
Module loading
A) Always-loaded modules
B) Hard gate with dependency ordering
Hard gate
ARCHITECTURALDisabled modules must cost nothing, so the manager evaluates enable state once and boots only the enabled set.
Dependencies must be declared explicitly. a gate failure isolates one module instead of the kernel.
SEO storage
A) Dozens of meta rows per post
B) One JSON payload per object
One payload per object
DATA MODELOne row keeps admin, queries and migrations predictable, with a single validator at the boundary.
Payloads need schema and sanitization discipline.
Schema output
A) Ad-hoc JSON per view
B) Normalized @graph + type allowlist
One normalized @graph
SCHEMAA single graph prevents duplicate entities and keeps every piece behind the same 24-type allowlist.
Normalization adds up-front work and a shared generator.
Correctness and guardrails
Admin and REST paths
Admin saves and AJAX
Metadata payload and schema allowlists
No background beacons
Failure ledger and explicit purge
IndexNow and support email only
Quality gates and release state
- 10 modules implemented, including a working importer for Yoast, Rank Math and All-in-One SEO.
- 2,367 PHPUnit tests and 9,104 assertions pass. 8 deprecation notices remain.
- PHPStan level 6 reports no errors. PHPCS exits 0.
- Metadata, schema, sitemaps and redirects share one module gate and one metadata row per object.
- 0.1.0 is GPL-2.0-or-later and is available on WordPress.org.
- 29 schema pieces across 24 supported types are emitted through one normalized @graph.
- Add the missing SEOPress importer or correct the roadmap.
- Finish the fuller Gutenberg sidebar and image SEO.
- Add integration tests and multisite support.
Transferable engineering principles
Off means off
make the gate architectural, not a callback flag.
Roadmaps drift
use code as the source of truth.
Continue reading
Next Case Study → Cross-Domain Payment Proxy Architecture
A reusable cross-site payment bridge with signed server-to-server calls and tokenized capture.