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 | WPPizza – A Restaurant Plugin | 18 | 4,689 | 2,703 | 1k+ | Text Domain Mismatch | ||
| #2 | Event Organiser | 20 | 1,104 | 544 | 20k+ | Text Domain Mismatch | ||
| #3 | GiveWP – Donation Plugin and Fundraising Platform | 20 | 3,410 | 3,554 | 100k+ | Output is not escaped | ||
| #4 | Backup Migration | 21 | 999 | 1,081 | 80k+ | Non-prefixed global variable | ||
| #5 | Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More | 21 | 2,572 | 1,277 | 1m+ | Output is not escaped | ||
| #6 | GeoDirectory – WP Business Directory Plugin and Classified Listings Directory | 22 | 4,465 | 3,985 | 10k+ | Output is not escaped | ||
| #7 | File Manager | 22 | 740 | 520 | 1m+ | Unsafe printing function | ||
| #8 | Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe | 23 | 9,396 | 26,680 | 1k+ | Non-prefixed global variable | ||
| #9 | MediaPress | 23 | 904 | 583 | 3k+ | Output is not escaped | ||
| #10 | Redirection | 23 | 523 | 457 | 100k+ | Non-prefixed global variable | ||
| #11 | UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP | 23 | 695 | 2,440 | 20k+ | Non-prefixed hook name | ||
| #12 | Clone | 23 | 244 | 262 | 40k+ | Output is not escaped | ||
| #13 | WP-CRM System – Manage Clients and Projects | 23 | 297 | 1,094 | 800 | Non-prefixed global variable | ||
| #14 | WP Migrate Lite – Migration Made Easy | 23 | 371 | 257 | 200k+ | Exception output is not escaped | ||
| #15 | WP STAGING – WordPress Backups, Restore, Migration & Clone | 23 | 1,523 | 1,670 | 100k+ | Non-prefixed global variable | ||
| #16 | 404 Solution | 24 | 483 | 1,355 | 10k+ | Non-prefixed class | ||
| #17 | CM Pop-Up – Create engaging popups to capture attention and boost interaction | 24 | 466 | 408 | 8k+ | Output is not escaped | ||
| #18 | Simple Calendar – Google Calendar Plugin | 24 | 2,147 | 611 | 50k+ | Missing direct file access protection | ||
| #19 | Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN | 24 | 3,408 | 866 | 70k+ | Text Domain Mismatch | ||
| #20 | Softaculous | 24 | 115 | 50 | 10k+ | file system operations fread | ||
| #21 | Hardcore Google Fonts Localizer | 25 | 331 | 261 | 800 | Text Domain Mismatch | ||
| #22 | Index WP MySQL For Speed | 25 | 250 | 255 | 50k+ | Output is not escaped | ||
| #23 | Social Media Share Buttons & Social Sharing Icons | 25 | 2,433 | 1,383 | 100k+ | Unsafe printing function | ||
| #24 | Social Share Icons & Social Share Buttons | 25 | 2,365 | 1,357 | 10k+ | Output is not escaped | ||
| #25 | WPvivid — Backup, Migration & Staging | 25 | 903 | 1,461 | 900k+ | Non-prefixed namespace | ||
| #26 | Data Tables Generator by Supsystic | 26 | 136 | 185 | 10k+ | Exception output is not escaped | ||
| #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 | CM Tooltip Glossary | 27 | 611 | 188 | 7k+ | Output is not escaped | ||
| #30 | Email Marketing Plugin – WP Email Capture | 27 | 383 | 262 | 1k+ | Output is not escaped | ||
| #31 | Void Contact Form 7 Widget For Elementor Page Builder | 28 | 279 | 66 | 10k+ | Text Domain Mismatch | ||
| #32 | Duplicate Post | 28 | 448 | 255 | 300k+ | Unsafe printing function | ||
| #33 | Pop-up | 31 | 103 | 91 | 10k+ | Output is not escaped | ||
| #34 | Ultimate Posts Widget | 31 | 309 | 86 | 10k+ | Output is not escaped | ||
| #35 | Website Monetization by MageNet | 33 | 60 | 87 | 20k+ | Output is not escaped | ||
| #36 | CM Search And Replace – Optimize content edits with a powerful search and replace tool | 34 | 286 | 111 | 2k+ | Output is not escaped | ||
| #37 | Enhanced Text Widget | 34 | 101 | 58 | 30k+ | Output is not escaped | ||
| #38 | SSL Mixed Content Fix | 34 | 53 | 65 | 8k+ | Output is not escaped | ||
| #39 | Multi Step Form | 34 | 277 | 139 | 9k+ | Output is not escaped | ||
| #40 | CM E-Mail Blacklist – Simple email filtering for safer registration | 35 | 269 | 205 | 700 | Output is not escaped | ||
| #41 | NewsPlugin | 35 | 84 | 53 | 400 | Text Domain Mismatch | ||
| #42 | WP System Information | 35 | 237 | 30 | 700 | Text Domain Mismatch | ||
| #43 | CM Header and Footer – Add custom scripts and styles to your header and footer with ease | 36 | 230 | 198 | 1k+ | Output is not escaped | ||
| #44 | Adaptive Images for WordPress | 37 | 51 | 75 | 3k+ | Output is not escaped | ||
| #45 | WP PHP Version Display | 90 | 6 | 4 | 3k+ | trademarked term | ||
| #46 | Display PHP Version | 96 | 6 | 2 | 30k+ | Missing direct file access protection |