WordPress.WP.DiscouragedConstants.TEMPLATEPATHUsageFound
Discouraged WordPress constant usage: TEMPLATEPATH
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 | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #51 | TW Pagination | 41 | 90 | 23 | 1k+ | Non Singular String Literal Domain | ||
| #52 | Contact Details | 45 | 43 | 29 | 1k+ | Non Singular String Literal Text | ||
| #53 | FakerPress | 52 | 66 | 155 | 10k+ | Non-prefixed global variable | ||
| #54 | ONTRApages | 53 | 16 | 27 | 1k+ | Output is not escaped | ||
| #55 | Title Toggle for Storefront Theme | 68 | 16 | 9 | 3k+ | Output is not escaped | ||
| #56 | Embed Iframe | 69 | 25 | 6 | 2k+ | wp function not compatible with requires wp | ||
| #57 | Post Template | 70 | 12 | 11 | 400 | Missing nonce verification | ||
| #58 | Storefront Top Bar | 77 | 20 | 13 | 2k+ | Non-prefixed hook name |