WordPress.WP.AlternativeFunctions.file_system_operations_readfile
file system operations readfile
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 |
|---|---|---|---|---|---|---|---|---|
| #251 | PostNL for WooCommerce | 34 | 595 | 104 | 3k+ | Text Domain Mismatch | ||
| #252 | WP Notes Widget | 34 | 217 | 36 | 700 | Output is not escaped | ||
| #253 | belingoGeo | 35 | 136 | 133 | 1k+ | Output is not escaped | ||
| #254 | Cache Enabler | 35 | 44 | 75 | 90k+ | Input is not sanitized | ||
| #255 | Create Block Theme | 35 | 43 | 5 | 20k+ | unlink unlink | ||
| #256 | Elementor Website Builder – more than just a page builder | 35 | 46 | 428 | 10m+ | Non-prefixed global variable | ||
| #257 | EWWW Image Optimizer | 35 | 225 | 729 | 1m+ | Direct Query | ||
| #258 | Imsanity | 35 | 32 | 29 | 200k+ | Direct Query | ||
| #259 | Media Library Downloader | 35 | 21 | 16 | 4k+ | Output is not escaped | ||
| #260 | MONEI Payments for WooCommerce | 35 | 15 | 65 | 500 | Non-prefixed hook name | ||
| #261 | Moyasar | 35 | 436 | 128 | 700 | Text Domain Mismatch | ||
| #262 | Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution | 35 | 75 | 61 | 4k+ | Exception output is not escaped | ||
| #263 | SSL Insecure Content Fixer | 35 | 28 | 60 | 100k+ | Input is not sanitized | ||
| #264 | The Courier Guy Shipping for WooCommerce | 35 | 57 | 107 | 3k+ | Missing nonce verification | ||
| #265 | Converter for Media – Optimize images | Convert WebP & AVIF | 35 | 133 | 53 | 500k+ | curl curl setopt | ||
| #266 | Pixel Manager for WooCommerce – Conversion Tracking, Google Ads, GA4, TikTok, Dynamic Remarketing | 35 | 49 | 230 | 50k+ | Non-prefixed hook name | ||
| #267 | Invoices for WooCommerce | 35 | 55 | 168 | 10k+ | Non-prefixed global variable | ||
| #268 | WP Associate Post R2 | 35 | 259 | 86 | 3k+ | Output is not escaped | ||
| #269 | Database Backup for WordPress | 35 | 128 | 88 | 70k+ | Output is not escaped | ||
| #270 | BP Group Documents | 36 | 27 | 195 | 600 | Non-prefixed global variable | ||
| #271 | bpost shipping | 36 | 97 | 43 | 700 | Output is not escaped | ||
| #272 | Export Variable Products | 36 | 79 | 49 | 400 | Text Domain Mismatch | ||
| #273 | If-So Geolocation | 36 | 50 | 57 | 1k+ | Non-prefixed global variable | ||
| #274 | PDF Forms Filler for CF7 | 36 | 185 | 79 | 3k+ | Text Domain Mismatch | ||
| #275 | Search & Replace | 36 | 50 | 53 | 100k+ | Missing nonce verification | ||
| #276 | WP Publication Archive | 36 | 197 | 64 | 400 | Text Domain Mismatch | ||
| #277 | Adaptive Images for WordPress | 37 | 51 | 75 | 3k+ | Output is not escaped | ||
| #278 | Debug Log Viewer | 37 | 26 | 83 | 1k+ | Missing nonce verification | ||
| #279 | Varnish/Nginx Proxy Caching | 37 | 287 | 36 | 600 | Output is not escaped | ||
| #280 | Checkout Files Upload for WooCommerce | 38 | 57 | 120 | 7k+ | Input is not sanitized | ||
| #281 | ThumbPress – Compress Images, Manage Thumbnails, Detect Image Issues, WebP/AVIF, Lazy Loading, Hotlinking & More | 38 | 21 | 88 | 30k+ | Direct Query | ||
| #282 | Lana Downloads Manager | 38 | 146 | 78 | 3k+ | Unsafe printing function | ||
| #283 | Migrate Store: Export and Import WooCommerce Settings | 38 | 37 | 33 | 1k+ | Non-prefixed global variable | ||
| #284 | Quick Download Button | 38 | 34 | 123 | 2k+ | Non-prefixed global variable | ||
| #285 | Connect WooCommerce Shop to ERP/CRM, Verifactu and EU/VAT Compliance | 38 | 23 | 104 | 1k+ | Direct Query | ||
| #286 | WPC Product Options for WooCommerce | 38 | 57 | 182 | 4k+ | Non-prefixed global variable | ||
| #287 | Cookies for Comments | 39 | 22 | 29 | 20k+ | Input is not validated | ||
| #288 | Library Viewer | 39 | 65 | 93 | 400 | Non-prefixed hook name | ||
| #289 | Shared Files – File Upload & Download Manager | 39 | 5 | 184 | 4k+ | Nonce verification recommended | ||
| #290 | Tagging | 40 | 33 | 37 | 500 | Output is not escaped | ||
| #291 | Zippy | 40 | 43 | 31 | 9k+ | Output is not escaped | ||
| #292 | Authenticator | 41 | 59 | 44 | 1k+ | Output is not escaped | ||
| #293 | Simple Cache | 41 | 33 | 59 | 1k+ | Input is not sanitized | ||
| #294 | Clover Payments for WooCommerce | 42 | 25 | 15 | 2k+ | Exception output is not escaped | ||
| #295 | Simple Download Counter | 42 | 58 | 46 | 2k+ | Output is not escaped | ||
| #296 | Good Old Twitter Feed Widget | 43 | 110 | 10 | 400 | Text Domain Mismatch | ||
| #297 | Hyper Cache | 45 | 36 | 100 | 8k+ | Non-prefixed global variable | ||
| #298 | 404 Image Redirection (Replace Broken Images) | 47 | 118 | 85 | 500 | Text Domain Mismatch | ||
| #299 | iControlWP | 47 | 45 | 59 | 1k+ | Missing direct file access protection | ||
| #300 | SiteEase Bulk Delete Manager | 49 | 50 | 72 | 900 | Direct Query |