WordPress.DB.RestrictedClasses.mysql__mysqli
mysql mysqli
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 | Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution | 18 | 1,229 | 923 | 100k+ | Exception output is not escaped | ||
| #2 | Backup Migration | 21 | 999 | 1,081 | 80k+ | Non-prefixed global variable | ||
| #3 | FileOrganizer – WordPress File Manager | 21 | 549 | 261 | 200k+ | unlink unlink | ||
| #4 | Wise Chat | 21 | 470 | 515 | 5k+ | Output is not escaped | ||
| #5 | File Manager Pro – Filester | 22 | 584 | 411 | 100k+ | Request data is not unslashed | ||
| #6 | File Manager | 22 | 740 | 520 | 1m+ | Unsafe printing function | ||
| #7 | InstaWP Connect – 1-click WP Staging & Migration | 23 | 252 | 817 | 40k+ | Non-prefixed global variable | ||
| #8 | ManageWP Worker | 23 | 501 | 570 | 1m+ | Non-prefixed class | ||
| #9 | WP BackItUp Community Edition | 23 | 257 | 989 | 6k+ | Non-prefixed global variable | ||
| #10 | rtMedia for WordPress, BuddyPress and bbPress | 24 | 293 | 247 | 7k+ | Non-prefixed constant | ||
| #11 | Fix Alt Text | 24 | 544 | 346 | 1k+ | Non Singular String Literal Domain | ||
| #12 | WP RSS Aggregator – RSS Import, Feed to Post, Autoblogging, AI Content | 24 | 1,773 | 399 | 40k+ | Text Domain Mismatch | ||
| #13 | Everest Backup – WordPress Cloud Backup, Migration, Restore & Cloning Plugin | 27 | 123 | 137 | 3k+ | Non-prefixed global variable | ||
| #14 | WPBase Cache | 27 | 189 | 113 | 3k+ | Text Domain Mismatch | ||
| #15 | Search & Replace | 36 | 50 | 53 | 100k+ | Missing nonce verification | ||
| #16 | Transferito: WP Migration | 86 | 18 | 119 | 300 | Non-prefixed global variable |