WordPress.DB.RestrictedFunctions.mysql_mysqli_fetch_array

mysql mysqli fetch array

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

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1404 Solution155821,53210k+Non-prefixed class
#2Brizy – Page Builder2058572660k+Output is not escaped
#3Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More202,8791,9791m+Non-prefixed global variable
#4Backup Migration219991,08180k+Non-prefixed global variable
#5wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin211,8291,53460k+Output is not escaped
#6Free 1-Click WordPress Migration24224244300Direct Query
#7Backuply – Backup, Restore, Migrate and Clone24729553600k+Non-prefixed global variable
#8Softaculous241155010k+file system operations fread
#9SQL Executioner7018172k+Non-prefixed global variable
#10Run SQL Query78138500Non-prefixed global variable