r/ProWordPress • • Oct 21 '26

Thinking about building a security scanner specifically for AI/"vibe-coded" custom plugins before client delivery — would this be useful to you?

I keep seeing reports of AI-generated WordPress plugin code shipping with basic security issues (missing nonces, unescaped output, unprepared SQL queries) — Patchstack's 2026 report even calls out "vibe coding" as its own risk category.

I'm considering building a small WP-CLI tool that scans your own custom/private plugins (not ones from wordpress.org — those already get WordPress.org's new AI review gate) for these common AI-code mistakes before you ship to a client, with a plain-English report instead of raw linter output.

Genuinely trying to figure out if this is a real pain point before I build it:

- Do you (or your agency) already check custom plugin code for this before delivery? How?

- Would a tool like this replace or complement what you already do?

- What would make you not trust a tool like this?

Not selling anything — just validating before I spend the time. "This already exists" or "nobody cares" are useful answers too.

0 Upvotes

5 comments sorted by

2

u/CmdWaterford Oct 21 '26

This is a waste of time since a) almost every plugin dev these days run this itself by their AI and b) Wordpress implements a security check before publishing new plugins right now.

-1

u/Key_Vacation4696 Oct 21 '26

Yeah that's fair re: WP.org's new AI check, but that only kicks in for stuff you actually submit to the .org repo. Anything you build custom for a client never touches that gate, which is the case I'm actually thinking about.

On the "my AI already checks itself" thing — I get it, I do that too honestly. But if that worked reliably we probably wouldn't be seeing +42% new WP vulnerabilities in 2025 (Patchstack's number) or Veracode finding something like 44% of AI-generated code shipping with a known vuln. Feels like there's a blind spot when the same model grading its own homework is the one that wrote it in the first place.

Curious though — when you say you run it through your AI, are you asking it something specific like "check for missing nonces/escaping" every time, or more of a general "review this" pass? Trying to figure out if that's actually catching the boring mechanical stuff reliably or just the obvious stuff.

2

u/elementarywebdesign Oct 21 '26

How is it going to be different from PHPCS WordPress Coding Standards?

-1

u/Key_Vacation4696 Oct 21 '26

Honestly? The detection itself mostly IS PHPCS with the WordPress-Security ruleset — not pretending otherwise. If you've already got phpcs + wpcs wired in and know how to read sniff output, you're basically already doing this.

What I was trying to add on top: a WP-CLI wrapper so you don't have to hand-configure phpcs.xml and pick the right ruleset, output translated into plain English instead of sniff codes, and some state tracking so re-scans don't re-flag stuff you already looked at and ignored. Plus eventually an optional AI pass for the stuff PHPCS structurally can't catch — logic/auth bugs, not just missing escaping.

Honestly fair question. Do you already have wpcs set up on your projects, or is it more "heard of it, never actually configured it"?

0

u/Quditsch Oct 21 '26

I think it's a neat idea.