Every WordPress site I migrate has the same thing hiding in it: 20 to 40 plugins, and the client has no idea what half of them do.
The posts, pages and images are the easy bit. The plugins are where a migration quietly goes wrong. Somebody installed a booking widget in 2019, a popup plugin that still collects emails into a list nobody checks, and a "security" plugin that is the only reason the login page has a captcha. Miss one of those and you find out three weeks after launch when the client rings you.
So before I quote or touch anything, I run a plugin audit. Here is how it works.
Step 1: get the real list
Don't trust the plugins screen screenshot the client sends you. I ask for an admin login (or a WP-CLI dump if they have a dev) and grab:
wp plugin list --fields=name,status,version,update --format=csv > plugins.csv
Inactive plugins go in the list too. Half the time an "inactive" plugin left behind a shortcode that is still rendering garbage on some old page.
Then I search the content for shortcodes and blocks so I know which plugins actually show up on the front end:
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_status='publish' AND post_content REGEXP '\\[[a-z_-]+'" > shortcodes.txt
Step 2: sort every plugin into one of four buckets
I hand plugins.csv and shortcodes.txt to my coding agent (Claude Code mostly, Cursor works too) with a prompt like this:
For each plugin in plugins.csv, put it in exactly one bucket:
1. GONE - only exists because it's WordPress (caching, security, backups, updates, page builders)
2. BUILD - small front end feature we rebuild in Astro (sliders, tabs, FAQ, galleries, tables)
3. PLATFORM - handled by hosting (forms, redirects, analytics, editable content)
4. KEEP-SAAS - real business tool we embed or link to (bookings, payments, events, chat)
For each one write: bucket, what it does on THIS site (check shortcodes.txt), and pages affected.
Flag anything you are not sure about. Do not guess.
The "do not guess" line matters. Agents love to confidently say a plugin is unused. I want the flags.
What usually lands where
GONE. This is the fun bucket and it's always the biggest. Wordfence, WP Rocket, UpdraftPlus, Autoptimize, Elementor, the 3 different SEO helpers. On a static Astro site most of these just stop being a problem. No PHP, no database, no login page to brute force. I list them in the proposal anyway because "you no longer need to pay for or update these 14 plugins" is a real selling point.
BUILD. Sliders, accordions, tabs, testimonial carousels, image galleries. These are usually 30 to 80 lines of Astro each. I keep a little component folder I reuse across clients so most of this is copy, restyle, done.
PLATFORM. Contact forms, redirects, analytics and the "client wants to edit their opening hours" problem. I host client sites on novence.ai, so forms post to the hosting, redirects go in /_redirects, and the bits the client edits live in /data/*.json that they change through the /edit page. That kills Contact Form 7, Redirection, MonsterInsights and ACF in one go. I wrote seperate posts on forms and redirects if you want the detail.
KEEP-SAAS. The stuff you should not rebuild. If the client takes bookings through Calendly, SimplyBook, Square or whatever, you embed it or link it. If there is WooCommerce with 3 products, I talk to them about Stripe payment links. If there are 300 products, honestly that site probably stays on WordPress, and I tell them so. Losing a migration is better than a broken shop.
Step 3: the questions I ask the client
The audit always turns up 3 or 4 plugins where nobody knows why they exist. I send one short email:
- "Is anyone still using the newsletter popup? It has 4 signups since 2022."
- "Your events plugin has no events after March last year. Keep it?"
- "Who logs into the membership area?"
Most answers are "oh, delete that". Every one you delete is less work and less risk.
Step 4: put it in the quote
The audit becomes a table in the proposal. Plugin, bucket, what replaces it, done/not done. The client sees exactly what is going away and why, and I have a checklist my agent ticks off before the preview goes live.
My AGENTS.md has a line for it too:
Before deploy: every row in plugin-audit.md must be DONE or WONT-DO with a reason.
Then the preview goes up with npx novence deploy and I click through every page from the "pages affected" column. That single step catches more bugs than anything else I do.
Lessons from about 20 of these
- The plugin the client cares about most is never the one you'd guess. Ask.
- Shortcodes in old blog posts are the #1 thing that breaks silently. Grep for them.
- Don't rebuild booking or payment systems. Ever. Embed.
- The GONE list sells the migration better than any speed score.
- If the audit says "this is really a web app", be honest and walk away from that one.
It takes me maybe an hour per site with the agent doing the sorting. Cheapest hour in the whole project.
Top comments (10)
Step 1 - "don't trust the screenshot the client sends" - is the whole lesson, and I just applied it to my own copy.
I run an AI tool directory and I have ten comparison pages. All ten print the same sentence under the table: "We only publish comparisons between tools that sit in the same category in our index." I read the ten rendered pages instead of the template: three of them pair tools that share no category in my own index - one puts a video model against an image model. I can see exactly how it happened, because the page has a fallback branch for the zero-shared-category case, and the fallback's wording asserts the category anyway. The summary sentence is the "inactive" plugin that still renders.
The bucket sort is what my audit was missing. My listings were copied from another directory, and when I pulled the destination URL for each of the 18 tools in those comparisons, four are referral links that came along for the ride: two Impact shorteners on pxf.io, a QuillBot link whose path is literally "aixploria2", and a bolt.new URL with a "?rid=" id. A fifth product page resolves to a GitHub repo. My disclosure line says "no listing here is paid placement", which is true about me, and the button still credits somebody else.
So: audit the artifact, not the claim - and if a destination was inherited, re-derive it.
Yeah, that's the same lesson on a different kind of site. The template claimed every comparison was in-category, but three rendered pages weren't, so the only audit that counts is reading the live output. The inherited referral links are the inactive plugin problem too: you didn't add them, they still fire, and your disclosure line doesn't cover them. Re-deriving every destination is the right fix, same as pulling the real plugin list instead of trusting the screenshot.
The four buckets are the part I would steal first — they turn a vague plugin list into a quote the client can actually read.
One extra check I would add: search drafts and revisions for shortcodes too, since old posts are where they hide.
That AGENTS.md gate is a good finish, since it stops a half-finished audit from ever reaching deploy.
The four buckets are meant to do exactly that, glad they landed. Searching drafts and revisions is a good extra, I only grep published posts today and thats where old shortcodes hide. I'll add a looser status filter next time so drafts get scanned too. And yeah, the AGENTS.md line is there so a half finished audit can't sneak onto a preview.
Putting the audit table into the quote and blocking deployment until every row is done or marked "won't do, with a reason" is the part I'd copy first. That table also works as the out-of-scope list, because anything marked won't-do is on paper. For the plugins nobody can explain, do you charge for the discovery time, or fold it into the migration price?
I charge for the audit as its own line, so the discovery time is already paid before the migration quote. The plugins nobody can explain get handled in that audit, not folded into the migration fee. If the client says keep one and it turns into real build work, that goes on the quote as its own row. Folding mystery-plugin time into a fixed migration price is how I used to underquote.
that popup plugin quietly filling a list nobody checks is so real. worth exporting whatever data the GONE plugins hold too before switching them off, form entries and email lists mostly, because once the site's on Astro nobody remembers they existed.
Yes, export that data first. Form entries and email lists usually sit in the plugin's own tables, and once the plugin is off they're a pain to recover. I dump those to a CSV before I mark anything GONE, then hand it to the client so they can import it into whatever they use next. Otherwise it only comes up when someone asks where last year's popup signups went.
Love the four-bucket taxonomy — GONE vs PLATFORM especially stops teams from blindly rebuilding WordPress-specific baggage.
One pre-cutover check I'd add to the PLATFORM / launch checklist is verifying HTTP security headers and email DNS (SPF/DMARC/MX) right before flipping DNS. WordPress sites often rely on a security plugin for HSTS/X-Frame-Options or an SMTP plugin sending through the old host; moving the front end to static hosting + a form handler can silently drop those headers or break contact-form deliverability if the new sender isn't in SPF. Running a quick baseline scan on the old site before migration (using curl -I + dig, or a lightweight checker like webpulse.taijibala.com/) makes it obvious what needs to be replicated on the new host.
Good call on the headers and the email DNS. Security plugins often set HSTS and X-Frame-Options, and SMTP plugins send through the old host, so both can vanish the day you flip DNS. I already check MX, SPF and DMARC as part of the cutover, but I should baseline the old site's response headers with curl -I before I move anything, so I know what to put back on the new host.