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.

medium weight

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.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1551Advanced Accordion Gutenberg Block – Create Beautiful FAQs, Content Accordions & Interactive Tabs37403610k+Missing direct file access protection
#1552Advanced Media Offloader3759935k+error log error log
#1553Anything Popup371641852k+Non-prefixed global variable
#1554Async JavaScript373577970k+Unsafe printing function
#1555Banhammer – Monitor Site Traffic, Block Bad Users and Bots371041741k+Output is not escaped
#1556Call Now Button – The #1 Click to Call Button for WordPress371,2735200k+Exception output is not escaped
#1557Carousel Upsells and Related Product for Woocommerce37173351k+Output is not escaped
#1558ClickRank – Ai SEO Automation37102261k+Direct Query
#1559Co-Authors Plus372011020k+Nonce verification recommended
#1560Constant Contact Forms by MailMunch37135912k+Output is not escaped
#1561CookieAdmin – Cookie Consent Banner374386400k+Nonce verification recommended
#1562CorvusPay WooCommerce Payment Gateway37291411k+Missing nonce verification
#1563Simple Custom CSS and JS3716869600k+Output is not escaped
#1564Debug Log Manager Tool37331083k+Nonce verification recommended
#1565Comment Cleaner — Bulk Delete & Disable Comments372047820k+Non Singular String Literal Domain
#1566Disclaimer Popup37313531k+Text Domain Mismatch
#1567Pricing Table WordPress Plugin – Easy Pricing Tables3733216110k+Output is not escaped
#1568Exploit Scanner37251308k+Non-prefixed global variable
#1569Favorites3720412110k+Unsafe printing function
#1570Get Custom Field Values3740441k+Output is not escaped
#1571Google for WooCommerce37328121800k+Exception output is not escaped
#1572XML Sitemap Generator for Google3743791m+Input is not validated
#1573GS Portfolio for Envato37155754k+Text Domain Mismatch
#1574Gutena Forms – Contact Form, Survey Form, Feedback Form, Booking Form, and Custom Form Builder378311320k+SQL query is not prepared
#1575HandL UTM Grabber / Tracker372714110k+Missing nonce verification
#1576Horizontal scrolling announcements372151408k+Output is not escaped
#1577Icegram Mailer – Reliable Email Deliverability, No-code SMTP Replacement & Email logs37371021k+Non-prefixed global variable
#1578WP All Import – Import SEO Settings for Rank Math SEO3740517k+Nonce verification recommended
#1579JS Help Desk – AI-Powered Support & Ticketing System37174067k+Missing nonce verification
#1580LearnPress – Course Review37674320k+Output is not escaped
#1581Lightbox with PhotoSwipe371792420k+Output is not escaped
#1582LiveJournal Importer3786678k+Output is not escaped
#1583MailMunch – Grow your Email List3782846k+Output is not escaped
#1584Maintenance Page3762333k+Output is not escaped
#1585Metorik – Reports & Email Automation for WooCommerce37757010k+Output is not escaped
#1586NextGEN Scroll Gallery3733281k+Output is not escaped
#1587Ninja Van (MY)37212581k+Non-prefixed global variable
#1588WP All Export – Order Export for WooCommerce371091113k+Text Domain Mismatch
#1589OSM – OpenStreetMap371306410k+Output is not escaped
#1590Page scroll to id3738120100k+Missing nonce verification
#1591Phoenix Media Rename3717510450k+Output is not escaped
#1592PNG to JPG371301739k+Interpolated SQL is not prepared
#1593Poptics – Popup Builder, Email Opt-ins, Exit-Intent & WooCommerce Popups Sales3759642k+SQL query is not prepared
#1594Publish to Schedule37195434k+Text Domain Mismatch
#1595Recent Posts Widget With Thumbnails3722246100k+Output is not escaped
#1596RSS Image Feed37147162k+Output is not escaped
#1597Ryviu – Review Importer & Product Reviews3772951k+Output is not escaped
#1598Send PDF for Contact Form 737223089k+Non-prefixed global variable
#1599Sensei LMS Certificates37973625k+Non-prefixed global variable
#1600Snippet Shortcodes373591334k+Non Singular String Literal Domain