DEV Community

Cover image for The plugin audit I run before moving any WordPress client site to Astro
Linc
Linc

Posted on

The plugin audit I run before moving any WordPress client site to Astro

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

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 (2)

Collapse
 
li_yi_dcec96bf2647dec1b7e profile image
Mindutil •

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.

Collapse
 
rushdeploy profile image
Rishabh Mishra •

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.