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 |
|---|---|---|---|---|---|---|---|
| #1801 | Modal Window – create popup modal window | 40 | 4 | 170 | 10k+ | Non-prefixed global variable | |
| #1802 | Multiple Featured Images | 40 | 50 | 22 | 5k+ | Output is not escaped | |
| #1803 | Plugin Load Filter | 40 | 76 | 112 | 7k+ | Text Domain Mismatch | |
| #1804 | Quiz Cat – WordPress Quiz Plugin | 40 | 151 | 69 | 5k+ | Output is not escaped | |
| #1805 | Random Banner | 40 | 59 | 125 | 1k+ | Output is not escaped | |
| #1806 | Redirector | 40 | 48 | 32 | 7k+ | Output is not escaped | |
| #1807 | Reseller Store | 40 | 53 | 33 | 1k+ | Output is not escaped | |
| #1808 | Role Based Redirect | 40 | 20 | 96 | 2k+ | Non-prefixed global variable | |
| #1809 | Shortcodes Finder | 40 | 22 | 188 | 4k+ | Nonce verification recommended | |
| #1810 | Simple Page Sidebars | 40 | 55 | 65 | 20k+ | Output is not escaped | |
| #1811 | Statify Widget | 40 | 52 | 13 | 4k+ | Output is not escaped | |
| #1812 | Payment Gateway – nexi Alpha Bank for WooCommerce | 40 | 28 | 45 | 1k+ | Missing nonce verification | |
| #1813 | Word Balloon | 40 | 20 | 125 | 10k+ | Request data is not unslashed | |
| #1814 | WP All Import – Job Listing Import for WP Job Manager | 40 | 35 | 27 | 2k+ | Output is not escaped | |
| #1815 | Media Library Categories | 40 | 29 | 49 | 20k+ | Output is not escaped | |
| #1816 | WP Reroute Email | 40 | 141 | 106 | 1k+ | Output is not escaped | |
| #1817 | WPC Grouped Product for WooCommerce | 40 | 19 | 95 | 3k+ | Request data is not unslashed | |
| #1818 | WPFront Notification Bar | 40 | 222 | 44 | 50k+ | Output is not escaped | |
| #1819 | WPS Menu Exporter | 40 | 47 | 22 | 10k+ | Output is not escaped | |
| #1820 | My YouTube Channel | 40 | 54 | 38 | 5k+ | Output is not escaped | |
| #1821 | Zippy | 40 | 43 | 31 | 9k+ | Output is not escaped | |
| #1822 | AMP for WP – Accelerated Mobile Pages | 41 | 656 | 2,401 | 80k+ | Non-prefixed global variable | |
| #1823 | Alma – Pay in installments or later for WooCommerce | 41 | 116 | 68 | 1k+ | Exception output is not escaped | |
| #1824 | Authenticator | 41 | 59 | 44 | 1k+ | Output is not escaped | |
| #1825 | Auto Focus Keyword for SEO | 41 | 12 | 38 | 2k+ | Input is not validated | |
| #1826 | Auto Image Attributes From Filename With Bulk Updater (Add Alt Text, Image Title For Image SEO) | 41 | 175 | 26 | 100k+ | Unsafe printing function | |
| #1827 | Beautiful Cookie Consent Banner | 41 | 33 | 76 | 40k+ | Non-prefixed global variable | |
| #1828 | BuddyPress Xprofile Custom Field Types | 41 | 39 | 189 | 4k+ | Missing nonce verification | |
| #1829 | Database for CF7 | 41 | 37 | 32 | 2k+ | Text Domain Mismatch | |
| #1830 | DevVN Local Store | 41 | 84 | 28 | 1k+ | Unsafe printing function | |
| #1831 | Disable Everything | 41 | 90 | 16 | 30k+ | Output is not escaped | |
| #1832 | Duplicate Post Page Menu & Custom Post Type | 41 | 35 | 11 | 10k+ | Text Domain Mismatch | |
| #1833 | Duplicate Page and Post | 41 | 26 | 21 | 80k+ | Unsafe printing function | |
| #1834 | Multiple Themes | 41 | 112 | 41 | 10k+ | Output is not escaped | |
| #1835 | Log cleaner for Solid Security | 41 | 65 | 47 | 8k+ | Text Domain Mismatch | |
| #1836 | Mobile Contact Bar | 41 | 94 | 36 | 10k+ | Unsafe printing function | |
| #1837 | Mollie Forms | 41 | 14 | 565 | 3k+ | Request data is not unslashed | |
| #1838 | Native Emoji | 41 | 54 | 37 | 5k+ | Unsafe printing function | |
| #1839 | Social Login | 41 | 8 | 110 | 5k+ | Input is not sanitized | |
| #1840 | Omnibus — show the lowest price | 41 | 35 | 37 | 10k+ | Output is not escaped | |
| #1841 | Optimus – WordPress Image Optimizer | 41 | 52 | 20 | 30k+ | Unsafe printing function | |
| #1842 | OSS Aliyun | 41 | 19 | 40 | 3k+ | Request data is not unslashed | |
| #1843 | Page & Post Notes | 41 | 12 | 77 | 1k+ | Non-prefixed global variable | |
| #1844 | Pods – Custom Content Types and Fields | 41 | 5 | 233 | 100k+ | Direct Query | |
| #1845 | Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News | 41 | 537 | 20k+ | Non-prefixed global variable | ||
| #1846 | Posts 2 Posts | 41 | 42 | 73 | 10k+ | Non Singular String Literal Domain | |
| #1847 | Product Expiry for WooCommerce | 41 | 31 | 85 | 2k+ | Request data is not unslashed | |
| #1848 | Simple Product Options for WooCommerce | 41 | 62 | 41 | 3k+ | Output is not escaped | |
| #1849 | Responsive Plus – Elementor Templates & Starter Sites | 41 | 46 | 307 | 10k+ | Non-prefixed global variable | |
| #1850 | ShinyStat Analytics | 41 | 88 | 25 | 1k+ | Output is not escaped |