WordPress Plugin Suite | Eight Plugins, a Theme and a Shared Dev Workspace
A WordPress plugin development workspace with wp-env, PHPCS, PHPUnit, a scaffolder and wp-cli deploys, plus eight plugins and a child theme built on it. One plugin serves WordPress to AI agents as 22 permission-gated MCP tools on six sites.
Who it helps
This workspace helps businesses that need custom WordPress plugins built to one consistent standard, and site owners who want AI agents to manage WordPress through permission-gated tools. Eight plugins and a GeneratePress child theme share one development toolchain, so each one is linted, tested and released the same way. They run on The Weekly Driver, MK Library, MenuFindr, Jennifer Left, Frog Stone Media’s own site and SacWP.
The workspace
Building one WordPress plugin is easy. Building eight and keeping them all to a consistent standard is a tooling problem, and plugin projects often skip it.
The workspace is a parent directory holding shared dev tooling, with each plugin and theme in it as an independent private git repository. Composer and npm at the root provide the linting and test harness. A local WordPress runs under wp-env with every plugin mounted. PHPCS enforces the WordPress and VIP coding standards across every plugin from one config. PHPUnit runs per plugin, and the six PHPUnit suites hold 567 tests between them. The two directory plugins use a plain-PHP harness: MenuFindr Core has 37 test files with 2,078 checks, and Directory Core has 16 files with 187 checks.
A scaffolder generates new plugins with the header, slug, namespace, constant prefix, PHPCS config and initial commit already correct. The naming conventions in a WordPress plugin are load-bearing and tedious, and deriving them by hand is how a constant prefix drifts away from the text domain.
One build script turns any plugin into a versioned release zip, and an inventory table records which version runs on which site, updated in the same commit as every install or upgrade.
A deploy script installs a release on any of the six sites with wp-cli. A dry run prints the live and new versions first. With --apply, it zips the live copy as a backup, installs the release through WordPress’s own upgrader, checks the live version and active state, clears the page cache and keeps the five newest backups for rollback. It requires a committed plugin repository, so every release on a live site matches a commit, and a downgrade needs its own flag.
Site code moves out of Code Snippets
Code that lived in the Code Snippets plugin on The Weekly Driver and MK Library moved into version-controlled must-use plugins, and Code Snippets was retired on both sites. Each site gets its own folder: The Weekly Driver’s covers the design preview, homepage query dedupe, post header, short permalinks, term social links and the “Vehicle file” card that links a car review to its reliability record, and MK Library’s covers the author box, feed rules, head tags and last-modified dates. A deploy script diffs each folder against the live server before anything is written, so a change is reviewed as a diff before it goes live. The retired snippets are archived in the repository.
The folders have grown since, to 8 files for The Weekly Driver and 5 for MK Library. The Weekly Driver gained organization schema extras that fill out the publisher entity Rank Math prints on every page with a description, a 2004 founding date, every official profile and links to the editorial policy pages. On November 8 its contact form moved to a GenerateBlocks Pro form, and a must-use plugin sends the form’s auto-reply from the publisher’s own address. MK Library’s default-author file credits every post created through the AI tools to Michael’s author account.
FSM REST Extensions
The plugin that points where WordPress is going. Version 0.15.0 is current, and it runs on six sites: The Weekly Driver, MK Library, MenuFindr, Jennifer Left, Frog Stone Media and SacWP.
It covers the site management work AI does on those sites: Customizer CSS with its revisions and a restore, GeneratePress Premium elements with their display rules, GenerateBlocks Pro pattern collections, posts and pages with their Rank Math title, description and focus keyword, the Rank Math schema on a post, and the page cache.
The plugin registers those capabilities as WordPress Abilities and serves them as named, typed MCP tools from its own server inside WordPress, built on the official MCP Adapter, over Streamable HTTP. An AI agent gets 22 typed tools, 10 that read and 12 that write, and each tool declares whether it is read-only, idempotent or destructive, and which WordPress capability it requires. The set grew from 9 tools at version 0.6.0, and the post and page tools replaced two older MCP servers on October 30. The MCP servers page covers how AI uses them.
Three safeguards cover the 12 write tools:
- Stale check. Every read returns a sha256 fingerprint of the content, and every edit to existing content must send it back. If the post, element or CSS changed since the read, the edit is refused with HTTP 409, and post edits hold a per-post database lock so only one of two edits from the same read lands.
- Write log with rollback. The log keeps the last 50 post writes, 50 theme writes and 20 cache actions, each with a snapshot of what it replaced. Restore tools put a post, an element or a CSS revision back, and each restore is logged so it can be undone.
- Per-user rate limit. 30 writes per 10 minutes, then HTTP 429 with the seconds to wait.
New posts default to drafts, publishing needs WordPress’s publish permission, and the publish date sits outside what the post tools can change. Version 0.15.0, released November 17, fixed how hook elements are read and written: their bodies live in a GeneratePress meta field, and the tools now read and write that field.
Destructive writes require confirmation
Overwriting Customizer CSS, deleting an element and the three restore tools require an explicit confirm: true in the call, and so does a whole-site cache purge.
An agent that hallucinates a delete call fails a schema check, and the site element stays in place. The confirmation flag exists so that the accidental version of the call is structurally different from the intentional one.
Element writes also require WordPress’s unfiltered_html capability, because GeneratePress prints element content unfiltered, and the tools leave its “Execute PHP” setting off. Writing CSS goes through WordPress’s own update function, rejects markup and clears the page cache, so sanitization, revisions and cache invalidation all keep working.
TWD Newsletter: stopping a subscription-bombing attack
The Weekly Driver’s footer signup form once started receiving automated submissions: 743 pending records from 17 IP addresses in about 42 hours, against an audience that grows by about 3 subscribers a month. The addresses belonged to real people at unrelated companies, the pattern called subscription bombing, where an attacker buries a victim’s inbox in confirmation emails from many unprotected forms at once.
The old form posted straight to a public Mailchimp URL, so the request went around the site, out of reach of Cloudflare rate limits and WordPress plugins. TWD Newsletter replaced it with a REST endpoint on the site itself that runs five checks, lowest-cost first, before Mailchimp is ever called: a per-IP rate limit, an origin check, a honeypot that reports success so a bot believes it got through, Cloudflare Turnstile as the real gate, and strict email validation on the address exactly as typed. Double opt-in, the signup tag and the footer design all stayed the same. 56 tests cover the pipeline.
Directory Core and MenuFindr Core
MenuFindr Core is the restaurant directory plugin behind MenuFindr: custom post types, ACF fields, an importer, geocoding, Country, State and City location pages, IndexNow, change reports, owner claims and Stripe subscriptions, with a GeneratePress child theme that renders it.
Directory Core is the same engine with the restaurants taken out. Geocoding an address, freezing a slug, moderating a review and answering “what is near me” are the same problems whether the entity is a restaurant, a contractor, a venue or a clinic, so a consuming plugin registers an entity config (post type, taxonomies, fields, capabilities and REST namespace) and Directory Core supplies the rest: the save pipeline, the importer with de-duplication, and public and permission-gated REST routes. The next directory becomes a configuration exercise, and the hard-won details, like the save-pipeline ordering and the frozen-slug behavior, carry forward intact.
The content plugins
Block Pattern Inserter bulk-inserts a synced pattern into published posts on MK Library and Frog Stone Media’s site, with placement rules such as “after the first image” or “after block N.” It finds insertion points with the same parser rules as WordPress core and splices the pattern between top-level blocks and leaves the rest of the post byte-for-byte as it was. Every run defaults to a dry run, the original content is backed up, and one REST call restores any batch of posts.
TWD Schema Meta prints per-post review, product and FAQ structured data on The Weekly Driver from a post meta field, because WordPress content filters mangle JSON written into the post body. 286 posts carry schema, and the output is escaped so every value stays inside the script tag.
Author Authority is The Weekly Driver’s author box, with co-authors, guest authors and social links, with a stylesheet that loads only on pages that show a box.
RSS Image Controls gives full control over featured images in RSS feeds: size, alignment, padding, click-through links and enclosure tags. Version 0.2.1 runs on The Weekly Driver, where it replaced a third-party feed image plugin. Each feed item’s image is picked once per request, with JPEG, PNG and GIF preferred over formats some feed readers cannot show, and its feed hooks attach only on feed requests.
Why this is on a portfolio
The individual plugins vary in ambition. The workspace behind them is consistent, and that is the transferable part: a standard toolchain, a scaffolder that makes the boring conventions correct by default, a local WordPress that matches production, release zips and a live inventory, and linting and tests that run the same way for every plugin in the set.
The direction FSM REST Extensions points is the part worth paying attention to. Six of these sites already serve typed, permission-gated tools to AI agents, and every write through them is checked, logged and rate-limited. Frog Stone Media builds that kind of plugin.
Want something like this for your business?
Send a short email about the problem you want solved and get a written scope back.
Start With a Free Email Scope