Modern WordPress & PHP Engineering Laboratory

An architectural benchmark and progressive educational proving ground designed to bring experienced software engineers up to speed with modern WordPress 6.7+, strict PHP 8.2+, Full Site Editing, and Zero Trust engineering standards.

The Core Premise

The Ten-Year Architectural Delta (2014 vs Today)

If you haven’t touched WordPress in a decade, almost everything has changed. Legacy procedural spaghetti has been superseded by modern language semantics, declarative design tokens, and reactive component standards.

❌ 2014–2016 Legacy Pattern
  • PHP 5.6 untyped procedural scripts
  • header.php and footer.php template hacks
  • Monolithic style.css (thousands of lines of overrides)
  • Heavy jQuery chod and DOM mutation scripts
  • Raw $wpdb->query strings without prepare
  • Unstructured functions.php junk drawers
✔ 2025–2026 Modern Standard
  • PHP 8.2+ with declare(strict_types=1);
  • Full Site Editing with HTML block templates
  • Declarative design tokens via theme.json v3
  • Modular per-block CSS loaded on demand (<2KB)
  • Native Interactivity API signals (Preact under the hood)
  • PSR-4 Composer autoloading and Dependency Injection

Read the complete Ten-Year Architectural Delta deep dive →

5 Stages
Structured Curriculum
PHP 8.2+
Strict Types & PSR-4
FSE
Theme.json v3 Tokens
WCAG 2.2
Level AA Compliant
Zero Trust
Public Sector Security

Course Curriculum: Five Progressive Stages

Follow the stages sequentially to master modern WordPress engineering from bare-metal runtime execution to government-grade production delivery.

Stage 1

WordPress Fundamentals & Containerised Isolation

Master the anatomy of an HTTP request execution, core database schemas (wp_posts, wp_postmeta, wp_options), transients caching, and multi-container Docker runtime topology.

Key Lessons: Request Lifecycle Anatomy · Options & Transients Caching · Multi-Container Docker Isolation · Mailpit SMTP Trapping
Stage 2

Modern PHP 8.2+ Architecture

Transition from unstructured procedural scripts to enterprise object-oriented PHP. Enforce strict typing, Composer PSR-4 autoloading, Service/Repository separation of concerns, and PHPStan Level 6+ static analysis.

Key Lessons: Strict Types (declare(strict_types=1)) · Composer PSR-4 Namespaces · Service Container Architecture · PHPStan Static Verification
Stage 3

Block Theme Engineering & Full Site Editing (FSE)

Retire legacy PHP template hierarchies. Build themes entirely using declarative theme.json v3 tokens, semantic HTML block templates, modular per-block CSS loaded on demand, and the native WordPress Interactivity API.

Key Lessons: Declarative Theme.json v3 · HTML Template Parts · wp_enqueue_block_style Orchestration · WordPress Interactivity API Signals
Stage 4

Modular Plugin Development & Modern APIs

Architect production-grade plugins using PSR-4 autoloading. Implement Custom Post Types, structured metadata schemas, the Block Bindings API (WordPress 6.5+), secure REST endpoints, and strict capability authorization.

Key Lessons: PSR-4 Plugin Architecture · Custom Post Types & Meta · Block Bindings API · REST Route Capability & Nonce Verification
Stage 5

Production Engineering, Quality Gates & Governance

Ship software with government-grade confidence. Implement automated PHPUnit unit testing, PHPCS WordPress coding standards, OWASP ASVS Zero Trust audits, automated CI/CD releases, and Caddy automated TLS reverse proxying.

Key Lessons: OWASP ASVS Security Audits · GitHub Actions Quality Gates · Caddy Edge TLS · Dependency Supply Chain CVE Scanning

Government Guidance & Public Sector Standards

WP-Lab conforms to the strict regulatory baselines required for high-assurance public sector software engineering in the UK.

GDS Service Standard

How modern WordPress satisfies the 14 assessment points of the UK Government Digital Service Standard from discovery to live.

Accessibility Regulations 2018

Enforcing WCAG 2.2 Level AA compliance, semantic landmarks, high-contrast focus rings, and skip-link targets in block themes.

Technology Code of Practice

Criteria for technology spend approval: open source transparency, modern hosting, API first, and Zero Trust security.

Laboratory Experiments & Benchmarks

Click Run to measure latency

No laboratory experiments currently published. Run "make seed" or register experiments via the REST API.

The Two-Surface Learning Philosophy

To master modern WordPress development engineering, you only need to look at two things: the codebase on disk and the running site in your browser. Every lesson published here corresponds directly to real, clean, strictly typed files inside wp-content/themes/wp-lab-theme/ and wp-content/plugins/wp-lab-core/.