WordPress.DB.PreparedSQL.NotPrepared

SQL query is not prepared

A database query includes dynamic data without using `$wpdb->prepare()` or an equivalent safe pattern.

critical weight

Why It Shows Up

The scan found a SQL string passed to `$wpdb` where variables appear to be interpolated or concatenated directly.

Why It Matters

Unprepared SQL can allow SQL injection when user-controlled values reach the query.

How to Fix

  • Move dynamic values into placeholders such as `%s`, `%d`, `%f`, or `%i` where supported.
  • Pass the values as separate arguments to `$wpdb->prepare()`.
  • For table names, column names, and sort directions, use strict allowlists instead of raw user input.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1151EasyIndex34741351k+Missing nonce verification
#1152Einsatzverwaltung341521281k+Output is not escaped
#1153Empik for Woocommerce3470259400Missing nonce verification
#1154Reviews Widgets for Google, Yelp & TripAdvisor3427421210k+Output is not escaped
#1155Featured Video Plus349910510k+Non-prefixed global variable
#1156Flash Toolkit3415924210k+Non-prefixed global variable
#1157FV Gravatar Cache345042700Output is not escaped
#1158Gratisfaction- Loyalty, Rewards , Referral, Birthday and Giveaway Program34131352600Missing nonce verification
#1159Signature Add-On for Gravity Forms34161481k+Text Domain Mismatch
#1160HollerBox — Fast & Effective Popups & Lead-Generation3478922k+Output is not escaped
#1161Image Cleanup3452941k+Nonce verification recommended
#1162Import XML and RSS Feeds34260852k+Unsafe printing function
#1163Inavii Social Feed – Live Social Proof Gallery345321809k+Text Domain Mismatch
#1164JS Archive List3499313k+Output is not escaped
#1165Lenix Leads Collector3441424210k+Text Domain Mismatch
#1166Login with Vipps and MobilePay34263174900Output is not escaped
#1167MailChimp Forms by MailMunch341169410k+Output is not escaped
#1168Media Vault34115150800Output is not escaped
#1169Meow Lightbox34755210k+Non Singular String Literal Domain
#1170Montonio for WooCommerce344425710k+Non-prefixed global variable
#1171Multi Step Form342771369k+Output is not escaped
#1172Ni WooCommerce Custom Order Status342561392k+Text Domain Mismatch
#1173One User Avatar | User Profile Picture3468190100k+Non-prefixed global variable
#1174Optima Express IDX347123710k+Non-prefixed class
#1175Child Theme Creator by Orbisius34863910k+Output is not escaped
#1176OwnerRez347956700Unsafe printing function
#1177PW WooCommerce Bulk Edit3421914920k+Unsafe printing function
#1178PW WooCommerce Gift Cards3423818520k+Output is not escaped
#1179Giveaways and Contests by RafflePress – Get More Website Traffic, Email Subscribers, and Social Followers3426186330k+Non-prefixed global variable
#1180Redirection34322932m+Non-prefixed class
#1181Responsive Menu – Create Mobile-Friendly Menu34684070k+Nonce verification recommended
#1182Event Timeline – Vertical Timeline34266841k+Non-prefixed global variable
#1183RTMForm Builder3418820930k+Text Domain Mismatch
#1184Route ‑ Shipping Protection3465150500Missing nonce verification
#1185Search Meter341919420k+Output is not escaped
#1186Security Safe34193164700Missing Translators Comment
#1187Seriously Simple Stats34991265k+Output is not escaped
#1188Student Result or Employee Database3489981k+Direct Query
#1189Software License Manager3469289900Nonce verification recommended
#1190Subscribe to Download Lite – Email Before Download Plugin34106157400Non-prefixed global variable
#1191TaxJar – Sales Tax Automation for WooCommerce342361705k+Text Domain Mismatch
#1192Testimonial Slider344482623k+Unsafe printing function
#1193Throws SPAM Away3432712320k+Missing Arg Domain
#1194Tools for Twitter34135871k+Output is not escaped
#1195Visual Form Builder348232920k+Direct Query
#1196Abandoned Cart Reports For WooCommerce341331632k+Output is not escaped
#1197Donation Platform for WooCommerce: Fundraising & Donation Management343314487k+Non-prefixed global variable
#1198DPD SK for WooCommerce34130165700Output is not escaped
#1199Simple Discount Rules for Woocommerce341752145k+Nonce verification recommended
#1200Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin342301542k+Output is not escaped