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 |
|---|---|---|---|---|---|---|---|---|
| #301 | Wp Theme plugin Download | 62 | 11 | 16 | 2k+ | Output is not escaped | ||
| #302 | Download Theme | 64 | 18 | 20 | 4k+ | wp function not compatible with requires wp | ||
| #303 | AC Advanced Flamingo Settings | 66 | 6 | 32 | 700 | Nonce verification recommended | ||
| #304 | Easy PHP Settings | 66 | 34 | 48 | 1k+ | Missing Translators Comment | ||
| #305 | Raptive Ads | 67 | 34 | 31 | 6k+ | Text Domain Mismatch | ||
| #306 | Falcon – Cache, Performance, Security, Cleanup, and Tweaks | 67 | 4 | 67 | 2k+ | Direct Query | ||
| #307 | EWWW Image Optimizer | 70 | 36 | 717 | 1m+ | Direct Query | ||
| #308 | Ghost | 70 | 25 | 12 | 500 | Output is not escaped | ||
| #309 | blueimp lightbox | 75 | 19 | 2 | 1k+ | Output is not escaped | ||
| #310 | Uptime Monitoring for WordPress – My Website is Online | 78 | 18 | 7 | 500 | Text Domain Mismatch | ||
| #311 | Cachify | 84 | 9 | 36 | 9k+ | Non-prefixed global variable | ||
| #312 | Verify domain for Apple Pay with Stripe | 92 | 3 | 2 | 600 | Input is not sanitized | ||
| #313 | KP Zip Downloader | 99 | 2 | 0 | 2k+ | file system operations readfile |