WordPress.WP.AlternativeFunctions.file_system_operations_fread
file system operations fread
The plugin performs filesystem work with raw PHP functions where WordPress expects safer filesystem handling.
Why It Shows Up
Plugin Check found functions such as `fopen`, `fwrite`, `chmod`, `mkdir`, `readfile`, or related operations.
Why It Matters
WordPress sites can use different filesystem permissions and transports. Raw filesystem calls can fail on common hosts or write to unsafe locations.
How to Fix
- Use WordPress filesystem helpers when writing, reading, or changing files in plugin-managed paths.
- Validate paths and keep writes inside directories owned by the plugin or WordPress uploads.
- Never write PHP code from user input or remote responses.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #351 | Page Optimize | 35 | 70 | 41 | 200k+ | Non Singular String Literal Domain | ||
| #352 | Planyo online reservation system | 35 | 64 | 90 | 400 | Output is not escaped | ||
| #353 | Image Quality Control | Still BE | 35 | 54 | 44 | 400 | Missing Translators Comment | ||
| #354 | Converter for Media – Optimize images | Convert WebP & AVIF | 35 | 133 | 53 | 500k+ | curl curl setopt | ||
| #355 | Dashboard Widgets Suite | 36 | 206 | 124 | 4k+ | Output is not escaped | ||
| #356 | HTML5 Maps | 36 | 194 | 160 | 5k+ | Output is not escaped | ||
| #357 | Quick 301 Redirects | 36 | 89 | 120 | 5k+ | Non-prefixed global variable | ||
| #358 | Export Themes | 36 | 122 | 90 | 2k+ | Non-prefixed constant | ||
| #359 | Debug Log Viewer | 37 | 26 | 83 | 1k+ | Missing nonce verification | ||
| #360 | Local Time Clock | 37 | 105 | 11 | 1k+ | Output is not escaped | ||
| #361 | Sensei LMS Certificates | 37 | 97 | 362 | 4k+ | Non-prefixed global variable | ||
| #362 | Conditional Discounts for WooCommerce – A simple yet complete woocommerce dynamic pricing plugin | 37 | 99 | 33 | 10k+ | Text Domain Mismatch | ||
| #363 | country-redirect | 38 | 58 | 19 | 400 | Text Domain Mismatch | ||
| #364 | WP Maintenance Mode & Site Under Construction | 38 | 72 | 57 | 3k+ | Output is not escaped | ||
| #365 | WP-ServerInfo | 38 | 162 | 55 | 10k+ | Output is not escaped | ||
| #366 | GS Only PDF Preview | 39 | 46 | 36 | 1k+ | Output is not escaped | ||
| #367 | NextGEN Download Gallery | 39 | 57 | 21 | 2k+ | Short PHP open tag found | ||
| #368 | Virusdie | One-click website security | 39 | 149 | 66 | 2k+ | Output is not escaped | ||
| #369 | Advanced Country Blocker | 40 | 23 | 77 | 2k+ | Exception output is not escaped | ||
| #370 | Advanced IP Blocker | 40 | 94 | 44 | 2k+ | Exception output is not escaped | ||
| #371 | Custom Contact Forms | 40 | 13 | 106 | 6k+ | Missing nonce verification | ||
| #372 | WPO365 | Mail Integration for Office 365 / Outlook | 40 | 59 | 27 | 2k+ | Output is not escaped | ||
| #373 | Sentry for WordPress | 40 | 80 | 40 | 10k+ | Text Domain Mismatch | ||
| #374 | Heroic Favicon Generator | 41 | 104 | 7 | 6k+ | Output is not escaped | ||
| #375 | Gelato Integration for WooCommerce | 42 | 36 | 32 | 5k+ | Output is not escaped | ||
| #376 | SmartVideo – Video Player and CDN | 44 | 295 | 44 | 1k+ | Text Domain Mismatch | ||
| #377 | WP Club Manager – WordPress Sports Club Plugin | 44 | 171 | 682 | 600 | Non-prefixed global variable | ||
| #378 | Gravity Forms Constant Contact | 46 | 36 | 27 | 3k+ | Non-prefixed class | ||
| #379 | Compress, Resize & Lazy Load Images – WPvivid Image Optimization | 47 | 107 | 58 | 10k+ | Missing direct file access protection | ||
| #380 | SpinupWP | 49 | 43 | 38 | 30k+ | Non-prefixed function | ||
| #381 | Fullscreen Galleria | 52 | 37 | 10 | 800 | Output is not escaped | ||
| #382 | Connect Contact Form 7 and Mailchimp | 53 | 290 | 52 | 40k+ | Text Domain Mismatch | ||
| #383 | Royal WordPress Backup, Restore & Migration Plugin – Backup WordPress Sites Safely | 53 | 34 | 90 | 20k+ | Database parameter is not escaped | ||
| #384 | CSV Importer | 54 | 24 | 11 | 3k+ | Missing direct file access protection | ||
| #385 | Yext Plugin | 55 | 16 | 23 | 700 | Non-prefixed function | ||
| #386 | Gravity PDF | 57 | 116 | 152 | 20k+ | Non-prefixed global variable | ||
| #387 | PDF invoice for WP ERP | 58 | 96 | 134 | 2k+ | Non-prefixed global variable | ||
| #388 | Videopack | 58 | 28 | 108 | 10k+ | Input is not sanitized | ||
| #389 | flowpaper | 59 | 13 | 31 | 10k+ | Non-prefixed function | ||
| #390 | Resize Image After Upload | 59 | 15 | 11 | 80k+ | Output is not escaped | ||
| #391 | Surge | 60 | 46 | 47 | 4k+ | Non-prefixed global variable | ||
| #392 | WP Search with Algolia | 64 | 26 | 16 | 7k+ | Exception output is not escaped | ||
| #393 | WP-Farsi | 65 | 26 | 36 | 600 | Non-prefixed function | ||
| #394 | Debug Log Manager – Conveniently Monitor and Inspect Errors | 66 | 33 | 44 | 10k+ | Input is not validated | ||
| #395 | Printful Integration for WooCommerce | 67 | 218 | 76 | 50k+ | Text Domain Mismatch | ||
| #396 | Custom Icons for Elementor and WPBakery | 74 | 35 | 38 | 10k+ | Non-prefixed global variable | ||
| #397 | wp-forecast | 75 | 263 | 117 | 5k+ | Missing Arg Domain | ||
| #398 | Soro – SEO Autopilot & AI Content Writer | 83 | 4 | 10 | 9k+ | Input is not sanitized | ||
| #399 | Microsoft Azure Storage for WordPress | 86 | 25 | 26 | 2k+ | Missing Translators Comment | ||
| #400 | Transferito: WP Migration | 88 | 16 | 115 | 500 | Non-prefixed global variable |