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
#401Gravity Forms: Multiple Form Instances3566700Hidden files included
#402IntenseDebate Comments35203114500Output is not escaped
#403Keyring352332031k+Output is not escaped
#404Lenix scss compiler3513334800Exception output is not escaped
#405Publitio354726400curl curl setopt
#406Shipping Zones by Drawing for WooCommerce3527895600Text Domain Mismatch
#407SiteGround Migrator351137470k+Missing Arg Domain
#408WP Mailto Links – Protect Email Addresses3595698k+Output is not escaped
#409WP PGP Encrypted Emails356339400Output is not escaped
#410BuddyMeet3611432700Unsafe printing function
#411Drag and Drop Multiple File Upload for Contact Form 736823660k+wp function not compatible with requires wp
#412Dynamic Front-End Heartbeat Control362171111k+Text Domain Mismatch
#413Dynamic Visibility for Elementor36568950k+Non-prefixed hook name
#414Email Before Download3689296k+Unsafe printing function
#415News Manager3613457600Output is not escaped
#416PDF Forms Filler for CF736185793k+Text Domain Mismatch
#417PDF Forms Filler for WPForms3616154600Text Domain Mismatch
#418Photonic Gallery & Lightbox for Flickr, SmugMug & Others3618016310k+Missing Translators Comment
#419Stripe Tax – Sales tax automation for WooCommerce36976130k+Exception output is not escaped
#420WP LaTeX3610312700Output is not escaped
#421Database Snapshots – WPvivid36661081k+Direct Query
#422Avatar Privacy3782361k+Missing direct file access protection
#423CryptAPI Payment Gateway for WooCommerce3718729400Text Domain Mismatch
#424Customer Email Verification for WooCommerce371651642k+Nonce verification recommended
#425Easy Testimonial Slider and Form3714144700Request data is not unslashed
#426果果推送3731561k+Nonce verification recommended
#427Gmail SMTP37847310k+Unsafe printing function
#428Horizontal scrolling announcements372151408k+Output is not escaped
#429Sensei LMS Certificates37973625k+Non-prefixed global variable
#430Spam Destroyer3763436k+rand rand
#431Website Pop-up Builder by BDOW! (formerly Sumo): Pop-ups + forms for email opt-ins and lead generation37423310k+Output is not escaped
#432Time Clock – A WordPress Employee & Volunteer Time Clock Plugin37166107500Output is not escaped
#433Views for WPForms – Display & Edit WPForms Entries on your site frontend3780641k+Output is not escaped
#434WP Category Permalink3775312k+Output is not escaped
#435FundEngine – Donation and Crowdfunding Platform379091k+Exception output is not escaped
#436Bulgarisation for WooCommerce381285925k+Nonce verification recommended
#437GiveWP Donation Widgets for Elementor38483137k+Text Domain Mismatch
#438SCSS WP Editor3811140900Exception output is not escaped
#439Ninja Forms Views – Display & Edit Ninja Forms Submissions on your site frontend3884491k+Output is not escaped
#440Better Random Redirect398840700Text Domain Mismatch
#441BOX NOW Delivery Croatia396499700Missing nonce verification
#442Contact Form 7 – Dynamic Text Extension3910328100k+Output is not escaped
#443Cookies for Comments39222920k+Input is not validated
#444DefendWP Firewall39162033k+Non-prefixed global variable
#445Serial Number for Contact Form 739105532k+Non Singular String Literal Domain
#446upPrev3935361k+Dynamic hook name
#447WP Sitemap Control393137400Output is not escaped
#448Coupon Generator for WooCommerce40392810k+Unsafe printing function
#449Loan Comparison4027192400Request data is not unslashed
#450Logbook4033592k+Nonce verification recommended