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
#301CP Multi View Events Calendar26864391k+Non-prefixed global variable
#302FuseWP – WordPress User Sync to Email List & Marketing Automation (Mailchimp, Constant Contact, ActiveCampaign etc.)265944172k+Exception output is not escaped
#303Media File Renamer: Rename for better SEO (AI-Powered)2615417040k+Direct Query
#304Online Contact Widget-多合一在线客服插件2670880800Non Singular String Literal Domain
#305Send Users Email – Email Subscribers, Email Marketing Newsletter261884155k+Non-prefixed global variable
#306WDesignKit – Elementor & Gutenberg Starter Templates, Patterns, Cloud Workspace & Widget Builder2626579330k+Missing nonce verification
#307XL NMI Gateway for WooCommerce266954361k+Text Domain Mismatch
#308WPCOM Member264326381k+Non Singular String Literal Domain
#309Polls CP27399500400Output is not escaped
#310Login for Google Apps271398510k+Exception output is not escaped
#311Gravity Forms + Stripe27368210600Output is not escaped
#312MW WP Form27334219200k+Output is not escaped
#313Quick Paypal Payments271013031k+Non-prefixed function
#314WP Hide & Security Enhancer2712437550k+Input is not sanitized
#315Redirection for Contact Form 72734374200k+Non-prefixed global variable
#316Code Engine – PHP Snippets, AI Functions & Automation for WordPress28124101700Non Singular String Literal Domain
#317Contact Form by BestWebSoft – Advanced WP Contact Form Builder for WordPress2846533830k+Text Domain Mismatch
#318Database Cleaner2813729710k+Direct Query
#319Expand Divi28911001k+Non-prefixed global variable
#320Reviews and Rating – Google Reviews2834321920k+Text Domain Mismatch
#321Photo Gallery – GT3 Image Gallery & Gutenberg Block Gallery2838417510k+Text Domain Mismatch
#322WP to LinkedIn Auto Publish28734250900Unsafe printing function
#323MetForm – Contact Form, Survey, Quiz, & Custom Form Builder for Elementor2862248600k+Non-prefixed global variable
#324ووکامرس فارسی2815721590k+Output is not escaped
#325Responsive Lightbox & Gallery28139513100k+Non-prefixed hook name
#326Brilliant Web-to-Lead for Salesforce282472442k+Text Domain Mismatch
#327Transliterator – Multilingual and Multi-script Text Conversion283053203k+Output is not escaped
#328Slider Pro285835274k+Unsafe printing function
#329Tab – Accordion, FAQ281045421k+Non-prefixed global variable
#330WP Mapbox GL JS Maps281041191k+Output is not escaped
#331Connect Matomo – Analytics Dashboard for WordPress2810010260k+Missing Translators Comment
#332WPO365 | SEAMLESS WORDPRESS + MICROSOFT INTEGRATION (WPO365 | LOGIN)2820921710k+Exception output is not escaped
#333WPS Bidouille2847221510k+Output is not escaped
#334Accordion Slider293914472k+Unsafe printing function
#335Better Google Analytics293768692k+Non-prefixed global variable
#336Display Tweets29135135900Non-prefixed global variable
#337DoLogin Security293123057k+Output is not escaped
#338Login Me Now – Passwordless, Magic Link, OTP & Social Login for WordPress2986233500Nonce verification recommended
#339Meow Gallery2911318210k+Direct Query
#340PhastPress29955210k+Exception output is not escaped
#341Responder29771853k+Non-prefixed global variable
#342Social Engine2913390600Exception output is not escaped
#343SQLite Database Integration29161893k+Exception output is not escaped
#344ووسلام – همگام سازی ووکامرس و باسلام291926114k+Non-prefixed global variable
#345Contact Form 7 Connector303241965k+Text Domain Mismatch
#346Invisible reCaptcha for WordPress309018580k+Input is not sanitized
#347Real Cookie Banner: GDPR & ePrivacy Cookie Consent309496100k+Database parameter is not escaped
#348Rublon Multi-Factor Authentication (MFA)30216160500Output is not escaped
#349SMTP for Amazon SES – YaySMTP301971223k+Exception output is not escaped
#350WooCommerce Tax (formerly WooCommerce Shipping & Tax)30103198600k+Non-prefixed class