WordPress.DB.PreparedSQLPlaceholders.QuotedDynamicPlaceholderGeneration

Quoted Dynamic Placeholder Generation

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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1WP Import Export Lite1873897940k+Non Prefixed Variable Found
#2MotoPress Hotel Booking213,0611,03710k+Text Domain Mismatch
#3E2Pdf – Export Pdf Tool for WordPress221,07583610k+Unsafe Printing Function
#4Advanced AJAX Product Filters222,6831,20550k+Text Domain Mismatch
#5GamiPress – Gamification plugin to reward points, achievements, badges & ranks in WordPress233,6622,97110k+Output Not Escaped
#6Restaurant Menu and Food Ordering233858532k+Non Prefixed Variable Found
#7Issues and Series for Newspapers, Magazines, Publishers, Writers233467102k+Recommended
#8Coupon Affiliates – Affiliate Plugin for WooCommerce241,0223,0745k+Non Prefixed Variable Found
#9Yoast SEO – Advanced SEO with real-time guidance and built-in AI2415938610m+Non Prefixed Variable Found
#10Enhanced Media Library3636111760k+Unsafe Printing Function