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
#151Seriously Simple Podcasting2354862930k+Non-prefixed hook name
#152Simple URLs – Link Cloaking, Product Displays, and Affiliate Link Management232952984k+Non-prefixed global variable
#153Slider Hero with Video Background, Animation231,5651,2533k+Text Domain Mismatch
#154Slider by 10Web – Responsive Image Slider235,81497610k+Output is not escaped
#155Smart Slider 323261268800k+Non-prefixed global variable
#156SportsPress – Sports Club & League Manager234592,24610k+Non-prefixed global variable
#157The Events Calendar233,5093,850700k+Text Domain Mismatch
#158Travelpayouts237691106k+Output is not escaped
#159Directory Listings WordPress plugin – uListing239471,5731k+Non-prefixed global variable
#160W3 Total Cache23307678900k+Non-prefixed global variable
#161Easy Appointment Booking & Scheduling System – Webba Booking Calendar231,6183,3782k+Non-prefixed global variable
#162WHMCS Bridge232474724k+Nonce verification recommended
#163WP BackItUp Community Edition232579896k+Non-prefixed global variable
#164Stripe Payment Forms by WP Full Pay – Accept Credit Card Payments, Donations & Subscriptions231,1131,8629k+Output is not escaped
#165WP Migrate Lite – Migration Made Easy23369255200k+Exception output is not escaped
#166WP STAGING – WordPress Backup, Restore, Migration & Clone231,5041,567100k+Non-prefixed global variable
#167WP Ultimate CSV Importer – WordPress Import & Export for CSV, XML & Excel231,1583,64220k+Interpolated SQL is not prepared
#168WP Webhooks – Automate repetitive tasks by creating powerful automation workflows directly within WordPress234,37689020k+Output is not escaped
#169WPCal.io – Easy Meeting Scheduler23694595900Direct Query
#170Photo Engine (Media Organizer & Lightroom)232526502k+Direct Query
#171Yatra – Travel Booking & Tour Operator Software232,2263,997600Non-prefixed global variable
#172Youzify – BuddyPress Community, User Profile, Social Network & Membership Plugin for WordPress232,3171,7145k+Output is not escaped
#173Zephyr Project Manager236672,4541k+Non-prefixed global variable
#1741 Click Migration & Backup: Free WordPress Migration Plugin with Zero Downtime & Easy Clone24140193400Direct Query
#175404 Solution244831,35510k+Non-prefixed class
#176A2 Optimized WP – Turbocharge and secure your WordPress site2427123160k+Missing Arg Domain
#177AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress245,2341,4647k+Output is not escaped
#178Ad Inserter – Ad Manager & AdSense Ads244,260812300k+Output is not escaped
#179Advanced iFrame248871,12040k+Non-prefixed global variable
#180Affiliates Manager241,2686538k+Unsafe printing function
#181Backuply – Backup, Restore, Migrate and Clone24704551700k+Non-prefixed global variable
#182Barcode Scanner (+Mobile App) – Inventory manager, Order fulfillment system, POS (Point of Sale)241,8651,0891k+Text Domain Mismatch
#183Product Feed Manager For WooCommerce – Sell on 200+ Online Marketplaces242,3173,37510k+slow db query meta key
#184Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder245761,34470k+Non-prefixed global variable
#185Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More2431961140k+Non-prefixed global variable
#186Business Essentials for Contact Form 7246744038k+Text Domain Mismatch
#187CleanTalk Anti-Spam. Spam Firewall & Bot protection248181,092200k+Missing nonce verification
#188CMP – Coming Soon & Maintenance Plugin by NiteoThemes249491,336200k+Non-prefixed global variable
#189RepairBuddy – Repair Shop CRM & Booking Plugin for WordPress248283,665500Request data is not unslashed
#190Contact Form by Supsystic241,9136336k+Non Singular String Literal Domain
#191CRM Perks Forms – WordPress Form Builder248195771k+Output is not escaped
#192Custom CSS247036571k+Output is not escaped
#193Custom Twitter Feeds – A Tweets Widget or X Feed Widget24446922100k+Output is not escaped
#194Customer Reviews for WooCommerce242,2022,44580k+Output is not escaped
#195Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification242334411k+Non-prefixed hook name
#196Event Tickets and Registration243,4094,21790k+Non-prefixed global variable
#197Etsy Integration For WooCommerce241,2464,643900Non-prefixed global variable
#198Featured Image from URL (FIFU)241,65441870k+Non Singular String Literal Domain
#199Forminator Forms – Contact Form, Payment Form & Custom Form Builder248261,314600k+Non-prefixed global variable
#200Simple Calendar – Google Calendar Plugin242,05359250k+Missing direct file access protection