The theme template files are supposed to be loaded with core functions. When they are, the variables used in them are not global, so do not need to be prefixed.
Each line with a variable is generating an error for Overriding WordPress globals is prohibited and Variables defined by a theme/plugin should start with the theme/plugin prefix.
Do we need a whitelist or keep track of which files are used with include or requre?