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
#1851Maintenance Redirect3824413210k+Missing Arg Domain
#1852jQuery Pin It Button for Images381293610k+Output is not escaped
#1853Kali Forms — Contact Form & Drag-and-Drop Builder38325210k+Dynamic hook name
#1854Lana Downloads Manager38146783k+Unsafe printing function
#1855LWS Cleaner388112920k+Direct Query
#1856CrawlWP SEO – Instant Search Engine Indexing & SEO Performance Monitor38459540k+Dynamic hook name
#1857Name Directory385203093k+Output is not escaped
#1858Contact Form Widget38541071k+Request data is not unslashed
#1859Page Links To383140100k+Unsafe printing function
#1860Permalink Manager Lite3829178100k+Nonce verification recommended
#1861Podlove Subscribe button38148452k+Output is not escaped
#1862Post views Stats3837511k+Non-prefixed global variable
#1863Quick Download Button38341232k+Non-prefixed global variable
#1864Restrict Widgets38135404k+Non Singular String Literal Domain
#1865Like This3860171k+Output is not escaped
#1866Schema App Structured Data3835867k+Nonce verification recommended
#1867Author Image3851331k+Output is not escaped
#1868LinkBoss – Semantic AI Internal Linking3828572k+Missing Arg Domain
#1869Simple Google Sitemap XML383882k+Output is not escaped
#1870SimpleShop3852501k+date date
#1871Smart Maintenance Mode381371281k+Output is not escaped
#1872Social Icons38728310k+Output is not escaped
#1873Social Snap — Social Share Buttons & Click to Tweet38616910k+Direct Query
#1874SRS Simple Hits Counter3843988k+Output is not escaped
#1875Tag Manager – Header, Body And Footer389731920k+Non-prefixed global variable
#1876Variation Swatches for WooCommerce3845652k+Output is not escaped
#1877Broadcast38211071k+Direct Query
#1878TinyPNG – JPEG, PNG & WebP image compression38196141100k+Output is not escaped
#1879Accessibility Tools & Alt Text Finder3836563k+Text Domain Mismatch
#1880Trash Duplicate and 301 Redirect38131031k+Nonce verification recommended
#1881Unconfirmed3820791k+Nonce verification recommended
#1882Vertical News Scroller38118605k+Output is not escaped
#1883White Label – WordPress Custom Admin, Custom Login Page, and Custom Dashboard382053110k+Output is not escaped
#1884WishSuite – Wishlist for WooCommerce38751271k+Output is not escaped
#1885WPC Frequently Bought Together for WooCommerce388016210k+Output is not escaped
#1886Wholesale for WooCommerce38541221k+Output is not escaped
#1887WP 404 Auto Redirect to Similar Post381664830k+Text Domain Mismatch
#1888WP Accessibility Helper (WAH)38618810k+Missing direct file access protection
#1889WP Client Reports3895806k+Unsafe printing function
#1890WP-DraftsForFriends38141711k+Output is not escaped
#1891Native PHP Sessions38309210k+Direct Query
#1892Real-Time Post Statistics for WordPress3863682k+SQL query is not prepared
#1893WP-ServerInfo381625510k+Output is not escaped
#1894ZeroBounce Email Verification & Validation382991621k+Text Domain Mismatch
#1895Zoho Campaigns3831293k+Non-prefixed global variable
#1896Smart Custom 404 Error Page399044100k+Output is not escaped
#1897Ad Invalid Click Protector (AICP)39785710k+Text Domain Mismatch
#1898Additional Order Filters for WooCommerce39792552k+Nonce verification recommended
#1899Advanced Woo Labels – Product Labels & Badges for WooCommerce3917212210k+Output is not escaped
#1900Load More Anything3938735k+Output is not escaped