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.

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
#2Administrator Z182,061799400Output is not escaped
#3WPPizza – A Restaurant Plugin184,6892,7031k+Text Domain Mismatch
#4GiveWP – Donation Plugin and Fundraising Platform193,4223,570100k+Output is not escaped
#5Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More202,8781,9881m+Non-prefixed global variable
#6Event Organiser201,10454420k+Text Domain Mismatch
#7Backup Migration219991,08180k+Non-prefixed global variable
#8GeoDirectory – WP Business Directory Plugin and Classified Listings Directory224,3633,92510k+Output is not escaped
#9File Manager227755661m+Unsafe printing function
#10Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe239,58427,7311k+Non-prefixed global variable
#11Simple Calendar – Google Calendar Plugin232,15361250k+Missing direct file access protection
#12Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN233,42887770k+Text Domain Mismatch
#13MediaPress239045833k+Output is not escaped
#14Redirection23523457100k+Non-prefixed global variable
#15UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP236992,44120k+Non-prefixed hook name
#16Clone2324426240k+Output is not escaped
#17WP-CRM System – Manage Clients and Projects232971,094700Non-prefixed global variable
#18WP Migrate Lite – Migration Made Easy23371257200k+Exception output is not escaped
#19WP STAGING – Backups & Restore, Migration & Clone Plugin – Cloud Backups, Scheduled Backups231,6421,839100k+Non-prefixed global variable
#20CM Pop-Up – Create engaging popups to capture attention and boost interaction244664088k+Output is not escaped
#21Softaculous241155010k+file system operations fread
#22Social Media Share Buttons & Social Sharing Icons242,4321,363100k+Unsafe printing function
#23Hardcore Google Fonts Localizer25331261800Text Domain Mismatch
#24Index WP MySQL For Speed2525025550k+Output is not escaped
#25Social Share Icons & Social Share Buttons252,3501,32710k+Output is not escaped
#26WPvivid — Backup, Migration & Staging251,0001,464900k+Non-prefixed namespace
#27RSS Redirect & Feedburner Alternative262772721k+Output is not escaped
#28Custom Scrollbar271841912k+Output is not escaped
#29Data Tables Generator by Supsystic2712915610k+Exception output is not escaped
#30CM Tooltip Glossary276111887k+Output is not escaped
#31Email Marketing Plugin – WP Email Capture273832621k+Output is not escaped
#32Void Contact Form 7 Widget For Elementor Page Builder282796610k+Text Domain Mismatch
#33Duplicate Post28445258300k+Unsafe printing function
#34Pop-up311029110k+Output is not escaped
#35Ultimate Posts Widget313098610k+Output is not escaped
#36Website Monetization by MageNet33608720k+Output is not escaped
#37CM Search And Replace – Optimize content edits with a powerful search and replace tool342861112k+Output is not escaped
#38Enhanced Text Widget341015830k+Output is not escaped
#39SSL Mixed Content Fix3453658k+Output is not escaped
#40Multi Step Form342771399k+Output is not escaped
#41CM E-Mail Blacklist – Simple email filtering for safer registration35269205700Output is not escaped
#42NewsPlugin358453400Text Domain Mismatch
#43WP System Information3523730700Text Domain Mismatch
#44CM Header and Footer – Add custom scripts and styles to your header and footer with ease36230198900Output is not escaped
#45Adaptive Images for WordPress3751753k+Output is not escaped
#46WP PHP Version Display90643k+trademarked term
#47Display PHP Version966230k+Missing direct file access protection