WordPress.WP.AlternativeFunctions.rand_rand

rand 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
#551UX Flat305392031k+Missing Arg Domain
#552WooCommerce Stripe Payment Gateway30173591700k+Non-prefixed hook name
#553Photo Gallery Slideshow & Masonry Tiled Gallery308063521k+Output is not escaped
#554WPOrLogin – Custom Login, Social Login, Limit Attempts, Hide Login & reCAPTCHA304842222k+Unsafe printing function
#555WPS Cleaner3043049120k+Output is not escaped
#556Zoho CRM Lead Magnet301011,0253k+Request data is not unslashed
#557Advanced Woo Search – Product Search for WooCommerce3122837770k+Nonce verification recommended
#558Apaczka.pl WooCommerce31992761k+Non-prefixed global variable
#559Thanh Toán Quét Mã QR Code Tự Động – MoMo, ViettelPay, VNPay và 40 ngân hàng Việt Nam3159870700Text Domain Mismatch
#560Co-marquage service-public.fr31842131k+Non-prefixed global variable
#561Codeless Page Builder31415258900Text Domain Mismatch
#562افزونه پیامک حرفه ای فراز اس ام اس31891802k+wp function not compatible with requires wp
#563FastDup – Fastest WordPress Migration & Duplicator3183665k+wp function not compatible with requires wp
#564GS Pinterest Portfolio – Pins Grid, Masonry, User Profile, Popup & Board Widgets314021561k+Text Domain Mismatch
#565Kindeditor For WordPress3163130500Non-prefixed global variable
#566Login rebuilder3140622620k+Non Singular String Literal Domain
#567LWS Tools3110413410k+Request data is not unslashed
#568Mailgun for WordPress311447880k+Unsafe printing function
#569PanoPress311112342k+Output is not escaped
#570Social Share Buttons314621561k+Text Domain Mismatch
#571Page Builder by SiteOrigin31226214400k+Output is not escaped
#572WP Testimonials3118345510k+Non-prefixed global variable
#573Discussion Board – WordPress Forum Plugin311051532k+Request data is not unslashed
#574WP Simple Booking Calendar3133738020k+Output is not escaped
#575WP Visitor Statistics (Real Time Traffic)3135369120k+Nonce verification recommended
#576Hosting Benchmark tool312021154k+rand rand
#577YAHMAN Add-ons314681411k+Output is not escaped
#578Zendesk Support for WordPress31195882k+Output is not escaped
#579PayPal Zettle POS for WooCommerce31302444k+Exception output is not escaped
#580ACME Divi Modules3257335400Text Domain Mismatch
#581ActiveDEMAND321571611k+Output is not escaped
#582annasta Filters for WooCommerce321,0734412k+Text Domain Mismatch
#583Aqua Page Builder323201143k+Output is not escaped
#584Ultimate WooCommerce Filters32322207600Unsafe printing function
#585Currency Switcher for WooCommerce3235726310k+Text Domain Mismatch
#586DHL eCommerce (Benelux) for WooCommerce322223302k+Nonce verification recommended
#587FA Lite – WP responsive slider plugin32726140500Unsafe printing function
#588Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages32537739k+Nonce verification recommended
#589Insights from Google PageSpeed3241447520k+Text Domain Mismatch
#590GSheetConnector For WPForms – WPForms Google Sheets Integration (Real-Time Sync)321201458k+Non-prefixed global variable
#591Gwolle Guestbook3226952720k+Output is not escaped
#592Helcim Commerce for WooCommerce3294121800Text Domain Mismatch
#593MapPress Maps for WordPress3269513330k+Missing Arg Domain
#594WP Mobile Menu – The Mobile-Friendly Responsive Menu3299019580k+Output is not escaped
#595Notice Bar3295284700Non-prefixed global variable
#596Opal Mega Menu32419119400Text Domain Mismatch
#597گرویتی فرم فارسی3219017420k+Text Domain Mismatch
#598PilotPress32150285900Output is not escaped
#599TS Poll – Survey, Versus Poll, Image Poll, Video Poll325701714k+Text Domain Mismatch
#600Volunteer Sign Up Sheets329674011k+Output is not escaped