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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1JetBackup – Backup, Restore & Migrate101,559145100k+Exception Not Escaped
#2wpForo Forum174,0332,92220k+Unsafe Printing Function
#3WPtouch – Make your WordPress Website Mobile-Friendly171,46632550k+Text Domain Mismatch
#4Shopping Cart & eCommerce Store185,45917,2984k+Non Prefixed Variable Found
#5WP Import Export Lite1873897940k+Non Prefixed Variable Found
#6WP Directory Kit182,1192,6172k+Non Prefixed Variable Found
#7Element Pack – Widgets, Templates & Addons for Elementor199,448517100k+Text Domain Mismatch
#8Download Monitor194251,36480k+Non Prefixed Hookname Found
#9Advanced File Manager – Ultimate File Manager for WordPress And Document Library Solution191,218901100k+Exception Not Escaped
#10Realtyna Organic IDX plugin + WPL Real Estate199473,6532k+Non Prefixed Variable Found
#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 Variable Found
#14SendPress Newsletters192,2931,4222k+Output Not Escaped
#15BetterDocs – AI Documentation, Knowledge Base, Docs, Wikis, FAQ with Chatbot205081,40630k+Non Prefixed Variable Found
#16GiveWP – Donation Plugin and Fundraising Platform203,4353,580100k+Output Not Escaped
#17Brevo – Email, SMS, Web Push, Chat, and more.20460646100k+Missing Unslash
#18Microthemer Lite – Visual Editor to Customize CSS201,0041,69910k+Non Prefixed Variable Found
#19Nimble Page Builder201,5911,68430k+Missing Arg Domain
#20Pix por Piggly (para Woocommerce)205471954k+Exception Not Escaped
#21Razorpay for WooCommerce20974855100k+Non Prefixed Function Found
#22WPJAM Basic203283564k+Output Not Escaped
#23Backup Migration219811,09380k+Non Prefixed Variable Found
#24bbPress219293,672100k+Non Prefixed Function Found
#25Pinpoint Booking System – Version 2216343283k+missing direct file access protection
#26Captcha Them All213003236k+Output Not Escaped
#27Smart Grid-Layout Design for Contact Form 7211,12673410k+Output Not Escaped
#28Duplicator – Backups & Migration Plugin – Cloud Backups, Scheduled Backups, & More212,5721,2771m+Output Not Escaped
#29ERP: Complete HR, Accounting & CRM Suite with Recruitment and WooCommerce CRM Support218295,9665k+Direct Query
#30EventPrime – Events Calendar, Bookings and Tickets218724,2977k+Non Prefixed Variable Found
#31FileOrganizer – WordPress File Manager21536241200k+unlink unlink
#32Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More21521,959300k+Non Prefixed Variable Found
#33MotoPress Hotel Booking213,0611,03710k+Text Domain Mismatch
#34OneLogin SAML SSO215083307k+wp function not compatible with requires wp
#35Packeta218023338k+Exception Not Escaped
#36Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction211,9185,06510k+Non Prefixed Hookname Found
#37Razorpay Quick Payments21399633k+Exception Not Escaped
#38Five Star Restaurant Reservations – WordPress Booking Plugin211,0991,14710k+Output Not Escaped
#39Seamless Donations is Sunset216005142k+Text Domain Mismatch
#40Professional Social Sharing Buttons, Icons & Related Posts – Shareaholic2132718110k+Output Not Escaped
#41Accept Stripe Payments2137388220k+Missing
#42Revive Social – Social Media Auto Post and Scheduling Automation Plugin2125542520k+Non Prefixed Hookname Found
#43Buckaroo Woocommerce Payments Plugin215633262k+Exception Not Escaped
#44WebP Express21160427300k+Non Prefixed Variable Found
#45Paysera Payment Gateway for WooCommerce211,8661957k+Exception Not Escaped
#46Wordfence Security – Firewall, Malware Scan, and Login Security211,5922,9735m+Output Not Escaped
#47WP phpMyAdmin214,5286,43550k+Missing Arg Domain
#48wpDataTables – WordPress Data Table, Dynamic Tables & Table Charts Plugin211,3541,14070k+Output Not Escaped
#49Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots221,6042,01910k+Direct Query
#50Captcha by BestWebSoft – Advanced Spam Protection, Math & OCR-Friendly Captcha for Site Forms2249329510k+Text Domain Mismatch