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
#651Donation Platform for WooCommerce: Fundraising & Donation Management343314487k+Non-prefixed global variable
#652BjornTech PayPal POS integration for WooCommerce3468182700Non-prefixed hook name
#653Advanced Free Shipping for WooCommerce3427013240k+Text Domain Mismatch
#654Woopra Analytics Plugin3411453900Output is not escaped
#655WP Dummy Content Generator34931306k+Output is not escaped
#656WP Dynamic Keywords Injector34442051k+Nonce verification recommended
#657WP Random Post Thumbnails34420261k+Text Domain Mismatch
#658WP Subscription Forms – Subscription Form Plugin for WordPress34131220400Non-prefixed global variable
#659Live Visitor Counter341081144k+Interpolated SQL is not prepared
#660YourChannel: Everything you want in a YouTube plugin.3426211510k+Text Domain Mismatch
#661Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades34571195100k+Output is not escaped
#662ACF OpenStreetMap Field3540469k+Non-prefixed global variable
#663Ad Widget for WordPress3568142k+Output is not escaped
#664Authors Widget35170191k+Output is not escaped
#665BlossomThemes Toolkit353475230k+Output is not escaped
#666Tooltipy (tooltips for WP)353701251k+Text Domain Mismatch
#667Brozzme DB Prefix & Tools Addons35244210k+Request data is not unslashed
#668CHP Ads Block Detector3510835900Output is not escaped
#669Coupon X – Discount Popups, Promo Codes Pop Ups for WooCommerce & Announcement Popups35301681k+Non-prefixed global variable
#670Cryptex | E-Mail Address Protection356210900Output is not escaped
#671Elementor Website Builder – more than just a page builder354642810m+Non-prefixed global variable
#672Email Subscription Popup — Newsletter & GDPR Consent356831931k+Output is not escaped
#673EWWW Image Optimizer352257291m+Direct Query
#674WP2Social Auto Publish356432159k+Unsafe printing function
#675Reviews Widgets for Google, TripAdvisor, Yelp & Recommendations3525522510k+Output is not escaped
#676Full Width Banner Slider Wp352391402k+Output is not escaped
#677GDPR Compliance & Cookie Consent35251614k+Output is not escaped
#678Health Check & Troubleshooting35264238300k+Missing Arg Domain
#679Instapage Plugin35220455k+Output is not escaped
#680Kargo Takip35841423k+Missing nonce verification
#681Kaya QR Code Generator351934020k+Non Singular String Literal Domain
#682Login Page Styler – Custom WordPress Login Page Customizer & Security351251682k+Missing Arg Domain
#683Marquee image crawler35168136700Non-prefixed global variable
#684NS Cloner – Site Cloner and Multisite Duplicator3529167k+Missing direct file access protection
#685ONet Regenerate Thumbnails35190641k+Text Domain Mismatch
#686Plugin Ongkos Kirim JNE Tiki Sicepat Wahana J&T POS for Woocommerce351171442k+Output is not escaped
#687Paytm Payment Gateway35921043k+Missing Arg Domain
#688Post Draft Preview354969700Text Domain Mismatch
#689Security Optimizer – The All-In-One Protection Plugin3540841m+Request data is not unslashed
#690SiteGround Migrator351137470k+Missing Arg Domain
#691Spacious Toolkit354894700Non-prefixed global variable
#692Stars Testimonials — Responsive Reviews & Star Ratings35292531k+Non-prefixed global variable
#693Team Showcase – Responsive Team Members Grid, Slider & Carousel Plugin351,0004102k+Text Domain Mismatch
#694Theme Blvd Layout Builder352071692k+Output is not escaped
#695Themify Shortcodes3536167k+Output is not escaped
#696TikTok353122200k+Missing Arg Domain
#697Two Factor Authentication3510813920k+Output is not escaped
#698User Photo35112683k+Output is not escaped
#699Video Grid352531061k+Output is not escaped
#700Video Gallery35336178600Output is not escaped