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
#501Contact List – Online Staff Directory & Address Book331183421k+Nonce verification recommended
#502Login & Register Customizer – Popup | Slider | Inline | WooCommerce3326523040k+Output is not escaped
#503EchBay Phonering Alo3374471k+Output is not escaped
#504Flipbox – Awesomes Flip Boxes Image Overlay334007,27910k+Input is not validated
#505WPZOOM Social Feed Widget & Block3331027860k+Unsafe printing function
#506Logo Showcase Ultimate – Logo Carousel, Logo Slider & Logo Grid332741063k+Text Domain Mismatch
#507Save as PDF Plugin by PDFCrowd332992541k+Non-prefixed global variable
#508WP Twitter Auto Publish334421714k+Output is not escaped
#509Rich Showcase for Google Reviews33230227100k+Output is not escaped
#510Product Addons for Woocommerce – Product Options with Custom Fields3312411430k+Output is not escaped
#511Hyyan WooCommerce Polylang Integration331412209k+Nonce verification recommended
#512XML Sitemaps3365622k+Output is not escaped
#513All In One Favicon342146260k+Output is not escaped
#514Reviews Widgets for Google, Yelp & TripAdvisor3427421210k+Output is not escaped
#515Flash Toolkit3415924210k+Non-prefixed global variable
#516Forms: 3rd-Party Integration342341125k+Output is not escaped
#517Inavii Social Feed – Live Social Proof Gallery345321809k+Text Domain Mismatch
#518Meow Lightbox34755210k+Non Singular String Literal Domain
#519OTP Login & Register Woocommerce341482021k+Missing nonce verification
#520Payoneer Checkout34168415k+Exception output is not escaped
#521RaraTheme Companion344307110k+Output is not escaped
#522Event Timeline – Vertical Timeline34266841k+Non-prefixed global variable
#523Search Engine Insights for Google Search Console341741132k+Output is not escaped
#524Tab Ultimate341071381k+Output is not escaped
#525Easy Mega Menu for WordPress – ThemeHunk344802561k+Text Domain Mismatch
#526Travel Agency Companion – Create Tour & Travel Website Using WP Travel Engine341282114k+Non-prefixed global variable
#527Donation Platform for WooCommerce: Fundraising & Donation Management343314487k+Non-prefixed global variable
#528Advanced Free Shipping for WooCommerce3427013240k+Text Domain Mismatch
#529WP Dummy Content Generator34931306k+Output is not escaped
#530WP Dynamic Keywords Injector34452051k+Nonce verification recommended
#531WP Random Post Thumbnails34420261k+Text Domain Mismatch
#532Live Visitor Counter341081144k+Interpolated SQL is not prepared
#533YourChannel: Everything you want in a YouTube plugin.3426211510k+Text Domain Mismatch
#534Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades34571195100k+Output is not escaped
#535ACF OpenStreetMap Field3540469k+Non-prefixed global variable
#536Ad Widget for WordPress3568142k+Output is not escaped
#537Authors Widget35170191k+Output is not escaped
#538BlossomThemes Toolkit353475230k+Output is not escaped
#539Tooltipy (tooltips for WP)353701251k+Text Domain Mismatch
#540Brozzme DB Prefix & Tools Addons3524429k+Request data is not unslashed
#541Coupon X – Discount Popups, Promo Codes Pop Ups for WooCommerce & Announcement Popups35301681k+Non-prefixed global variable
#542Elementor Website Builder – more than just a page builder354642810m+Non-prefixed global variable
#543Email Subscription Popup — Newsletter & GDPR Consent356831931k+Output is not escaped
#544EWWW Image Optimizer352257291m+Direct Query
#545WP2Social Auto Publish356432159k+Unsafe printing function
#546Full Width Banner Slider Wp352391402k+Output is not escaped
#547GDPR Compliance & Cookie Consent35251614k+Output is not escaped
#548Health Check & Troubleshooting35264238300k+Missing Arg Domain
#549Instapage Plugin35220455k+Output is not escaped
#550Kargo Takip35841423k+Missing nonce verification