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
#1WPPizza – A Restaurant Plugin184,6892,7031k+Text Domain Mismatch
#2Event Organiser201,10454420k+Text Domain Mismatch
#3GiveWP – Donation Plugin and Fundraising Platform203,4103,554100k+Output is not escaped
#4Backup Migration219991,08180k+Non-prefixed global variable
#5Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output is not escaped
#6GeoDirectory – WP Business Directory Plugin and Classified Listings Directory224,4653,98510k+Output is not escaped
#7File Manager227405201m+Unsafe printing function
#8Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe239,39626,6801k+Non-prefixed global variable
#9MediaPress239045833k+Output is not escaped
#10Redirection23523457100k+Non-prefixed global variable
#11UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP236952,44020k+Non-prefixed hook name
#12Clone2324426240k+Output is not escaped
#13WP-CRM System – Manage Clients and Projects232971,094800Non-prefixed global variable
#14WP Migrate Lite – Migration Made Easy23371257200k+Exception output is not escaped
#15WP STAGING – WordPress Backups, Restore, Migration & Clone231,5231,670100k+Non-prefixed global variable
#16404 Solution244831,35510k+Non-prefixed class
#17CM Pop-Up – Create engaging popups to capture attention and boost interaction244664088k+Output is not escaped
#18Simple Calendar – Google Calendar Plugin242,14761150k+Missing direct file access protection
#19Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN243,40886670k+Text Domain Mismatch
#20Softaculous241155010k+file system operations fread
#21Hardcore Google Fonts Localizer25331261800Text Domain Mismatch
#22Index WP MySQL For Speed2525025550k+Output is not escaped
#23Social Media Share Buttons & Social Sharing Icons252,4331,383100k+Unsafe printing function
#24Social Share Icons & Social Share Buttons252,3651,35710k+Output is not escaped
#25WPvivid — Backup, Migration & Staging259031,461900k+Non-prefixed namespace
#26Data Tables Generator by Supsystic2613618510k+Exception output is not escaped
#27RSS Redirect & Feedburner Alternative262772721k+Output is not escaped
#28Custom Scrollbar271841912k+Output is not escaped
#29CM Tooltip Glossary276111887k+Output is not escaped
#30Email Marketing Plugin – WP Email Capture273832621k+Output is not escaped
#31Void Contact Form 7 Widget For Elementor Page Builder282796610k+Text Domain Mismatch
#32Duplicate Post28448255300k+Unsafe printing function
#33Pop-up311039110k+Output is not escaped
#34Ultimate Posts Widget313098610k+Output is not escaped
#35Website Monetization by MageNet33608720k+Output is not escaped
#36CM Search And Replace – Optimize content edits with a powerful search and replace tool342861112k+Output is not escaped
#37Enhanced Text Widget341015830k+Output is not escaped
#38SSL Mixed Content Fix3453658k+Output is not escaped
#39Multi Step Form342771399k+Output is not escaped
#40CM E-Mail Blacklist – Simple email filtering for safer registration35269205700Output is not escaped
#41NewsPlugin358453400Text Domain Mismatch
#42WP System Information3523730700Text Domain Mismatch
#43CM Header and Footer – Add custom scripts and styles to your header and footer with ease362301981k+Output is not escaped
#44Adaptive Images for WordPress3751753k+Output is not escaped
#45WP PHP Version Display90643k+trademarked term
#46Display PHP Version966230k+Missing direct file access protection