WordPress.DB.RestrictedClasses.mysql__mysqli

mysql mysqli

The plugin uses a raw MySQL extension or class instead of WordPress database APIs.

medium weight

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.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution191,218901100k+Exception Not Escaped
#2Backup Migration219811,09380k+Non Prefixed Variable Found
#3rtMedia for WordPress, BuddyPress and bbPress213636338k+Non Prefixed Constant Found
#4FileOrganizer – WordPress File Manager21536241200k+unlink unlink
#5Modular DS: Monitor, update, and backup multiple websites211618140k+Exception Not Escaped
#6Wise Chat214705065k+Output Not Escaped
#7File Manager Pro – Filester22565391100k+Missing Unslash
#8ManageWP Worker225075651m+Non Prefixed Class Found
#9File Manager227405201m+Unsafe Printing Function
#10WP BackItUp Community Edition232579896k+Non Prefixed Variable Found
#11InstaWP Connect – 1-click WP Staging & Migration2425381140k+Non Prefixed Variable Found
#12WP RSS Aggregator – RSS Import, Feed to Post, Autoblogging, AI Content241,77539340k+Text Domain Mismatch
#13Everest Backup – WordPress Cloud Backup, Migration, Restore & Cloning Plugin271221353k+Non Prefixed Variable Found
#14Search & Replace365053100k+Missing