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
#351WordLift – AI powered SEO – Schema24278949400Non-prefixed hook name
#352Auto Affiliate Links243764073k+Output is not escaped
#353WP Fastest Cache – WordPress Cache Plugin245417531m+Unsafe printing function
#354Iptanus File Upload245091,32510k+Non-prefixed function
#355WP Helper Premium243,9081,5151k+Text Domain Mismatch
#356WP Hotel Booking241,2321,5337k+Non-prefixed global variable
#357پارسی دیت – Parsi Date24106291100k+Non-prefixed hook name
#358WP Travel – Ultimate Travel Booking System, Tour Management Engine242271,9544k+Non-prefixed hook name
#359WP Travel Engine – Tour Booking Plugin – Tour Operator Software242,0125,68920k+Non-prefixed global variable
#360WPAdverts – Classifieds Plugin241,3084964k+Output is not escaped
#361WPSpeed – WordPress Speed, Cache & Performance Optimization (Core Web Vitals, PageSpeed 100)244821892k+Output is not escaped
#362WpStream – Live Streaming, Video on Demand, Pay Per View241,7247423k+Text Domain Mismatch
#363Dynamic Pricing With Discount Rules for WooCommerce251652055k+Non-prefixed global variable
#364AdRotate Banner Manager251,36384620k+Unsafe printing function
#365Booking for Appointments and Events Calendar – Amelia251,48748090k+Exception output is not escaped
#366Appointment Booking Calendar253271,0551k+Non-prefixed global variable
#367Appointment Hour Booking – Booking Calendar252621,25310k+Non-prefixed global variable
#368Beaver Builder Page Builder – Drag and Drop Website Builder254,4631,819100k+Text Domain Mismatch
#369Booking Activities251,0361,4693k+Output is not escaped
#370Booking Calendar Contact Form25371884500Input is not validated
#371Booking Package251,6973,97710k+Missing nonce verification
#372Broken Link Checker25727600500k+Output is not escaped
#373SilentShield – Captcha & Anti-Spam for WordPress (CF7, WPForms, Elementor, WooCommerce)2523521410k+Database parameter is not escaped
#374Colissimo shipping methods for WooCommerce251,75555710k+Text Domain Mismatch
#375Disable Comments & Delete All Comments255031859k+Output is not escaped
#376Contact Form Email254098989k+Non-prefixed global variable
#377CP Contact Form with PayPal25466936800Unsafe printing function
#378Smash Balloon Social Post Feed – Simple Social Feeds for WordPress25554982200k+Output is not escaped
#379DecaLog259432361k+Exception output is not escaped
#380Demo Importer Plus255823910k+Non-prefixed hook name
#381Disable Admin Notices – Hide Dashboard Notifications25465195100k+Output is not escaped
#382Events Made Easy255216,3241k+Non-prefixed function
#383胖鼠采集(Fat Rat Collect)25630190900Missing Arg Domain
#384Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel258761,798100k+Non-prefixed global variable
#385WP Fast Total Search – The Power of Indexed Search252092911k+Non-prefixed global variable
#386Genesis Club Lite25513317900Output is not escaped
#387Simple Giveaways – Grow your business, email lists and traffic with contests259562,384400Non-prefixed global variable
#388Logo Slider – Logo Showcase, Logo Carousel, Logo Gallery and Client Logo Presentation2578931330k+Text Domain Mismatch
#389Team Members – A WordPress Team Plugin with Gallery, Grid, Carousel, Slider, Table, List, and More251,7862,2202k+Non-prefixed global variable
#390Solid Testimonials – Testimonial Slider, Video Testimonials & Customer Reviews256451,5851k+Non-prefixed global variable
#391Hydra Booking — Appointment Scheduling & Booking Calendar252356992k+Non-prefixed global variable
#392Independent Analytics – WordPress Analytics Plugin251,1482,293100k+Non-prefixed global variable
#393Index WP MySQL For Speed2525025550k+Output is not escaped
#394Smash Balloon Social Photo Feed – Easy Social Feeds Plugin254491,3001m+Interpolated SQL is not prepared
#395IP Location Block2552162410k+Output is not escaped
#396Loginizer258145041m+Output is not escaped
#397Logo Showcase – Responsive Logo Carousel, Logo Slider & Logo Grid256561,5065k+Non-prefixed global variable
#398Bulk Page Generator – LPagery256701,9263k+Non-prefixed global variable
#399Media Cleaner: Clean your WordPress!2526952090k+Direct Query
#400Media Cloud Sync251,0952741k+Exception output is not escaped