RankKernel

A zero-bloat SEO and schema engine for WordPress. Hard-gated modules, one metadata row and no telemetry.

ROLECreator + maintainerArchitecture, code and tests
SCOPEModule system, metadata/schema engine, admin, testsSingle-site v1
STACK PATTERNSPHP 8.2+ / WordPress 6.5+ / PHPUnit / PHPStan / PHPCSGPL-2.0-or-later
STATUS
Stable 0.1.0 · GPL-2.0 · Open source
Listed on WordPress.org
01 · CONTEXT AND TRUST BOUNDARIES

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.

CORE CONSTRAINT

Off means off: a disabled module registers no hooks and runs no queries.

02 · SYSTEM REQUIREMENTS

Constraints that shaped the design

C-01 · RUNTIME

Runtime floor. WordPress 6.5+ and PHP 8.2+.

C-02 · ISOLATION

Off means off. A disabled module registers no hooks and runs no queries.

C-03 · DATA MODEL

One payload. One metadata row per post, term and user.

C-04 · EXTERNAL CALLS

No telemetry. External calls only when explicitly configured.

03 · TOPOLOGY AND NODES

Kernel-to-module execution pipeline

KERNEL BOOT · MODULE SEQUENCE
ZERO TELEMETRY
BOOT READ PATH AND MODULE ORDER

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.

04 · LIFECYCLE FLOWS

Three request paths

Metadata render path

SUCCESS
  1. 01Request enters WordPress and the kernel boots once.
  2. 02Context resolves the query, settings and template tokens.
  3. 03HeadRenderer emits title, description, robots, canonical, OG and Twitter.
  4. 04SchemaModule reuses the same context and prints one JSON-LD graph.
  5. 05Only enabled modules contribute output.

Sitemap cache path

RECOVERY
  1. 01save_post, term and user hooks invalidate the sitemap cache.
  2. 02The router rebuilds the index through bounded providers.
  3. 03The cache validator changes after an upgrade.
  4. 04Rewrite rules flush once per sitemap version.
  5. 05Core sitemap output stays disabled.

Analysis save path

IDEMPOTENT
  1. 01The analysis save handler verifies edit_post.
  2. 02A deterministic score is written to one meta payload.
  3. 03Cache invalidation follows the save.
  4. 04IndexNow is queued only after two opt-ins.
  5. 05Unchanged republish and a ten-minute debounce suppress duplicates.
05 · ARCHITECTURAL DECISION RECORDS

Evaluated options and trade-offs

ADR-001 · D1

Module loading

ACCEPTED & DEPLOYED
OPTIONS EVALUATED

A) Always-loaded modules

B) Hard gate with dependency ordering

CHOSEN DECISION

Hard gate

ARCHITECTURAL
RATIONALE

Disabled modules must cost nothing, so the manager evaluates enable state once and boots only the enabled set.

ENGINEERING TRADE-OFF

Dependencies must be declared explicitly. a gate failure isolates one module instead of the kernel.

ADR-002 · D2

SEO storage

ACCEPTED & DEPLOYED
OPTIONS EVALUATED

A) Dozens of meta rows per post

B) One JSON payload per object

CHOSEN DECISION

One payload per object

DATA MODEL
RATIONALE

One row keeps admin, queries and migrations predictable, with a single validator at the boundary.

ENGINEERING TRADE-OFF

Payloads need schema and sanitization discipline.

ADR-003 · D3

Schema output

ACCEPTED & DEPLOYED
OPTIONS EVALUATED

A) Ad-hoc JSON per view

B) Normalized @graph + type allowlist

CHOSEN DECISION

One normalized @graph

SCHEMA
RATIONALE

A single graph prevents duplicate entities and keeps every piece behind the same 24-type allowlist.

ENGINEERING TRADE-OFF

Normalization adds up-front work and a shared generator.

06 · SECURITY CONTROLS

Correctness and guardrails

1. Capability checks

Admin and REST paths

2. Nonces

Admin saves and AJAX

3. Sanitization

Metadata payload and schema allowlists

4. No telemetry

No background beacons

5. Guarded migrations

Failure ledger and explicit purge

6. External calls

IndexNow and support email only

07 · OUTCOMES

Quality gates and release state

WHAT HOLDS TRUE
  • 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.
What I would improve (Engineering Self-Critique)
  • Add the missing SEOPress importer or correct the roadmap.
  • Finish the fuller Gutenberg sidebar and image SEO.
  • Add integration tests and multisite support.
08 · RETROSPECTIVE

Transferable engineering principles

PRINCIPLE 01

Off means off

make the gate architectural, not a callback flag.

PRINCIPLE 02

Roadmaps drift

use code as the source of truth.

Continue reading

UP NEXT IN ARCHITECTURE DOSSIERS

Next Case Study → Cross-Domain Payment Proxy Architecture

A reusable cross-site payment bridge with signed server-to-server calls and tokenized capture.

Open Source & WordPress Engineering
Available for Collaboration

Need an SEO engine built like this?

Available for WordPress architecture, plugin engineering and open-source collaboration.

PORT: 443/TLS·LOCATION: Rajkot, India / Remote·STATUS: Available for Eng Interviews
UTC+5:30 · P99 RESPONSE: < 24H