WordPress.DB.PreparedSQLPlaceholders.MissingReplacements

Missing Replacements

A SQL query is built in a way that Plugin Check cannot verify as safely prepared.

critical weight

Why It Shows Up

The scan found missing, incorrect, quoted, unsupported, or mismatched SQL placeholders around `$wpdb->prepare()` usage.

Why It Matters

Broken preparation can leave dynamic SQL values unsafe or make queries behave differently than intended.

How to Fix

  • Keep placeholders in the SQL string and pass dynamic values as separate arguments.
  • Use the placeholder that matches the value type.
  • Do not quote placeholders manually, and use allowlists for identifiers or SQL fragments.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1Feeds for YouTube (YouTube video, channel, and gallery plugin)21558978100k+Output is not escaped
#2RegistrationMagic – Custom Registration Forms, User Registration, Payment, and User Login223,6535,0788k+Non-prefixed global variable
#3Testimonial Slider344482623k+Unsafe printing function
#4Events Manager and WPML Compatibility361011771k+Direct Query