WordPress.WP.DiscouragedConstants.TEMPLATEPATHUsageFound

Discouraged WordPress constant usage: TEMPLATEPATH

The plugin uses a PHP or WordPress pattern that coding standards discourage.

medium weight

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.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsAddedUpdatedTop Issue
#51TW Pagination4190231k+Non Singular String Literal Domain
#52Contact Details4543291k+Non Singular String Literal Text
#53FakerPress526615510k+Non-prefixed global variable
#54ONTRApages5316271k+Output is not escaped
#55Title Toggle for Storefront Theme681693k+Output is not escaped
#56Embed Iframe692562k+wp function not compatible with requires wp
#57Post Template701211400Missing nonce verification
#58Storefront Top Bar7720132k+Non-prefixed hook name