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
#201Infinite Uploads – Offload Media and Video to Cloud Storage24586722800Direct Query
#202Dynamics 365 Integration24383166600Output is not escaped
#203Joli Table Of Contents246531,7557k+Non-prefixed global variable
#204MailerPress – Newsletter, email marketing & AI automation248053,9311k+Direct Query
#205Mailjet Email Marketing2443520610k+Unsafe printing function
#206Mang Board WP241,2134,7209k+Non-prefixed global variable
#207Opt-Out for Google Analytics (DSGVO / GDPR)242901,9783k+Non-prefixed global variable
#208Database Manager – WP Adminer241,0052,75220k+Non-prefixed global variable
#209Post Status Notifier Lite24984451700Missing direct file access protection
#210RSFirewall!245635214k+Output is not escaped
#211RSVP and Event Management243456243k+Direct Query
#212Security Plugin, Firewall & Malware Scanner with Auto Removal241,18877030k+Output is not escaped
#213SEO Engine – Smart SEO with AI, Schema & Redirection for WordPress242393041k+Direct Query
#214Servebolt Optimizer241,9586811k+Text Domain Mismatch
#215ShiftController Employee Shift Scheduling24358196700Output is not escaped
#216Simple Membership242,3731,78940k+Unsafe printing function
#217SiteGuard WP Plugin24359350500k+Output is not escaped
#218SMS Alert – SMS & OTP for WooCommerce, Order Notifications & Abandoned Cart Recovery248311,9034k+Non-prefixed global variable
#219Softaculous241155010k+file system operations fread
#220GEO Plugin by Squirrly SEO241,19522430k+Missing Translators Comment
#221Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe246346529k+Exception output is not escaped
#222Sugar Calendar – Events Calendar, Event Tickets, and Events Management Platform2442895610k+Output is not escaped
#223Support Genix – Helpdesk, AI Chatbot, Knowledge Base & Customer Support Ticketing System245898972k+Non-prefixed global variable
#224Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!24167225400k+Nonce verification recommended
#225TI WooCommerce Wishlist24467546100k+Output is not escaped
#226Ultimate Maps by Supsystic241,03437410k+Non Singular String Literal Domain
#227Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin249382,935200k+Non-prefixed global variable
#228VikRentItems Flexible Rental Management System244,7554,639600Non-prefixed global variable
#229WC Vendors – WooCommerce Multivendor, WooCommerce Marketplace, Product Vendors241685843k+Non-prefixed class
#230Coupon Affiliates – Affiliate Plugin for WooCommerce249473,1335k+Non-prefixed global variable
#231Payment Gateway for PayPal on WooCommerce2415356110k+Nonce verification recommended
#232EU VAT Assistant for WooCommerce241,7424955k+Non Singular String Literal Domain
#233WPML Multilingual & Multicurrency for WooCommerce241,4531,618100k+SQL query is not prepared
#234WP-Appbox244183902k+Missing Arg Domain
#235Iptanus File Upload245091,32510k+Non-prefixed function
#236WP Hotel Booking241,2321,5337k+Non-prefixed global variable
#237WP-Members Membership Plugin2466938250k+Output is not escaped
#238پارسی دیت – Parsi Date24106291100k+Non-prefixed hook name
#239WP Post Author – Author Box, Multiple Authors, Guest Authors & Custom Avatars248611,57310k+Non-prefixed global variable
#240WP-Stateless – Google Cloud Storage241,0364824k+Non Singular String Literal Domain
#241WP Travel Engine – Tour Booking Plugin – Tour Operator Software242,0125,68920k+Non-prefixed global variable
#242Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress242,5812,109100k+Output is not escaped
#243WP User Manager – User Profile Builder & Membership2478753910k+Exception output is not escaped
#244WPIDE – File Manager & Code Editor246101,38640k+Non-prefixed global variable
#245AdRotate Banner Manager251,36384620k+Unsafe printing function
#246Appointment Booking Calendar253271,0551k+Non-prefixed global variable
#247ATUM WooCommerce Inventory Management and Stock Tracking252,6381,30410k+Non Singular String Literal Domain
#248Beaver Builder Page Builder – Drag and Drop Website Builder254,4631,819100k+Text Domain Mismatch
#249BlockSpare – Gutenberg Post Grid Blocks for News, Magazine & Blog Websites251,3271,71410k+Non-prefixed global variable
#250Total Upkeep – WordPress Backup Plugin plus Restore & Migrate by BoldGrid2524385450k+Non-prefixed global variable