WordPress.WP.AlternativeFunctions.file_system_operations_chmod
file system operations chmod
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-LESS | 35 | 16 | 8 | 10k+ | Missing direct file access protection | ||
| #302 | Asesor de Cookies RGPD para normativa europea | 36 | 94 | 91 | 20k+ | wp function not compatible with requires wp | ||
| #303 | Bard Extra | 36 | 158 | 76 | 600 | Text Domain Mismatch | ||
| #304 | Blaze Demo Importer | 36 | 101 | 94 | 8k+ | Output is not escaped | ||
| #305 | Cashflows for WooCommerce | 36 | 119 | 36 | 600 | Text Domain Mismatch | ||
| #306 | Custom PHP Settings | 36 | 153 | 76 | 10k+ | Output is not escaped | ||
| #307 | Just TinyMCE Custom Styles | 36 | 112 | 28 | 1k+ | Missing Arg Domain | ||
| #308 | Shadowbox JS | 36 | 246 | 14 | 1k+ | Unsafe printing function | ||
| #309 | SMTP for SendGrid – YaySMTP | 36 | 27 | 96 | 1k+ | Non-prefixed global variable | ||
| #310 | Rabo Smart Pay for WooCommerce | 36 | 145 | 54 | 600 | Text Domain Mismatch | ||
| #311 | WP LaTeX | 36 | 103 | 12 | 700 | Output is not escaped | ||
| #312 | WPAvatar | 36 | 425 | 45 | 700 | Unsafe printing function | ||
| #313 | Wppao Sitemap | 36 | 128 | 21 | 9k+ | Output is not escaped | ||
| #314 | Add From Server | 37 | 52 | 20 | 60k+ | Output is not escaped | ||
| #315 | Debug Log Viewer | 37 | 26 | 83 | 1k+ | Missing nonce verification | ||
| #316 | Images Optimize and Upload CF7 | 37 | 130 | 36 | 600 | Non Singular String Literal Domain | ||
| #317 | Recent Posts Widget With Thumbnails | 37 | 222 | 46 | 100k+ | Output is not escaped | ||
| #318 | Simple Image XML Sitemap | 37 | 119 | 16 | 1k+ | Output is not escaped | ||
| #319 | Theme Builder For Elementor | 37 | 477 | 28 | 2k+ | Text Domain Mismatch | ||
| #320 | Anant Sites — Elementor & Gutenberg Readymade Template Library Free & Pro Templates | 38 | 20 | 156 | 1k+ | Non-prefixed global variable | ||
| #321 | Automatic Post Tagger | 38 | 592 | 307 | 2k+ | Output is not escaped | ||
| #322 | HashThemes Demo Importer | 38 | 75 | 33 | 6k+ | Output is not escaped | ||
| #323 | MultiLine Files for Contact Form 7 | 38 | 98 | 40 | 9k+ | Text Domain Mismatch | ||
| #324 | Author Image | 38 | 51 | 33 | 1k+ | Output is not escaped | ||
| #325 | aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder | 39 | 22 | 429 | 2k+ | Non-prefixed global variable | ||
| #326 | Alt Magic: AI Image Alt Text Generator for WP & Image Rename | 39 | 153 | 112 | 2k+ | Text Domain Mismatch | ||
| #327 | Elementor Website Builder – more than just a page builder | 39 | 44 | 427 | 10m+ | Non-prefixed global variable | ||
| #328 | GS Only PDF Preview | 39 | 46 | 36 | 1k+ | Output is not escaped | ||
| #329 | Complete Image Sitemap | 40 | 55 | 18 | 1k+ | Output is not escaped | ||
| #330 | Far Future Expiry Header | 40 | 25 | 36 | 7k+ | Request data is not unslashed | ||
| #331 | Search with Typesense | 40 | 81 | 122 | 700 | Non-prefixed global variable | ||
| #332 | Wallet for WooCommerce | 40 | 32 | 538 | 20k+ | Non-prefixed hook name | ||
| #333 | Heroic Favicon Generator | 41 | 104 | 7 | 6k+ | Output is not escaped | ||
| #334 | Contact Form 7 Signature Addon | 45 | 147 | 44 | 6k+ | Text Domain Mismatch | ||
| #335 | 404 Image Redirection (Replace Broken Images) | 47 | 118 | 85 | 500 | Text Domain Mismatch | ||
| #336 | Drag and Drop Multiple File Upload for WooCommerce | 47 | 131 | 32 | 5k+ | Text Domain Mismatch | ||
| #337 | WP Prefix Changer | 47 | 27 | 16 | 900 | Missing Arg Domain | ||
| #338 | Ansar Import – One Click Starter Sites – for Elementor & Themes | 48 | 27 | 116 | 10k+ | Non-prefixed global variable | ||
| #339 | Veeqo for WooCommerce | 50 | 30 | 17 | 800 | Missing direct file access protection | ||
| #340 | AVIF Uploader | 51 | 49 | 44 | 4k+ | Missing Arg Domain | ||
| #341 | ImageMagick Engine | 56 | 17 | 27 | 60k+ | Nonce verification recommended | ||
| #342 | Easy GDPR Consent Forms – MailChimp | 57 | 72 | 22 | 500 | Text Domain Mismatch | ||
| #343 | Simple History – Track, Log, and Audit WordPress Changes | 58 | 26 | 120 | 300k+ | Non-prefixed global variable | ||
| #344 | FluentSnippets – High-Performance Code Snippets, Header & Footer Code, Custom CSS & PHP Code Manager | 62 | 34 | 30 | 50k+ | Nonce verification recommended | ||
| #345 | SmartVideo – Video Player and CDN | 62 | 412 | 48 | 1k+ | Text Domain Mismatch | ||
| #346 | Termageddon: Cookie Consent & Privacy Compliance | 62 | 26 | 13 | 7k+ | Exception output is not escaped | ||
| #347 | Image Sitemap | 63 | 11 | 14 | 400 | Output is not escaped | ||
| #348 | CV Demo Importer | 64 | 21 | 95 | 400 | Non-prefixed global variable | ||
| #349 | WP-Farsi | 65 | 26 | 36 | 600 | Non-prefixed function | ||
| #350 | Desert Companion | 68 | 415 | 851 | 20k+ | Non-prefixed global variable |