WordPress.DB.PreparedSQL.InterpolatedNotPrepared

Interpolated SQL is not prepared

Variables are interpolated into a SQL string before the query is prepared.

critical weight

Why It Shows Up

The scan found dynamic values placed directly inside SQL, often through string interpolation, before `$wpdb->prepare()` can safely bind them.

Why It Matters

Preparing a query after unsafe interpolation does not reliably protect the dynamic value.

How to Fix

  • Replace interpolated variables with placeholders.
  • Pass each dynamic value as a separate `$wpdb->prepare()` argument.
  • Use allowlists for SQL identifiers and directions that cannot be represented as normal values.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1501IndexNow Plugin631491100k+error log error log
#1502MooWoodle – WordPress Moodle LMS Integration, Sell Moodle Courses via WooCommerce631045800No Caching
#1503Collapsing Archives643693k+date date
#1504DataFeedWatch Connector for WooCommerce6416112600Non-prefixed hook name
#1505DoFollow Case by Case644601k+Direct Query
#1506Pageviews6415121k+Missing Translators Comment
#1507Royal MCP – Secure AI Connector for Claude, ChatGPT & Gemini646336k+Interpolated SQL is not prepared
#1508JTL-Connector for WooCommerce6471661k+Direct Query
#1509AdSimple Cookie Consent Banner6555109600wp function not compatible with requires wp
#1510License For Envato659289k+Non-prefixed global variable
#1511Notibar – Notification Bar for WordPress6543628k+wp function not compatible with requires wp
#1512SQL Buddy – Database Management Made Easy6512165k+SQL query is not prepared
#1513AI Product Gallery Slider for WooCommerce, Slider, Zoom, Video & Variation Images – WPBean65264162k+Text Domain Mismatch
#1514WP Redis6611259k+Interpolated SQL is not prepared
#1515Editoria11y Accessibility Checker6769551k+Text Domain Mismatch
#1516Multilingual Forms for Fluent Forms with WPML6752161k+Text Domain Mismatch
#1517Vibe AI – MCP Server for WordPress. Connect Claude, ChatGPT & Cursor6710272k+Non-prefixed global variable
#1518Booter – Bots & Crawlers Manager68817k+Non-prefixed global variable
#1519Member Swipe for BuddyPress68913600Missing direct file access protection
#1520Faire for WooCommerce68486800Direct Query
#1521Thank You Page for WooCommerce – Custom Thank You Page & Redirect6862710k+Non-prefixed global variable
#1522AdOpt | Easy Multi-Regulations Cookie Banner.6922277k+Missing direct file access protection
#1523Ambrosite Next/Previous Post Link Plus6912245k+Interpolated SQL is not prepared
#1524DOKU Payment695346400wp function not compatible with requires wp
#1525WP Bulk Delete69744100k+Non-prefixed hook name
#1526Ambrosite Next/Previous Page Link Plus701121900Interpolated SQL is not prepared
#1527FAZ Cookie Manager701311600Non-prefixed hook name
#1528BuddyPress Default Data71821400Interpolated SQL is not prepared
#1529Privyr CRM – Instant Lead Alerts for Contact Forms712254k+Non-prefixed function
#1530Shipping Rate By Cities72421700Direct Query
#1531Templ Optimizer726631k+Direct Query
#1532Contact Forms by Cimatti738826600wp function not compatible with requires wp
#1533BP xProfile Location74724600Missing nonce verification
#1534Fast Speed Index74912500Direct Query
#1535Product Layouts for WooCommerce745751k+Direct Query
#1536FlowForms – Conversational Form Builder7517400Nonce verification recommended
#1537Media Search Enhanced754234k+Non-prefixed hook name
#1538PopupAlly7540102k+Missing direct file access protection
#1539UTM Event Tracker and Analytics, UTM Grabber76219900Interpolated SQL is not prepared
#1540WP AdCenter – Ad Manager & Adsense Ads765711k+Direct Query
#1541Dual Currency Display77124900Direct Query
#1542Claspo – Popups, Spin the Wheel & Email Capture78107161k+wp function not compatible with requires wp
#1543PatternsWP – Gutenberg Block Patterns & Page Templates Library78125500Non-prefixed constant
#1544Bricksable for Bricks Builder8017610k+Post Not In exclude
#1545Check for Broken Links80741500Non-prefixed global variable
#1546Ailo – AI Slug Translator808141k+wp function not compatible with requires wp
#1547WP Social Ninja – Embed Social Feeds, User Reviews & Chat Widgets80261830k+Missing direct file access protection
#1548Bulky – Bulk Edit Products for WooCommerce8132110k+Non-prefixed hook name
#1549HivePress Geolocation812257k+Nonce verification recommended
#1550LoftLoader81171970k+Missing direct file access protection