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

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#1Landing Page Builder – Coming Soon page, Maintenance Mode, Lead Page, WordPress Landing Pages211,1732,9839k+Non Prefixed Variable Found
#2GeoDirectory – WP Business Directory Plugin and Classified Listings Directory224,4623,97210k+Output Not Escaped
#3InfiniteWP Client222,2861,812200k+Exception Not Escaped
#4SEO Redirection Plugin – 301 Redirect Manager2327272710k+Non Prefixed Variable Found
#5Create251,5587676k+Text Domain Mismatch
#6Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals2513735360k+Input Not Sanitized
#7Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization2980162200k+Recommended
#8WP125311781843k+Unsafe Printing Function
#9Paytm Payment Gateway35921043k+Missing Arg Domain
#10Publish to Schedule37195434k+Text Domain Mismatch