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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1651Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP383443020k+Text Domain Mismatch
#1652Decent Comments3893282k+Output is not escaped
#1653Product Badge, Label, Countdown Timer for WooCommerce – Sale Booster3837985k+Interpolated SQL is not prepared
#1654Easy WP Cleaner38581242k+Non-prefixed global variable
#1655Export User Data38187626k+Text Domain Mismatch
#1656Goal Tracker – Custom Event Tracking for GA438541252k+Output is not escaped
#1657GoDaddy Payments for WooCommerce3858652k+Output is not escaped
#1658GoodBarber3838731k+Nonce verification recommended
#1659Greek Multi Tool – Greeklish Slugs, Permalinks & Transliteration38160821k+Unsafe printing function
#1660HashThemes Demo Importer3871446k+Output is not escaped
#1661Insert PHP Code Snippet3816422790k+Output is not escaped
#16623D FlipBook – PDF Embedder, PDF Flipbook Viewer, Flipbook Image Gallery383537780k+Non Singular String Literal Domain
#1663JC Submenu38279324k+Output is not escaped
#1664Maintenance Redirect3824413210k+Missing Arg Domain
#1665jQuery Pin It Button for Images381293610k+Output is not escaped
#1666Kali Forms — Contact Form & Drag-and-Drop Builder38325210k+Dynamic hook name
#1667Lana Downloads Manager38146783k+Unsafe printing function
#1668LWS Cleaner388112920k+Direct Query
#1669CrawlWP SEO – Instant Search Engine Indexing & SEO Performance Monitor38459240k+Dynamic hook name
#1670Name Directory385203093k+Output is not escaped
#1671Page Links To383140100k+Unsafe printing function
#1672Permalink Manager Lite3829178100k+Nonce verification recommended
#1673Podlove Subscribe button38148452k+Output is not escaped
#1674Quick Download Button38341232k+Non-prefixed global variable
#1675Restrict Widgets38135404k+Non Singular String Literal Domain
#1676Like This3860171k+Output is not escaped
#1677Schema App Structured Data3835867k+Nonce verification recommended
#1678Author Image3851331k+Output is not escaped
#1679LinkBoss – Semantic AI Internal Linking3828572k+Missing Arg Domain
#1680Simple Google Sitemap XML383882k+Output is not escaped
#1681SimpleShop3852501k+date date
#1682Social Icons38728310k+Output is not escaped
#1683Social Snap — Social Share Buttons & Click to Tweet38616910k+Direct Query
#1684SRS Simple Hits Counter3843988k+Output is not escaped
#1685Tag Manager – Header, Body And Footer389731920k+Non-prefixed global variable
#1686Variation Swatches for WooCommerce – Color, Image & Button Swatches3845642k+Output is not escaped
#1687TinyPNG – JPEG, PNG & WebP image compression38196141100k+Output is not escaped
#1688Accessibility Tools & Alt Text Finder3836563k+Text Domain Mismatch
#1689Unconfirmed3820791k+Nonce verification recommended
#1690Vertical News Scroller38118605k+Output is not escaped
#1691White Label – WordPress Custom Admin, Custom Login Page, and Custom Dashboard382053110k+Output is not escaped
#1692WPC Frequently Bought Together for WooCommerce388016210k+Output is not escaped
#1693Wholesale for WooCommerce38541221k+Output is not escaped
#1694WP 404 Auto Redirect to Similar Post381664830k+Text Domain Mismatch
#1695WP Accessibility Helper (WAH)38618810k+Missing direct file access protection
#1696WP Client Reports3895806k+Unsafe printing function
#1697WP-DraftsForFriends38141711k+Output is not escaped
#1698Native PHP Sessions38309210k+Direct Query
#1699Real-Time Post Statistics for WordPress3863682k+SQL query is not prepared
#1700WP-ServerInfo381625510k+Output is not escaped