Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/imjlk/slim-seo-preview/archive/refs/heads/main.zipSlim SEO Preview is a lightweight companion plugin for Slim SEO.
It adds a dedicated Gutenberg plugin sidebar, opened from the top-right toolbar, that:
- shows a visual Google SERP-style preview
- shows a visual Open Graph-style share preview
- shows the full applied JSON-LD schema currently rendered on the saved frontend page
- shows the effective index/noindex state
- allows a quick
noindextoggle for editable entries directly from the sidebar - links users back to the existing Slim SEO meta box for full editing
The plugin does not replace Slim SEO's meta box. It is designed as a preview-first companion with one safe quick action.
Requirements
- WordPress with the block editor
- Slim SEO installed and active
- Node.js 20.18+ for local development
Local development
This repository expects a sibling clone of Slim SEO:
/workspace/slim-seo-preview
/workspace/slim-seo
First-time setup
npm install
npm run slim-seo:clone
npm run slim-seo:use:tag -- 4.9.1
npm run env:start
npm run build
This boots a local wp-env site with both plugins mounted and activated.
env:start also prepares Composer dependencies and frontend build assets inside the sibling Slim SEO clone when needed.
This repository keeps generated build/ assets out of Git, so run npm run build once before opening the editor UI or npm run start for watch mode.
Switch Slim SEO versions
Use a fixed tag:
npm run slim-seo:use:tag -- 4.9.1
Track upstream master:
npm run slim-seo:use:master
Restart wp-env after switching:
npm run env:destroy
npm run env:start
Frontend build loop
npm run start
Create production assets:
npm run build
Refresh translation files:
npm run i18n:build
Create a WordPress.org submission package with source + build files and without local dev-only dotfiles:
npm run plugin-zip:org
Release and WordPress.org deployment
GitHub is source-only in this repository. Built assets are generated locally for development and in CI for releases.
One-time setup
- Submit the plugin to WordPress.org and wait until the review team gives you the plugin slug and SVN access.
- In GitHub repository settings, add these Actions secrets:
SVN_USERNAMESVN_PASSWORD
- If the WordPress.org plugin slug ever differs from this repository name, update the workflow
SLUGvalue accordingly.
Release flow
- Update the plugin version in
slim-seo-preview.php. - Update
Stable tagand changelog inreadme.txt. - Commit and push those changes to
main. - Create a GitHub release for the version. Either
0.1.0orv0.1.0works; the workflow strips a leadingvbefore deploying to WordPress.org. - GitHub Actions will:
- install dependencies
- build
build/ - validate the package build on every push/PR
- assemble a WordPress.org-ready package in
artifacts/submission/slim-seo-preview - deploy that package to the WordPress.org SVN repository
Review workflow
submitted-0.1.0marks the exact code submitted for the initial 0.1.0 review.- Continue new work on
main. - If WordPress.org asks for review fixes before approval, create
review/0.1.0fromsubmitted-0.1.0and keep that branch limited to review blockers. - After approval, merge or cherry-pick those fixes back into
main.
What lands in WordPress.org SVN
The release workflow deploys the packaged output, not the raw Git checkout. That means Git can stay source-only while WordPress.org SVN receives the runnable plugin files required for installation.
Product scope
MVP intentionally limits inline editing to the noindex flag only.
- Title, description, and canonical remain read-only in the panel.
- Schema preview reads the applied frontend output, not unsaved draft changes in the editor.
- Applied schema preview is only available for publicly viewable entries because it fetches the saved frontend HTML.
- Full editing continues in the existing Slim SEO meta box.