WordPress.DB.PreparedSQLPlaceholders.LikeWildcardsInQueryWithPlaceholder
Like Wildcards In Query With Placeholder
A SQL query is built in a way that Plugin Check cannot verify as safely prepared.
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.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #1 | Go Fetch Jobs (for WP Job Manager) | 19 | 1,410 | 1,741 | 600 | Non-prefixed global variable | ||
| #2 | SendPress Newsletters | 19 | 2,293 | 1,422 | 1k+ | Output is not escaped | ||
| #3 | Pix por Piggly (para Woocommerce) | 20 | 547 | 195 | 4k+ | Exception output is not escaped | ||
| #4 | WPScan – WordPress Security Scanner | 21 | 527 | 265 | 8k+ | Text Domain Mismatch | ||
| #5 | DirectoryPress – Business Directory And Classified Ad Listing | 22 | 4,787 | 2,795 | 700 | Text Domain Mismatch | ||
| #6 | Knowledge Base documentation & wiki plugin – BasePress Docs | 23 | 671 | 1,767 | 2k+ | Non-prefixed global variable | ||
| #7 | Business Directory Plugin – Easy Listing & Member Directories for WordPress | 23 | 611 | 1,077 | 10k+ | Non-prefixed global variable | ||
| #8 | RepairBuddy – Repair Shop CRM & Booking Plugin for WordPress | 23 | 907 | 3,808 | 400 | Request data is not unslashed | ||
| #9 | GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI | 23 | 3,403 | 2,483 | 10k+ | Output is not escaped | ||
| #10 | Logo Slider – Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation | 23 | 1,089 | 407 | 30k+ | Text Domain Mismatch | ||
| #11 | IP Geo Block | 23 | 399 | 589 | 8k+ | Output is not escaped | ||
| #12 | Restaurant Menu and Food Ordering | 23 | 385 | 829 | 2k+ | Non-prefixed global variable | ||
| #13 | Seriously Simple Podcasting | 23 | 547 | 630 | 30k+ | Non-prefixed hook name | ||
| #14 | Media Library Folders | 24 | 892 | 807 | 10k+ | Text Domain Mismatch | ||
| #15 | Pz-LinkCard | 24 | 891 | 1,690 | 20k+ | Non-prefixed global variable | ||
| #16 | Spotlight Social Feeds – Block, Shortcode, and Widget | 24 | 411 | 147 | 60k+ | Output is not escaped | ||
| #17 | GEO Plugin by Squirrly SEO | 24 | 1,238 | 1,585 | 30k+ | Non-prefixed global variable | ||
| #18 | Online Scheduling and Appointment Booking System – Bookly | 25 | 1,166 | 933 | 60k+ | SQL query is not prepared | ||
| #19 | IP Location Block | 25 | 409 | 528 | 10k+ | Output is not escaped | ||
| #20 | MaxGalleria | 26 | 278 | 560 | 2k+ | Non-prefixed global variable | ||
| #21 | Advanced Shipping Rates for WooCommerce: Flexible Table Rate Shipping Rules | 28 | 187 | 505 | 2k+ | Non-prefixed global variable | ||
| #22 | ووکامرس فارسی | 28 | 157 | 215 | 100k+ | Output is not escaped | ||
| #23 | AppPresser – Mobile App Framework | 29 | 262 | 214 | 1k+ | Text Domain Mismatch | ||
| #24 | WP Inventory Manager | 29 | 879 | 260 | 1k+ | Output is not escaped | ||
| #25 | Keywords to Links Converter | 31 | 288 | 144 | 800 | Text Domain Mismatch | ||
| #26 | MapPress – Google Maps, OpenStreetMap & Leaflet | 32 | 700 | 131 | 30k+ | Missing Arg Domain | ||
| #27 | Related Posts for WordPress | 35 | 207 | 180 | 10k+ | Output is not escaped | ||
| #28 | REST API Log | 35 | 79 | 124 | 5k+ | Non-prefixed hook name | ||
| #29 | Decent Comments | 38 | 93 | 28 | 2k+ | Output is not escaped | ||
| #30 | Coding Chicken – JetEngine Importer | 38 | 55 | 29 | 300 | Missing direct file access protection | ||
| #31 | Zippy | 40 | 43 | 31 | 8k+ | Output is not escaped | ||
| #32 | Gelato Integration for WooCommerce | 44 | 60 | 27 | 5k+ | Non Singular String Literal Domain | ||
| #33 | Search by SKU for Woocommerce | 69 | 13 | 10 | 10k+ | Direct Query | ||
| #34 | Vanilla PDF Embed | 85 | 8 | 3 | 3k+ | parse url parse url |