WordPress.WP.DiscouragedConstants.PLUGINDIRUsageFound
PLUGINDIRUsage Found
The plugin uses a PHP or WordPress pattern that coding standards discourage.
Why It Shows Up
Plugin Check found a discouraged function, forbidden function, goto, backtick operator, or similar construct.
Why It Matters
Discouraged patterns are often harder to review, less portable across hosts, or easier to misuse securely.
How to Fix
- Identify why the construct is used and whether WordPress provides a safer API.
- Replace shell execution, dynamic execution, or broad forbidden functions with constrained WordPress APIs.
- If a third-party library triggers the warning, isolate and document it.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Updated | Top Issue |
|---|---|---|---|---|---|---|---|
| #1 | HeadSpace2 SEO | 22 | 940 | 360 | 3k+ | Text Domain Mismatch | |
| #2 | WPeMatico RSS Feed Fetcher | 24 | 1,376 | 582 | 10k+ | Output Not Escaped | |
| #3 | Custom Field Template | 30 | 521 | 618 | 30k+ | Recommended | |
| #4 | Download Plugin | 31 | 78 | 102 | 50k+ | Missing Unslash | |
| #5 | WP125 | 31 | 178 | 184 | 3k+ | Unsafe Printing Function | |
| #6 | Freesoul Deactivate Plugins – Disable plugins on individual WordPress pages | 32 | 53 | 773 | 9k+ | Recommended | |
| #7 | Peter’s Post Notes | 36 | 224 | 102 | 3k+ | Output Not Escaped | |
| #8 | WP PageNavi Style | 37 | 109 | 11 | 8k+ | Unsafe Printing Function | |
| #9 | CF7 to Webhook | 38 | 102 | 72 | 30k+ | Unsafe Printing Function | |
| #10 | Live Chat by Formilla – Real-time Chat & Chatbots Plugin | 57 | 22 | 13 | 2k+ | Missing Arg Domain | |
| #11 | My-Plugins | 72 | 24 | 6 | 20k+ | Missing Arg Domain |