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,567156200k+Exception output is not escaped
#2404 Solution155821,53210k+Non-prefixed class
#3Efí Bank17886553300Exception output is not escaped
#4Shopping Cart & eCommerce Store177,45317,8663k+Non-prefixed global variable
#5WPtouch – Make your WordPress Website Mobile-Friendly171,46632550k+Text Domain Mismatch
#6Administrator Z182,061799400Output is not escaped
#7Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution181,229923100k+Exception output is not escaped
#8GiveWP – Donation Plugin and Fundraising Platform193,4223,570100k+Output is not escaped
#9Really Simple Security – Simple and Performant Security (formerly Really Simple SSL)195303753m+Missing Translators Comment
#10Scrollsequence – Cinematic Scroll Image Animation Plugin198781,5283k+Non-prefixed global variable
#11SendPress Newsletters192,2931,4221k+Output is not escaped
#12WPOSS阿里云对象存储19269315900Non-prefixed namespace
#13WPQiNiu七牛云对象存储19138612400Non-prefixed global variable
#14SysBasics Customize My Account for WooCommerce – Live My Account Customizer207439117k+Non-prefixed global variable
#15Download Monitor204231,36780k+Non-prefixed hook name
#16Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More202,8781,9881m+Non-prefixed global variable
#17EventPrime – Events Calendar, Bookings, Tickets & AI208464,2247k+Non-prefixed global variable
#18GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership201,832720700Non Singular String Literal Domain
#19MBE eShip205277401k+Non-prefixed global variable
#20Brevo – Email, SMS, Web Push, Chat, and more.20460646100k+Request data is not unslashed
#21Microthemer Lite – Visual Editor to Customize CSS201,0041,69910k+Non-prefixed global variable
#22Nimble Page Builder201,5911,68430k+Missing Arg Domain
#23پلاگین پرداخت دلخواه20584446900Text Domain Mismatch
#24Pix por Piggly (para Woocommerce)205471954k+Exception output is not escaped
#25Membership Plugin – Kadence Memberships205,0893,0059k+Text Domain Mismatch
#26Events Manager – OpenStreetMaps20559444600Output is not escaped
#27WP Compress – Instant Performance & Speed Optimization204,2923,6919k+Non Singular String Literal Domain
#28wpForo Forum204,3213,03920k+Unsafe printing function
#29Backup Migration219991,08180k+Non-prefixed global variable
#30Forumax – AI Powered Advanced Community Forum Plugin214,9314,352600Text Domain Mismatch
#31Kadence Security – Password, Two Factor Authentication, and Brute Force Protection211,060959700k+Missing Translators Comment
#32Pinpoint Booking System – Version 2216343283k+Missing direct file access protection
#33Booking Ultra Pro Appointments Booking Calendar Plugin217612,083400Request data is not unslashed
#34Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots211,6582,18010k+Direct Query
#35Captcha Them All213003235k+Output is not escaped
#36Spam protection, Honeypot, Anti-Spam by CleanTalk218351,146200k+Missing nonce verification
#37Event Espresso – Event Registration & Ticketing Sales2112,7102,136600Text Domain Mismatch
#38FileOrganizer – WordPress File Manager21549261200k+unlink unlink
#39Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More21562,148300k+Non-prefixed global variable
#40Mooberry Book Manager211,0403991k+Text Domain Mismatch
#41MultiParcels Shipping For WooCommerce212454264k+Request data is not unslashed
#42OneLogin SAML SSO215073307k+wp function not compatible with requires wp
#43Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction211,9945,33110k+Non-prefixed hook name
#44Razorpay Quick Payments21399632k+Exception output is not escaped
#45Five Star Restaurant Reservations – WordPress Booking Plugin211,1011,15910k+Output is not escaped
#46Seamless Donations is Sunset216005142k+Text Domain Mismatch
#47SeatReg213491,835300Missing nonce verification
#48Professional Social Sharing Buttons, Icons & Related Posts – Shareaholic2132718110k+Output is not escaped
#49Accept Stripe Payments2137389120k+Missing nonce verification
#50TotalPoll for Polls and Contests211,3661551k+Text Domain Mismatch