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,3342,1715k+Text Domain Mismatch
#2JetBackup – Backup, Restore & Migrate101,567156200k+Exception output is not escaped
#3RestroPress – Online Food Ordering System175353,2341k+Non-prefixed global variable
#4Efí Bank17886553300Exception output is not escaped
#5wpForo Forum174,3063,02620k+Unsafe printing function
#6Administrator Z182,061799400Output is not escaped
#7Shopping Cart & eCommerce Store188,24018,4783k+Non-prefixed global variable
#8GiveWP – Donation Plugin and Fundraising Platform193,4023,555100k+Output is not escaped
#9Go Fetch Jobs (for WP Job Manager)191,4101,741600Non-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,993892100k+Exception output is not escaped
#12Netgsm193523481k+Non-prefixed global variable
#13Really Simple Security – Simple and Performant Security (formerly Really Simple SSL)195303753m+Missing Translators Comment
#14SendPress Newsletters192,2931,4221k+Output is not escaped
#15WP Directory Kit191,5022,6412k+Non-prefixed global variable
#16WPOSS阿里云对象存储19269315900Non-prefixed namespace
#17WPQiNiu七牛云对象存储19138612400Non-prefixed global variable
#18Brizy – Page Builder2058572660k+Output is not escaped
#19Broadstreet20434273800Output is not escaped
#20Post Form – Registration Form – Profile Form for User Profiles – Frontend Content Forms for User Submissions (UGC)207362,112900Non-prefixed global variable
#21EventPrime – Events Calendar, Bookings, Tickets & AI208464,2247k+Non-prefixed global variable
#22GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership201,832720700Non Singular String Literal Domain
#23MBE eShip205277401k+Non-prefixed global variable
#24MAS Videos205191,6931k+Non-prefixed global variable
#25Nimble Page Builder201,5911,68430k+Missing Arg Domain
#26پلاگین پرداخت دلخواه20584446900Text Domain Mismatch
#27Pix por Piggly (para Woocommerce)205471954k+Exception output is not escaped
#28Membership Plugin – Kadence Memberships205,0893,0059k+Text Domain Mismatch
#29Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF20556543100k+Output is not escaped
#30Events Manager – OpenStreetMaps20559444600Output is not escaped
#31Booster for WooCommerce – PDF Invoices, Abandoned Cart, Variation Swatches & 100+ Tools207873,41630k+Non-prefixed global variable
#32WP Compress – Instant Performance & Speed Optimization204,2923,69110k+Non Singular String Literal Domain
#33Backup Migration219991,08180k+Non-prefixed global variable
#34Captcha Them All213003235k+Output is not escaped
#35Spam protection, Honeypot, Anti-Spam by CleanTalk218351,146200k+Missing nonce verification
#36Directorist: AI-Powered Business Directory, Listings & Classified Ads214842,32720k+Non-prefixed global variable
#37Event Espresso – Event Registration & Ticketing Sales2112,7102,136600Text Domain Mismatch
#38Feeds for YouTube (YouTube video, channel, and gallery plugin)21503995100k+Output is not escaped
#39Filter Everything — WordPress & WooCommerce Filters2163494350k+Non-prefixed global variable
#40Campaign Monitor for WordPress213864612k+Non-prefixed global variable
#41Front End Users217192,759400Non-prefixed global variable
#42Ibtana – Ecommerce Product Addons211,5481,7186k+Non Singular String Literal Domain
#43JCH Optimize212,2922774k+Output is not escaped
#44Link Library211,9321,38710k+Unsafe printing function
#45Mooberry Book Manager211,0403991k+Text Domain Mismatch
#46Landing Page Builder – Coming Soon page, Maintenance Mode, Lead Page, WordPress Landing Pages211,1202,9138k+Non-prefixed global variable
#47User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor217391,49540k+Non-prefixed global variable
#48Five Star Restaurant Reservations – WordPress Booking Plugin211,1011,15910k+Output is not escaped
#49Royal Addons for Elementor – Addons and Templates Kit for Elementor2112,9972,344600k+Text Domain Mismatch
#50SeatReg213501,842300Missing nonce verification