WordPress.WP.AlternativeFunctions.rand_seeding_srand

rand seeding srand

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
#1Landing Page Builder – Coming Soon page, Maintenance Mode, Lead Page, WordPress Landing Pages211,1202,9139k+Non-prefixed global variable
#2WP-Lister Lite for eBay216,6965,1282k+Output is not escaped
#3GeoDirectory – WP Business Directory Plugin and Classified Listings Directory224,4653,97610k+Output is not escaped
#4MailChimp Subscribe Form, Optin Builder, PopUp Builder, Form Builder221,1203,0122k+Non-prefixed global variable
#5Slim Jetpack222,5861,9472k+Text Domain Mismatch
#6InfiniteWP Client232,2871,811200k+Exception output is not escaped
#7SEO Redirection Plugin – 301 Redirect Manager2427272510k+Non-prefixed global variable
#8Photo Engine (Media Organizer & Lightroom)242536452k+Direct Query
#9Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals2514335760k+Input is not sanitized
#10Brilliant Web-to-Lead for Salesforce282472442k+Text Domain Mismatch
#11Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization2980163200k+Nonce verification recommended
#12Rublon Multi-Factor Authentication (MFA)30216160400Output is not escaped
#13WP125311781843k+Unsafe printing function
#14Paytm Payment Gateway35921043k+Missing Arg Domain
#15Publish to Schedule37195433k+Text Domain Mismatch