WordPress.WP.AlternativeFunctions.file_system_operations_fopen
file system operations fopen
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 |
|---|---|---|---|---|---|---|---|---|
| #951 | .htaccess Site Access Control | 37 | 54 | 67 | 800 | Input is not sanitized | ||
| #952 | Injection Guard | 37 | 86 | 45 | 1k+ | Unsafe printing function | ||
| #953 | Job Manager & Career – Manage job board listings, and recruitments | 37 | 112 | 205 | 2k+ | Missing nonce verification | ||
| #954 | Local Time Clock | 37 | 105 | 11 | 1k+ | Output is not escaped | ||
| #955 | Meks Video Importer | 37 | 62 | 239 | 2k+ | Input is not sanitized | ||
| #956 | PNG to JPG | 37 | 130 | 173 | 10k+ | Interpolated SQL is not prepared | ||
| #957 | Sensei LMS Certificates | 37 | 97 | 362 | 4k+ | Non-prefixed global variable | ||
| #958 | Spam Destroyer | 37 | 63 | 43 | 6k+ | rand rand | ||
| #959 | TelSender – Сontact form 7, Events, Wpforms, ninja forms and woocommerce to telegram bot | 37 | 48 | 40 | 6k+ | Unsafe printing function | ||
| #960 | Tilopay | 37 | 35 | 130 | 1k+ | Nonce verification recommended | ||
| #961 | Tracking Code Manager | 37 | 55 | 42 | 90k+ | Output is not escaped | ||
| #962 | Conditional Discounts for WooCommerce – A simple yet complete woocommerce dynamic pricing plugin | 37 | 99 | 33 | 9k+ | Text Domain Mismatch | ||
| #963 | Fix Media Library | 37 | 53 | 71 | 1k+ | Output is not escaped | ||
| #964 | Special Text Boxes | 37 | 38 | 42 | 2k+ | Direct Query | ||
| #965 | Anant Sites — Elementor & Gutenberg Readymade Template Library Free & Pro Templates | 38 | 20 | 156 | 1k+ | Non-prefixed global variable | ||
| #966 | Audio Story Images | 38 | 46 | 44 | 400 | Output is not escaped | ||
| #967 | Automatic Post Tagger | 38 | 592 | 307 | 2k+ | Output is not escaped | ||
| #968 | country-redirect | 38 | 58 | 19 | 400 | Text Domain Mismatch | ||
| #969 | CRUDLab Disable Comments | 38 | 20 | 54 | 700 | Missing nonce verification | ||
| #970 | HashThemes Demo Importer | 38 | 71 | 44 | 6k+ | Output is not escaped | ||
| #971 | Lana Downloads Manager | 38 | 146 | 78 | 3k+ | Unsafe printing function | ||
| #972 | Simple Keyword to Link | 38 | 90 | 49 | 3k+ | Non Singular String Literal Domain | ||
| #973 | Smart Cookie Kit | 38 | 263 | 81 | 3k+ | Output is not escaped | ||
| #974 | Standout CSS3 Buttons | 38 | 183 | 15 | 500 | Output is not escaped | ||
| #975 | WP Maintenance Mode & Site Under Construction | 38 | 72 | 57 | 3k+ | Output is not escaped | ||
| #976 | WP-ServerInfo | 38 | 162 | 55 | 10k+ | Output is not escaped | ||
| #977 | WPTurbo -WordPress性能优化插件 | 38 | 20 | 34 | 700 | Output is not escaped | ||
| #978 | Admin Custom Font | 39 | 34 | 25 | 1k+ | Unsafe printing function | ||
| #979 | Andreani WooCommerce | 39 | 21 | 86 | 800 | Non-prefixed global variable | ||
| #980 | Australia Post WooCommerce Extension | 39 | 99 | 12 | 3k+ | Text Domain Mismatch | ||
| #981 | GS Only PDF Preview | 39 | 46 | 36 | 1k+ | Output is not escaped | ||
| #982 | Kikote – Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce | 39 | 76 | 64 | 1k+ | Missing Translators Comment | ||
| #983 | Movable Type and TypePad Importer | 39 | 42 | 25 | 20k+ | Output is not escaped | ||
| #984 | NextGEN Download Gallery | 39 | 57 | 21 | 2k+ | Short PHP open tag found | ||
| #985 | Purge Varnish Cache | 39 | 113 | 151 | 1k+ | Non-prefixed global variable | ||
| #986 | Royal Mail Shipping Calculator for WooCommerce | 39 | 61 | 31 | 1k+ | Text Domain Mismatch | ||
| #987 | Sync Post With Other Site | 39 | 179 | 21 | 3k+ | Non Singular String Literal Domain | ||
| #988 | TinyMCE Custom Styles | 39 | 297 | 76 | 7k+ | Non Singular String Literal Domain | ||
| #989 | Use Any Font | Custom Font Uploader | 39 | 36 | 55 | 200k+ | Request data is not unslashed | ||
| #990 | Virusdie | One-click website security | 39 | 149 | 66 | 2k+ | Output is not escaped | ||
| #991 | Website LLMs.txt | 39 | 13 | 145 | 40k+ | Non-prefixed global variable | ||
| #992 | htaccess protect | 39 | 28 | 33 | 800 | Input is not validated | ||
| #993 | Advanced Country Blocker | 40 | 23 | 77 | 2k+ | Exception output is not escaped | ||
| #994 | Advanced IP Blocker | 40 | 94 | 44 | 2k+ | Exception output is not escaped | ||
| #995 | Database Addon for Contact Form 7 – CFDB7 | 40 | 35 | 56 | 600k+ | Nonce verification recommended | ||
| #996 | Custom Contact Forms | 40 | 13 | 106 | 6k+ | Missing nonce verification | ||
| #997 | Export Post Info | 40 | 66 | 3 | 1k+ | Unsafe printing function | ||
| #998 | Far Future Expiry Header | 40 | 25 | 36 | 7k+ | Request data is not unslashed | ||
| #999 | WPO365 | Mail Integration for Office 365 / Outlook | 40 | 59 | 27 | 2k+ | Output is not escaped | ||
| #1000 | Salat Times | 40 | 235 | 20 | 500 | Output is not escaped |