WordPress.WP.AlternativeFunctions.rand_mt_rand
rand mt rand
The plugin uses a random function that may not be appropriate for the task.
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
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #451 | Omnibus — show the lowest price | 41 | 35 | 37 | 10k+ | Output is not escaped | ||
| #452 | OSS Aliyun | 41 | 19 | 40 | 4k+ | Request data is not unslashed | ||
| #453 | Simple Lightbox | 41 | 21 | 48 | 100k+ | Nonce verification recommended | ||
| #454 | Simple Revision Control | 41 | 34 | 43 | 1k+ | Dynamic hook name | ||
| #455 | Mailster Cool Captcha | 42 | 65 | 28 | 400 | Text Domain Mismatch | ||
| #456 | PuSHPress | 42 | 11 | 65 | 20k+ | Missing nonce verification | ||
| #457 | SALERT – Fake Sales Notification WooCommerce | 42 | 41 | 67 | 8k+ | Non-prefixed global variable | ||
| #458 | Event Tracking for Gravity Forms | 43 | 34 | 25 | 20k+ | rand mt rand | ||
| #459 | Theme Switcha – Easily Switch Themes for Development and Testing | 43 | 42 | 53 | 7k+ | Output is not escaped | ||
| #460 | Post Date Randomizer | 45 | 42 | 6 | 9k+ | Unsafe printing function | ||
| #461 | Podcast Player – Your Podcasting Companion | 46 | 14 | 133 | 10k+ | Non-prefixed global variable | ||
| #462 | Link in Bio Creator – Social | 46 | 52 | 36 | 2k+ | Non Singular String Literal Domain | ||
| #463 | Advanced Custom Fields: Number Slider | 47 | 99 | 4 | 400 | Output is not escaped | ||
| #464 | Compress, Resize & Lazy Load Images – WPvivid Image Optimization | 47 | 107 | 58 | 10k+ | Missing direct file access protection | ||
| #465 | Dynamic Pricing and Discount Rules | 51 | 24 | 65 | 1k+ | Non Singular String Literal Text | ||
| #466 | Dolyame Payment gateway | 51 | 122 | 10 | 700 | Text Domain Mismatch | ||
| #467 | GSheetConnector for Gravity Forms – Send Gravity Forms Entries to Google Sheets in Real-Time | 52 | 26 | 27 | 1k+ | Exception output is not escaped | ||
| #468 | FakerPress | 53 | 66 | 152 | 10k+ | Non-prefixed global variable | ||
| #469 | PWA — easy way to Progressive Web App | 54 | 15 | 44 | 2k+ | Dynamic hook name | ||
| #470 | Anti-Captcha (anti-spam botblocker) | 56 | 23 | 26 | 1k+ | rand mt rand | ||
| #471 | Videopack | 58 | 28 | 108 | 10k+ | Input is not sanitized | ||
| #472 | RealHomes PayPal Payments | 60 | 55 | 23 | 400 | Non Singular String Literal Domain | ||
| #473 | RSS Feed Retriever | 61 | 23 | 8 | 7k+ | wp function not compatible with requires wp | ||
| #474 | IndexNow Plugin | 63 | 14 | 91 | 100k+ | error log error log | ||
| #475 | Estonian Shipping Methods for WooCommerce | 64 | 97 | 16 | 1k+ | Text Domain Mismatch | ||
| #476 | WP-Farsi | 65 | 26 | 36 | 600 | Non-prefixed function | ||
| #477 | CP Media Player – Audio Player and Video Player | 66 | 224 | 48 | 3k+ | Text Domain Mismatch | ||
| #478 | Text Expander | 67 | 50 | 15 | 600 | wp function not compatible with requires wp | ||
| #479 | Auto Update Post Date | 69 | 11 | 23 | 1k+ | Input is not validated | ||
| #480 | Simple Login Captcha | 70 | 20 | 19 | 10k+ | date date | ||
| #481 | Bing URL Submissions Plugin | 74 | 10 | 38 | 40k+ | error log error log | ||
| #482 | Retainful – WooCommerce Abandoned Cart, Newsletters, Email Marketing, Signup Forms and Automation | 79 | 15 | 26 | 1k+ | Non-prefixed hook name | ||
| #483 | ERE Recently Viewed – Essential Real Estate Add-On | 81 | 6 | 3 | 1k+ | Output is not escaped | ||
| #484 | OG — Better Share on Social Media | 81 | 14 | 51 | 30k+ | Non-prefixed hook name | ||
| #485 | Orphans | 81 | 1 | 43 | 50k+ | Dynamic hook name | ||
| #486 | Hello Dolly | 85 | 9 | 2 | 600k+ | Output is not escaped | ||
| #487 | MD5 Media Renamer | 85 | 8 | 19 | 400 | Non-prefixed global variable | ||
| #488 | Latest Posts Block – Dynamic Posts Grid, Posts List, Posts Tile with Stunning Layouts for WordPress Blogs & Pages | 86 | 9 | 8 | 7k+ | Missing Version | ||
| #489 | A Random Number | 89 | 3 | 5 | 800 | Non-prefixed function | ||
| #490 | Reading Position Indicator | 90 | 2 | 23 | 800 | Dynamic hook name | ||
| #491 | Snow Monkey Forms | 91 | 36 | 41 | 30k+ | Non-prefixed global variable |