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
#351WooCommerce Tax (formerly WooCommerce Shipping & Tax)30103198600k+Non-prefixed class
#352WP 2FA – Two-factor authentication for WordPress30269380100k+Exception output is not escaped
#353WP Inventory Manager308562331k+Output is not escaped
#354cformsII317775364k+Unsafe printing function
#355Customer Email Verification for WooCommerce311922902k+Non-prefixed global variable
#356Express Checkout via PayPal for WooCommerce31158200800Nonce verification recommended
#357RealHomes Stripe Payments3120233500Exception output is not escaped
#358LWS Tools3110413410k+Request data is not unslashed
#359Tooltips for WordPress313122525k+Output is not escaped
#360Advanced Access Manager – Access Governance for WordPress3284962100k+Output is not escaped
#361Speed Kit32296732k+Output is not escaped
#362Contact Form Block326477500Non Singular String Literal Domain
#363Contact Form Builder by vcita32666174700Text Domain Mismatch
#364DHL eCommerce (Benelux) for WooCommerce322223302k+Nonce verification recommended
#365Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages32537739k+Nonce verification recommended
#366GSheetConnector For Ninja Forms32165931k+Unsafe printing function
#367GSheetConnector For WPForms – WPForms Google Sheets Integration (Real-Time Sync)321201458k+Non-prefixed global variable
#368Gwolle Guestbook3226952720k+Output is not escaped
#369Honeypot Toolkit32155770400Missing nonce verification
#370Juiz Last Tweet Widget3213653500Output is not escaped
#371Plugin Organizer3232625710k+Output is not escaped
#372RSS for Yandex Turbo3268730720k+Unsafe printing function
#373Showcase IDX Real Estate Search & Lead Capture32123522k+Output is not escaped
#374Split Test For Elementor32981323k+Non-prefixed global variable
#375Thrive Automator32848410k+SQL query is not prepared
#376WP 2-step verification32154651k+Output is not escaped
#377WP Weixin3260152400Non-prefixed constant
#378Gallery Custom Links33646230k+Non Singular String Literal Domain
#379GSheetConnector for Forminator Forms331282011k+Non-prefixed global variable
#380RSS Feed Pro3348416500Output is not escaped
#381TrackingMore Order Tracking for WooCommerce (Free plan available)3394124700Text Domain Mismatch
#382WebToffee WP Backup and Migration331322225k+Non-prefixed global variable
#383FluentAuth – The Ultimate Authorization & Security Plugin for WordPress344422910k+Nonce verification recommended
#384Hitsteps Web Analytics34370313800Output is not escaped
#385Meow Analytics (Google Analytics)348054500Output is not escaped
#386Meow Lightbox34755210k+Non Singular String Literal Domain
#387OTP Login & Register Woocommerce341482021k+Missing nonce verification
#388Seriously Simple Stats34991265k+Output is not escaped
#389TaxJar – Sales Tax Automation for WooCommerce342361705k+Text Domain Mismatch
#390BjornTech PayPal POS integration for WooCommerce3468177700Missing nonce verification
#391MailerLite – WooCommerce integration34643630k+Output is not escaped
#392WP Dummy Content Generator34931306k+Output is not escaped
#393WP-SCSS342691340k+Exception output is not escaped
#394WP Twitter Feeds34202822k+Output is not escaped
#395zipMoney(Zip Co) Payments Plugin for WooCommerce34147702k+Text Domain Mismatch
#396Akismet Anti-spam: Spam Protection3533996m+Non-prefixed global variable
#397Basic Google Maps Placemarks35189803k+Output is not escaped
#398Brozzme DB Prefix & Tools Addons3524429k+Request data is not unslashed
#399CF7 Views – Complete Entry Management for Contact Form 7351721811k+Output is not escaped
#400Cryptex | E-Mail Address Protection356210900Output is not escaped