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
#1451LearnPress – Course Review37674320k+Output is not escaped
#1452Media Sweep – WordPress Media Cleaner37561371k+Interpolated SQL is not prepared
#1453Metorik – Reports & Email Automation for WooCommerce37757010k+Output is not escaped
#1454CrawlWP SEO – Instant Search Engine Indexing & SEO Performance Monitor37479040k+Dynamic hook name
#1455news ticker benaceur371,097311k+Output is not escaped
#1456NextGEN Scroll Gallery3733281k+Output is not escaped
#1457Ninja Van (MY)37212581k+Non-prefixed global variable
#1458WP All Export – Order Export for WooCommerce371091113k+Text Domain Mismatch
#1459Panda Pods Repeater Field379260600Non-prefixed global variable
#1460Phoenix Media Rename3718010450k+Output is not escaped
#1461Poptics – Popup Builder, Email Opt-ins, Exit-Intent & WooCommerce Popups Sales3759642k+SQL query is not prepared
#1462Product Image Hover Effects WOOC – WPSHARE2473716194800Output is not escaped
#1463Publish to Schedule37195434k+Text Domain Mismatch
#1464rapidmail: Newsletter & E-Mail Marketing for WooCommerce377947400Text Domain Mismatch
#1465Sensei LMS Certificates37973624k+Non-prefixed global variable
#1466Snippet Shortcodes373591334k+Non Singular String Literal Domain
#1467Simple Image XML Sitemap37119161k+Output is not escaped
#1468Lightbox slider – Responsive Lightbox Gallery37361733k+Non-prefixed global variable
#1469Tracking Code Manager37554290k+Output is not escaped
#1470User Meta Display377874500Output is not escaped
#1471UsersWP – Social Login37299912k+Text Domain Mismatch
#1472Featured Video for WordPress – VideographyWP37287931k+Unsafe printing function
#1473Views for WPForms – Display & Edit WPForms Entries on your site frontend3780641k+Output is not escaped
#1474Weather Atlas Widget376301119k+Output is not escaped
#1475Conditional Discounts for WooCommerce – A simple yet complete woocommerce dynamic pricing plugin3799339k+Text Domain Mismatch
#1476Piraeus Bank WooCommerce Payment Gateway371461043k+Non Singular String Literal Domain
#1477Fix Media Library3753711k+Output is not escaped
#1478WP-Cron Control3754221k+Output is not escaped
#1479WP Export Categories & Taxonomies3716935500Output is not escaped
#1480WP Flow Plus37175146800Output is not escaped
#1481Persistent Login373381086k+Unsafe printing function
#1482WP Show Stats37197103400Output is not escaped
#1483Special Text Boxes3738422k+Direct Query
#1484TopNewsWp – Display Tikcer News, RSS Feed Widget and Many More3787859800Output is not escaped
#1485XT Visitor Counter37177527k+Output is not escaped
#1486Yada Wiki37207452k+Text Domain Mismatch
#1487YOURLS Link Creator3719639500Text Domain Mismatch
#1488Zoho Marketing Automation37241941k+Non-prefixed global variable
#1489Accessibility3866611k+Non-prefixed global variable
#1490Action Scheduler389213420k+Exception output is not escaped
#1491Advanced 301 and 302 Redirect38813391k+Non-prefixed global variable
#1492Advanced Media Offloader3857935k+error log error log
#1493Alphabetic Pagination38144117500Unsafe printing function
#1494Activity Log – Monitor & Record User Changes3881149200k+Nonce verification recommended
#1495Ashe Extra38109543k+Text Domain Mismatch
#1496Autologin Links3873748k+Output is not escaped
#1497Automatic Post Tagger385923072k+Output is not escaped
#1498Blogger Importer38443950k+Output is not escaped
#1499Database for Contact Form 738341287k+Missing nonce verification
#1500Crop-Thumbnails38332740k+Missing direct file access protection