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
#1451Delete Duplicate Posts4795010k+Direct Query
#1452DPO Pay for WooCommerce4728411k+Non Singular String Literal Text
#1453EasyFonts – Host Google Fonts Locally, Fast & Auto-Optimize, GDPR Compliant475581k+Interpolated SQL is not prepared
#1454Legal Pages – Privacy Policy, Terms & Conditions, GDPR, CCPA, and Cookie Notice Generator47448310k+Missing direct file access protection
#1455Security Ninja For MainWP4724671500Text Domain Mismatch
#1456Simple Custom Post Order47976300k+Direct Query
#1457Easy Share Solution For WordPress481533900Output is not escaped
#1458Seznam Webmaster48478700Output is not escaped
#1459FlexStock – Product Stock Sync with Google Sheets for WooCommerce48241700Direct Query
#1460Tako Movable Comments4818391k+Input is not sanitized
#1461Taxonomy Switcher4822362k+Nonce verification recommended
#1462WS Action Scheduler Cleaner4813802k+error log error log
#1463Anti-Spam Protection – No API Key, GDPR Friendly4921061k+Direct Query
#1464GamiPress – Multimedia Content491125500Nonce verification recommended
#1465ReCrawler4910404k+Direct Query
#1466Simple MyISAM to InnoDB4911221k+Output is not escaped
#1467WP Smart Import : Import any XML File to WordPress49283021k+Non-prefixed global variable
#1468User Activity Tracking and Log50302632k+Non-prefixed global variable
#1469WPML Multilingual for BuddyPress and BuddyBoss5118216k+SQL query is not prepared
#1470Counter Box – Add Countdowns, Timers & Dynamic Counters to WordPress5131161k+Missing nonce verification
#1471Firelight Lightbox517897200k+Non-prefixed global variable
#1472GamiPress – Reset User511427400Interpolated SQL is not prepared
#1473The Cache Purger5116161k+Non Singular String Literal Text
#1474REST API Log5144955k+Non-prefixed hook name
#1475Check Pincode For WooCommerce5255400Direct Query
#1476Fullscreen Galleria523710800Output is not escaped
#1477WPVibe – MCP Server for WordPress. Connect Claude, ChatGPT, Gemini & Cursor5219583k+Interpolated SQL is not prepared
#1478Wenprise Pinyin Slug5230344k+Text Domain Mismatch
#1479Disable Comments – Remove Comments & Stop Spam [Multi-Site Support]5315461m+Non-prefixed global variable
#1480File Manager53416810k+Missing direct file access protection
#1481LearnPress – bbPress Integration5319142k+Output is not escaped
#1482Booking Calendar54288550k+Mixed line endings
#1483Customizable Post Listings544213700Deprecated parameter: the_author parameter 1
#1484MSN Partner Hub5421251k+Missing direct file access protection
#1485Accordions55110120k+slow db query meta query
#1486Easy Quotes551131700Direct Query
#1487Enhanced Category Pages5523252k+Direct Query
#1488Fast Page & Post Duplicator55122560k+Direct Query
#1489Page Tagger5530102k+Output is not escaped
#1490ProductFrame – Curated products from affiliate feeds55385400Direct Query
#1491Fluent Connect – Connect ThriveCart with your WordPress and FluentCRM563754600curl curl setopt
#1492Internal Link Juicer: SEO Auto Linker for WordPress57126190k+Database parameter is not escaped
#1493iZooto – Web Push Notifications5726251k+wp function not compatible with requires wp
#1494Sequential Order Numbers for WooCommerce5792410k+Interpolated SQL is not prepared
#1495WP Table Builder – Drag & Drop Table Builder57633950k+Not Allowed
#1496Contact Form DB for Enfold582114700Output is not escaped
#1497License For Envato5812319k+Non-prefixed global variable
#1498FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses5941148k+Exception output is not escaped
#1499UltraPress – AI Assistant, Chatbot & SEO591238800Non-prefixed global variable
#1500Hide Posts5997020k+Direct Query