WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info
mysql mysqli get server info
The plugin uses a raw MySQL extension or class instead of WordPress database APIs.
Why It Shows Up
The scan found `mysql_*`, `mysqli_*`, PDO MySQL, or related database functions in plugin code.
Why It Matters
Bypassing `$wpdb` can ignore WordPress database configuration, escaping conventions, character sets, and compatibility layers.
How to Fix
- Replace raw MySQL calls with `$wpdb` methods or higher-level WordPress APIs.
- Use `$wpdb->prepare()` for dynamic values.
- If a third-party library requires a database connection, isolate it and document why WordPress APIs cannot be used.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #1 | 404 Solution | 15 | 582 | 1,532 | 10k+ | Non-prefixed class | ||
| #2 | Administrator Z | 18 | 2,061 | 799 | 400 | Output is not escaped | ||
| #3 | WPPizza – A Restaurant Plugin | 18 | 4,689 | 2,703 | 1k+ | Text Domain Mismatch | ||
| #4 | GiveWP – Donation Plugin and Fundraising Platform | 19 | 3,422 | 3,570 | 100k+ | Output is not escaped | ||
| #5 | Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More | 20 | 2,878 | 1,988 | 1m+ | Non-prefixed global variable | ||
| #6 | Event Organiser | 20 | 1,104 | 544 | 20k+ | Text Domain Mismatch | ||
| #7 | Backup Migration | 21 | 999 | 1,081 | 80k+ | Non-prefixed global variable | ||
| #8 | GeoDirectory – WP Business Directory Plugin and Classified Listings Directory | 22 | 4,363 | 3,925 | 10k+ | Output is not escaped | ||
| #9 | File Manager | 22 | 775 | 566 | 1m+ | Unsafe printing function | ||
| #10 | Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe | 23 | 9,584 | 27,731 | 1k+ | Non-prefixed global variable | ||
| #11 | Simple Calendar – Google Calendar Plugin | 23 | 2,153 | 612 | 50k+ | Missing direct file access protection | ||
| #12 | Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN | 23 | 3,428 | 877 | 70k+ | Text Domain Mismatch | ||
| #13 | MediaPress | 23 | 904 | 583 | 3k+ | Output is not escaped | ||
| #14 | Redirection | 23 | 523 | 457 | 100k+ | Non-prefixed global variable | ||
| #15 | UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP | 23 | 699 | 2,441 | 20k+ | Non-prefixed hook name | ||
| #16 | Clone | 23 | 244 | 262 | 40k+ | Output is not escaped | ||
| #17 | WP-CRM System – Manage Clients and Projects | 23 | 297 | 1,094 | 700 | Non-prefixed global variable | ||
| #18 | WP Migrate Lite – Migration Made Easy | 23 | 371 | 257 | 200k+ | Exception output is not escaped | ||
| #19 | WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups | 23 | 1,642 | 1,839 | 100k+ | Non-prefixed global variable | ||
| #20 | CM Pop-Up – Create engaging popups to capture attention and boost interaction | 24 | 466 | 408 | 8k+ | Output is not escaped | ||
| #21 | Softaculous | 24 | 115 | 50 | 10k+ | file system operations fread | ||
| #22 | Social Media Share Buttons & Social Sharing Icons | 24 | 2,432 | 1,363 | 100k+ | Unsafe printing function | ||
| #23 | Hardcore Google Fonts Localizer | 25 | 331 | 261 | 800 | Text Domain Mismatch | ||
| #24 | Index WP MySQL For Speed | 25 | 250 | 255 | 50k+ | Output is not escaped | ||
| #25 | Social Share Icons & Social Share Buttons | 25 | 2,350 | 1,327 | 10k+ | Output is not escaped | ||
| #26 | WPvivid — Backup, Migration & Staging | 25 | 1,000 | 1,464 | 900k+ | Non-prefixed namespace | ||
| #27 | RSS Redirect & Feedburner Alternative | 26 | 277 | 272 | 1k+ | Output is not escaped | ||
| #28 | Custom Scrollbar | 27 | 184 | 191 | 2k+ | Output is not escaped | ||
| #29 | Data Tables Generator by Supsystic | 27 | 129 | 156 | 10k+ | Exception output is not escaped | ||
| #30 | CM Tooltip Glossary | 27 | 611 | 188 | 7k+ | Output is not escaped | ||
| #31 | Email Marketing Plugin – WP Email Capture | 27 | 383 | 262 | 1k+ | Output is not escaped | ||
| #32 | Void Contact Form 7 Widget For Elementor Page Builder | 28 | 279 | 66 | 10k+ | Text Domain Mismatch | ||
| #33 | Duplicate Post | 28 | 445 | 258 | 300k+ | Unsafe printing function | ||
| #34 | Pop-up | 31 | 102 | 91 | 10k+ | Output is not escaped | ||
| #35 | Ultimate Posts Widget | 31 | 309 | 86 | 10k+ | Output is not escaped | ||
| #36 | Website Monetization by MageNet | 33 | 60 | 87 | 20k+ | Output is not escaped | ||
| #37 | CM Search And Replace – Optimize content edits with a powerful search and replace tool | 34 | 286 | 111 | 2k+ | Output is not escaped | ||
| #38 | Enhanced Text Widget | 34 | 101 | 58 | 30k+ | Output is not escaped | ||
| #39 | SSL Mixed Content Fix | 34 | 53 | 65 | 8k+ | Output is not escaped | ||
| #40 | Multi Step Form | 34 | 277 | 139 | 9k+ | Output is not escaped | ||
| #41 | CM E-Mail Blacklist – Simple email filtering for safer registration | 35 | 269 | 205 | 700 | Output is not escaped | ||
| #42 | NewsPlugin | 35 | 84 | 53 | 400 | Text Domain Mismatch | ||
| #43 | WP System Information | 35 | 237 | 30 | 700 | Text Domain Mismatch | ||
| #44 | CM Header and Footer – Add custom scripts and styles to your header and footer with ease | 36 | 230 | 198 | 900 | Output is not escaped | ||
| #45 | Adaptive Images for WordPress | 37 | 51 | 75 | 3k+ | Output is not escaped | ||
| #46 | WP PHP Version Display | 90 | 6 | 4 | 3k+ | trademarked term | ||
| #47 | Display PHP Version | 96 | 6 | 2 | 30k+ | Missing direct file access protection |