WordPress.WP.AlternativeFunctions.rand_mt_rand

rand mt rand

The plugin uses a random function that may not be appropriate for the task.

medium weight

Why It Shows Up

The scan found functions such as `rand()`, `mt_rand()`, `srand()`, or `mt_srand()`.

Why It Matters

General random functions are not suitable for security-sensitive tokens and manual seeding can reduce randomness.

How to Fix

  • Use `wp_rand()` for ordinary WordPress randomness.
  • Use PHP cryptographic randomness for security-sensitive tokens.
  • Avoid manual random seeding unless there is a narrow, documented reason.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#1JetBackup – Backup, Restore & Migrate101,559145100k+Exception output is not escaped
#2Efí Bank17886553400Exception output is not escaped
#3wpForo Forum174,0332,92220k+Unsafe printing function
#4WPtouch – Make your WordPress Website Mobile-Friendly171,46632550k+Text Domain Mismatch
#5Shopping Cart & eCommerce Store185,45917,2984k+Non-prefixed global variable
#6WP Directory Kit182,1192,6172k+Non-prefixed global variable
#7Element Pack – Widgets, Templates & Addons for Elementor199,448517100k+Text Domain Mismatch
#8Download Monitor194251,36480k+Non-prefixed hook name
#9Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution191,218901100k+Exception output is not escaped
#10Realtyna Organic IDX plugin + WPL Real Estate199473,6532k+Non-prefixed global variable
#11Really Simple Security – Simple and Performant Security (formerly Really Simple SSL)195413853m+Missing Translators Comment
#12Membership Plugin – Kadence Memberships195,0822,9829k+Text Domain Mismatch
#13Scrollsequence – Cinematic Scroll Image Animation Plugin198781,5284k+Non-prefixed global variable
#14SendPress Newsletters192,2931,4222k+Output is not escaped
#15WP Import Export Lite1973797940k+Non-prefixed global variable
#16WPOSS阿里云对象存储192693151k+Non-prefixed namespace
#17WPQiNiu七牛云对象存储19138612400Non-prefixed global variable
#18SysBasics Customize My Account for WooCommerce – Live My Account Customizer208759098k+Non-prefixed global variable
#19Event Espresso – Event Registration & Ticketing Sales2012,6982,135600Text Domain Mismatch
#20GiveWP – Donation Plugin and Fundraising Platform203,4353,575100k+Output is not escaped
#21GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership201,832720800Non Singular String Literal Domain
#22Leaky Paywall20320782700Nonce verification recommended
#23MBE eShip205277401k+Non-prefixed global variable
#24Brevo – Email, SMS, Web Push, Chat, and more.20460646100k+Request data is not unslashed
#25Microthemer Lite – Visual Editor to Customize CSS201,0041,69910k+Non-prefixed global variable
#26Nimble Page Builder201,5911,68430k+Missing Arg Domain
#27پلاگین پرداخت دلخواه20584446900Text Domain Mismatch
#28Pix por Piggly (para Woocommerce)205471954k+Exception output is not escaped
#29Events Manager – OpenStreetMaps20559444700Output is not escaped
#30Razorpay for WooCommerce20974855100k+Non-prefixed function
#31WPJAM Basic203283564k+Output is not escaped
#32Backup Migration219811,09380k+Non-prefixed global variable
#33Forumax – AI Powered Advanced Community Forum Plugin214,9364,357600Text Domain Mismatch
#34bbPress219293,672100k+Non-prefixed function
#35Pinpoint Booking System – Version 2216343283k+Missing direct file access protection
#36Booking Ultra Pro Appointments Booking Calendar Plugin217612,083400Request data is not unslashed
#37Captcha Them All213003236k+Output is not escaped
#38Smart Grid-Layout Design for Contact Form 7211,12673410k+Output is not escaped
#39Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output is not escaped
#40Ebook Store216661,087700Non-prefixed global variable
#41ERP: Complete HR, Recruitment, Accounting & CRM Suite with WooCommerce CRM Support218295,9665k+Direct Query
#42EventPrime – Events Calendar, Bookings and Tickets218724,2977k+Non-prefixed global variable
#43FileOrganizer – WordPress File Manager21536241200k+unlink unlink
#44Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More21521,959300k+Non-prefixed global variable
#45Frontend Dashboard21384945500Non-prefixed function
#46Mooberry Book Manager211,0403991k+Text Domain Mismatch
#47MotoPress Hotel Booking213,0611,03710k+Text Domain Mismatch
#48OneLogin SAML SSO215083307k+wp function not compatible with requires wp
#49Packeta218023338k+Exception output is not escaped
#50Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction211,9185,06510k+Non-prefixed hook name