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
#451Redis Object Cache28151103400k+Exception output is not escaped
#452Brilliant Web-to-Lead for Salesforce282472442k+Text Domain Mismatch
#453Temporary Login Without Password28128131100k+wp function not compatible with requires wp
#454Terms descriptions282224231k+Non-prefixed function
#455Ultimate FAQ Accordion Plugin2838622730k+Unsafe printing function
#456WC Fields Factory281943697k+Nonce verification recommended
#45710WebSocial2858418510k+Unsafe printing function
#458Dynamic Product Gallery for WooCommerce284143031k+Output is not escaped
#459Connect Matomo – Analytics Dashboard for WordPress2810010260k+Missing Translators Comment
#460WP YouTube Lyte2820417830k+Non-prefixed global variable
#461WPify Woo – Withdrawal, CRN/VAT, QR payments, Heureka and more for WooCommerce281742265k+Output is not escaped
#462WPS Bidouille2847221510k+Output is not escaped
#463Bitcoin Payments – Blockonomics292082273k+Output is not escaped
#464Code Engine – PHP Snippets, AI Functions & Automation for WordPress29122101700Non Singular String Literal Domain
#465Database Cleaner2913529710k+Direct Query
#466Advanced Shipping Rates for WooCommerce: Flexible Table Rate Shipping Rules291855042k+Non-prefixed global variable
#467FluentSMTP – WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider297478600k+Missing Translators Comment
#468Interactive World Map296843411k+Text Domain Mismatch
#469Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization2980162200k+Nonce verification recommended
#470PlatiOnline Payments29304110700Output is not escaped
#471SQLite Database Integration29161893k+Exception output is not escaped
#472Visualizer – Tables & Charts Manager with Built-in AI Generator2934833120k+Output is not escaped
#473Custom Post Types and Custom Fields creator – WCK291,30014310k+Text Domain Mismatch
#474Product Carousel Slider & Grid Ultimate for WooCommerce297191226k+Text Domain Mismatch
#475Woostify Sites Library2922919820k+Text Domain Mismatch
#476WP Subscribe2979798k+Non-prefixed class
#477Dynamic Pricing With Discount Rules for WooCommerce301361315k+Output is not escaped
#478PublishPress Blocks – Block Controls, Block Visibility, Block Permissions3025134020k+Unsafe printing function
#479All in One Addons For WPBakery Page Builder (formerly Visual Composer)301,0841501k+Output is not escaped
#480Analytics Insights – Google Analytics Dashboard for WordPress3024117010k+Unsafe printing function
#481AutoWP – AI Content Writer & Rewriter305483701k+Text Domain Mismatch
#482Sliding Cart for WooCommerce by FunnelKit – Skip Cart & Reach WooCommerce Checkout Faster3030643430k+Non-prefixed global variable
#483MetForm – Contact Form, Survey, Quiz, & Custom Form Builder for Elementor3063227600k+Non-prefixed global variable
#484Move Addons for Elementor303,919913k+Text Domain Mismatch
#485Post Grid, Slider & Carousel Ultimate – with Shortcode, Gutenberg Block & Elementor Widget302311021k+Non Singular String Literal Domain
#486Pubjet | پاب‌جت30911721k+Output is not escaped
#487User Role by BestWebSoft – Add and Customize Roles and Capabilities in WordPress304842803k+Text Domain Mismatch
#488UX Flat305392031k+Missing Arg Domain
#489WooCommerce Stripe Payment Gateway30173591700k+Non-prefixed hook name
#490Photo Gallery Slideshow & Masonry Tiled Gallery308063521k+Output is not escaped
#491WPOrLogin – Custom Login, Social Login, Limit Attempts, Hide Login & reCAPTCHA304842222k+Unsafe printing function
#492WPS Cleaner3043049120k+Output is not escaped
#493Zoho CRM Lead Magnet301011,0253k+Request data is not unslashed
#494Advanced Woo Search – Product Search for WooCommerce3122837770k+Nonce verification recommended
#495Apaczka.pl WooCommerce31992761k+Non-prefixed global variable
#496Co-marquage service-public.fr31842131k+Non-prefixed global variable
#497Codeless Page Builder314152581k+Text Domain Mismatch
#498افزونه پیامک حرفه ای فراز اس ام اس31891801k+wp function not compatible with requires wp
#499FastDup – Fastest WordPress Migration & Duplicator3183665k+wp function not compatible with requires wp
#500GS Pinterest Portfolio – Pins Grid, Masonry, User Profile, Popup & Board Widgets314021561k+Text Domain Mismatch