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
#1901ELEX WooCommerce Role Based Pricing442131962k+Non-prefixed global variable
#1902Simple Full Screen Background Image44231310k+Output is not escaped
#1903Simple User Avatar44221520k+Output is not escaped
#1904Smart Archive Page Remove448257k+Output is not escaped
#1905UiChemy — Figma Converter for Elementor, Gutenberg and Bricks447859k+Nonce verification recommended
#1906Calculadora de Frete e Campos Checkout para o Brasil44191665k+Missing nonce verification
#1907Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro452611720k+Non-prefixed hook name
#1908Icons Font Loader – Load Web Fonts and Icon Libraries4547332k+Text Domain Mismatch
#1909Inazo's flamingo automatically delete old messages4533204k+Output is not escaped
#1910Evergreen Countdown Timer45193352k+wp function not compatible with requires wp
#1911Jetpack Search459254265k+Text Domain Mismatch
#1912Popup Box – Easily Create WordPress Popups4571517k+Non-prefixed global variable
#1913Product Visibility by User Role for WooCommerce4536356k+Missing Translators Comment
#1914Related Posts By PickPlugins454844k+Non-prefixed global variable
#1915Super Blank451315610k+Missing direct file access protection
#1916ARI Stream Quiz – WordPress Quizzes Builder46212392k+Non-prefixed global variable
#1917Gravity Forms Constant Contact4636273k+Non-prefixed class
#1918Logo Slider – Logo Carousel, Client Logo Slider & Brand Showcase for WordPress461624710k+Non-prefixed global variable
#1919Podcast Player – Your Podcasting Companion461413110k+Non-prefixed global variable
#1920RY Tools for WooCommerce462955k+Non-prefixed class
#1921Updater by BestWebSoft464942192k+Text Domain Mismatch
#1922Widget Disable46191910k+Output is not escaped
#1923WP All Import – Import SEO Settings for Yoast SEO46192620k+Nonce verification recommended
#1924Delete Duplicate Posts4795010k+Direct Query
#1925Show IDs by Echo4721132k+Output is not escaped
#1926GetAutoSEO AI Tool47102441k+Direct Query
#1927Legal Pages – Privacy Policy, Terms & Conditions, GDPR, CCPA, and Cookie Notice Generator47448310k+Missing direct file access protection
#1928Log Emails4719296k+Non-prefixed global variable
#1929Real Media Library: Media Library Folder & File Manager471365100k+Direct Query
#1930Tabby Checkout4733464k+Non-prefixed class
#1931Taxonomy Switcher4723362k+Nonce verification recommended
#1932Userback4713202k+Output is not escaped
#1933Simple Client Dashboard4738362k+Missing direct file access protection
#1934Website Article Monetization By MageNet47172410k+Output is not escaped
#1935QuadLayers TikTok Feed4778527k+Text Domain Mismatch
#1936Compress, Resize & Lazy Load Images – WPvivid Image Optimization471075810k+Missing direct file access protection
#1937XML Sitemap & Google News47270224100k+Non-prefixed global variable
#1938AnWP Post Grid and Post Carousel Slider for Elementor4875817120k+Text Domain Mismatch
#1939Disable Author Pages482356k+Unsafe printing function
#1940Jetpack Social4882925430k+Text Domain Mismatch
#1941Simple Custom Post Order481077300k+Direct Query
#1942Easy Updates Manager4813182300k+Non-prefixed global variable
#1943WPC Smart Wishlist for WooCommerce484438100k+Output is not escaped
#1944WP Remote Users Sync483551176k+Text Domain Mismatch
#1945WS Action Scheduler Cleaner4813802k+error log error log
#1946Drag and Drop Multiple File Upload for WooCommerce49114295k+Text Domain Mismatch
#1947GDPR Tools: comment ip removement4918132k+Unsafe printing function
#1948Easy Property Listings4960665k+wp function not compatible with requires wp
#1949Anti-Spam Protection – No API Key, GDPR Friendly4921061k+Direct Query
#1950OneClick Chat to Order496774140k+Text Domain Mismatch