WordPress.DB.DirectDatabaseQuery.NoCaching
No Caching
The plugin runs a direct database query instead of using a higher-level WordPress API or cache-aware pattern.
Why It Shows Up
Plugin Check found `$wpdb` access that queries the database directly, changes schema, or bypasses normal caching expectations.
Why It Matters
Direct queries can be correct, but they are easier to make unsafe, slower at scale, and harder for WordPress to cache or filter.
How to Fix
- Use WordPress APIs such as post, term, metadata, option, or user functions when they fit the task.
- If direct SQL is necessary, prepare dynamic values and add a clear caching strategy for repeated reads.
- Keep schema changes in activation or upgrade routines and make them idempotent.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #1151 | Ultimate Store Kit – Addon For WooCommerce, EDD and Elementor | 32 | 57 | 293 | 4k+ | Post Not In exclude | |
| #1152 | Unbounce Landing Pages | 32 | 169 | 86 | 10k+ | Output Not Escaped | |
| #1153 | WebwinkelKeur: Webshop keurmerk & reviews for WordPress | 32 | 200 | 47 | 4k+ | Echo Found | |
| #1154 | BEAR – Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net | 32 | 5 | 933 | 40k+ | Non Prefixed Variable Found | |
| #1155 | wp-jalali | 32 | 219 | 66 | 10k+ | Text Domain Mismatch | |
| #1156 | SEOPress – AI SEO Plugin & On-site SEO | 32 | 138 | 429 | 300k+ | Non Prefixed Variable Found | |
| #1157 | WP-Stats | 32 | 237 | 126 | 2k+ | Output Not Escaped | |
| #1158 | Privacy Policy Generator – WPLP Legal Pages | 32 | 26 | 396 | 10k+ | Non Prefixed Variable Found | |
| #1159 | YITH Infinite Scrolling | 32 | 387 | 1,417 | 10k+ | Non Prefixed Variable Found | |
| #1160 | YITH WooCommerce Badge Management | 32 | 413 | 1,446 | 10k+ | Non Prefixed Variable Found | |
| #1161 | YITH WooCommerce Compare | 32 | 422 | 1,508 | 100k+ | Non Prefixed Variable Found | |
| #1162 | YITH WooCommerce Quick View | 32 | 388 | 1,420 | 90k+ | Non Prefixed Variable Found | |
| #1163 | Extra Product Options Builder for WooCommerce | 33 | 101 | 155 | 2k+ | Non Prefixed Hookname Found | |
| #1164 | Advanced Forms for ACF | 33 | 169 | 278 | 3k+ | Non Prefixed Hookname Found | |
| #1165 | Auto Listings – Car Listings & Car Dealership Plugin for WordPress | 33 | 80 | 321 | 2k+ | Non Prefixed Variable Found | |
| #1166 | Premium Portfolio Features for Phlox theme | 33 | 204 | 137 | 40k+ | Output Not Escaped | |
| #1167 | AWeber – Free Sign Up Form and Landing Page Builder Plugin for Lead Generation and Email Newsletter Growth | 33 | 33 | 229 | 9k+ | Non Prefixed Variable Found | |
| #1168 | Nexi XPay | 33 | 496 | 277 | 6k+ | Text Domain Mismatch | |
| #1169 | Chartify – WordPress Chart Plugin | 33 | 76 | 411 | 3k+ | Non Prefixed Variable Found | |
| #1170 | ChatHelp – Click to Chat Button, WooCommerce Chat to Order & Floating Chat Form | 33 | 57 | 204 | 1k+ | Non Prefixed Variable Found | |
| #1171 | Clicky Analytics | 33 | 166 | 92 | 10k+ | Output Not Escaped | |
| #1172 | Companion Auto Update | 33 | 159 | 298 | 50k+ | Direct Query | |
| #1173 | Companion Sitemap Generator – Simple, Smart, and SEO-Ready | 33 | 118 | 57 | 7k+ | Missing Translators Comment | |
| #1174 | Cooked – Recipe Management | 33 | 412 | 271 | 3k+ | Output Not Escaped | |
| #1175 | Easy Timer | 33 | 78 | 450 | 1k+ | Non Prefixed Variable Found | |
| #1176 | EchBay Phonering Alo | 33 | 74 | 47 | 1k+ | Output Not Escaped | |
| #1177 | Gallery Custom Links | 33 | 64 | 62 | 30k+ | Non Singular String Literal Domain | |
| #1178 | GDPR Cookie Compliance – Cookie Banner, Cookie Consent, Cookie Notice for CCPA, EU Cookie Law | 33 | 48 | 370 | 300k+ | Non Prefixed Variable Found | |
| #1179 | Flipbox – Awesomes Flip Boxes Image Overlay | 33 | 400 | 7,279 | 10k+ | Input Not Validated | |
| #1180 | ThumbPress – Compress Images, Manage Thumbnails, Detect Image Issues, WebP/AVIF, Lazy Loading, Hotlinking & More | 33 | 101 | 289 | 30k+ | Non Prefixed Variable Found | |
| #1181 | Image Source Control Lite – Show Image Credits and Captions | 33 | 140 | 221 | 3k+ | Non Prefixed Hookname Found | |
| #1182 | ImageLinks – Interactive Image Builder with Hotspots | 33 | 517 | 90 | 1k+ | Text Domain Mismatch | |
| #1183 | WPZOOM Social Feed Widget & Block | 33 | 310 | 278 | 60k+ | Unsafe Printing Function | |
| #1184 | Intagrate Lite | 33 | 94 | 152 | 4k+ | date date | |
| #1185 | ITRO Popup Plugin | 33 | 591 | 135 | 6k+ | Output Not Escaped | |
| #1186 | Logo Showcase Ultimate – Logo Carousel, Logo Slider & Logo Grid | 33 | 274 | 106 | 3k+ | Text Domain Mismatch | |
| #1187 | LWSCache | 33 | 47 | 104 | 6k+ | Non Prefixed Variable Found | |
| #1188 | Forms for Mailchimp by Optin Cat – Grow Your MailChimp List | 33 | 71 | 133 | 2k+ | missing direct file access protection | |
| #1189 | MWB HubSpot for WooCommerce – CRM, Abandoned Cart, Email Marketing, Marketing Automation & Analytics | 33 | 26 | 279 | 7k+ | Non Prefixed Variable Found | |
| #1190 | MAS Companies For WP Job Manager | 33 | 62 | 308 | 1k+ | Non Prefixed Hookname Found | |
| #1191 | Members – Membership & User Role Editor Plugin | 33 | 234 | 244 | 300k+ | Output Not Escaped | |
| #1192 | Mollie Payments for WooCommerce | 33 | 70 | 123 | 100k+ | Dynamic Hookname Found | |
| #1193 | News Announcement Scroll | 33 | 237 | 259 | 2k+ | Non Prefixed Variable Found | |
| #1194 | PhonePe Payment Solutions | 33 | 76 | 105 | 10k+ | missing direct file access protection | |
| #1195 | Pixelgrade Assistant | 33 | 665 | 141 | 2k+ | Text Domain Mismatch | |
| #1196 | Post Lists View Custom | 33 | 462 | 150 | 2k+ | Missing Arg Domain | |
| #1197 | PublishPress Checklists: Pre-Publishing Approval Checklist – Validate Post Requirements | 33 | 140 | 182 | 3k+ | Missing Translators Comment | |
| #1198 | Frisbii Pay | 33 | 91 | 292 | 1k+ | Non Prefixed Variable Found | |
| #1199 | Schema & Structured Data for WP & AMP | 33 | 63 | 246 | 100k+ | Non Prefixed Variable Found | |
| #1200 | SMTP2GO for WordPress – Email Made Easy | 33 | 186 | 111 | 30k+ | Output Not Escaped |