WordPress.WP.AlternativeFunctions.rand_rand

rand 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
#1Themify Builder95,3042,1365k+Text Domain Mismatch
#2JetBackup – Backup, Restore & Migrate101,563149200k+Exception output is not escaped
#3RestroPress – Online Food Ordering System175243,1551k+Non-prefixed global variable
#4Efí Bank17886553400Exception output is not escaped
#5wpForo Forum174,0482,92220k+Unsafe printing function
#6Podlove Podcast Publisher182,3541,4333k+Output is not escaped
#7Realtyna Organic IDX plugin + WPL Real Estate189303,6362k+Non-prefixed global variable
#8Shopping Cart & eCommerce Store185,37317,4663k+Non-prefixed global variable
#9Go Fetch Jobs (for WP Job Manager)191,4101,741700Non-prefixed global variable
#10Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)193,2753,2289k+Output is not escaped
#11Matomo Analytics – Powerful, Privacy-First Insights for WordPress191,900877100k+Exception output is not escaped
#12Netgsm193343081k+Setting is missing a sanitization callback
#13Really Simple Security – Simple and Performant Security (formerly Really Simple SSL)195363793m+Missing Translators Comment
#14Membership Plugin – Kadence Memberships195,0822,9829k+Text Domain Mismatch
#15SendPress Newsletters192,2931,4221k+Output is not escaped
#16WP Import Export Lite1973797940k+Non-prefixed global variable
#17WP Directory Kit191,5042,6382k+Non-prefixed global variable
#18WPJAM Basic193253464k+Output is not escaped
#19WPOSS阿里云对象存储19269315900Non-prefixed namespace
#20WPQiNiu七牛云对象存储19138612400Non-prefixed global variable
#21Brizy – Page Builder2058672670k+Output is not escaped
#22Broadstreet20434273700Output is not escaped
#23Post Form – Registration Form – Profile Form for User Profiles – Frontend Content Forms for User Submissions (UGC)207362,112900Non-prefixed global variable
#24Event Espresso – Event Registration & Ticketing Sales2012,6982,135600Text Domain Mismatch
#25GiveWP – Donation Plugin and Fundraising Platform203,4113,559100k+Output is not escaped
#26GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership201,832720700Non Singular String Literal Domain
#27Link Library201,9421,39410k+Unsafe printing function
#28MBE eShip205277401k+Non-prefixed global variable
#29MAS Videos205191,6931k+Non-prefixed global variable
#30Nimble Page Builder201,5911,68430k+Missing Arg Domain
#31پلاگین پرداخت دلخواه20584446900Text Domain Mismatch
#32Pix por Piggly (para Woocommerce)205471954k+Exception output is not escaped
#33Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF20556543100k+Output is not escaped
#34Events Manager – OpenStreetMaps20559444700Output is not escaped
#35Razorpay for WooCommerce20975859100k+Non-prefixed function
#36Backup Migration219811,09380k+Non-prefixed global variable
#37Captcha Them All213003235k+Output is not escaped
#38CartFlows – Funnel Builder & Checkout Plugin for WooCommerce21462656200k+Text Domain Mismatch
#39Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output is not escaped
#40EventPrime – Events Calendar, Bookings and Tickets218734,3087k+Non-prefixed global variable
#41Feeds for YouTube (YouTube video, channel, and gallery plugin)21558978100k+Output is not escaped
#42Filter Everything — WordPress & WooCommerce Filters2164393350k+Non-prefixed global variable
#43Campaign Monitor for WordPress213864612k+Non-prefixed global variable
#44Front End Users217192,759400Non-prefixed global variable
#45Frontend Dashboard21384945500Non-prefixed function
#46Mooberry Book Manager211,0403991k+Text Domain Mismatch
#47MotoPress Hotel Booking213,0671,03710k+Text Domain Mismatch
#48Landing Page Builder – Coming Soon page, Maintenance Mode, Lead Page, WordPress Landing Pages211,1202,9139k+Non-prefixed global variable
#49User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor217031,46340k+Missing Translators Comment
#50Five Star Restaurant Reservations – WordPress Booking Plugin211,1011,15910k+Output is not escaped