The Problem
In search results, standard web links lose over 60% of search traffic to competitors who show visual Google Rich Snippets (cooking time, star ratings, calorie counts, step-by-step photos). Most generic WordPress SEO plugins either produce invalid schema nesting, introduce heavy database queries on every page render, or break entirely when themes update.
I engineered RecipeSchema Pro to solve this: a lightweight, decoupled PHP plugin hooking directly into `wp_head` with transient caching, generating 100% compliant Schema.org JSON-LD with zero front-end overhead.
Architecture & Plugin Hooks
Built strictly following WordPress Core Coding Standards:
- Gutenberg Block & Meta Ingestion: Adds dedicated custom fields to the Gutenberg block editor for prep time, cook time, nutrition values, and ingredients.
- Schema.org Sanitization Engine: Converts human times (e.g. "45 minutes") into ISO 8601 duration strings (`PT45M`) and validates required properties (image, name, prepTime, recipeInstructions).
- Transient Memory Caching: Stores compiled JSON-LD markup in WordPress Transients to ensure 0ms database lookup overhead on production page requests.
- Head Injection: Automatically renders minified `