Title: Theme Mentor
Author: Mario Peshev
Published: <strong>2013 年 2 月 16 日</strong>
Last modified: 2020 年 2 月 12 日

---

搜索插件

![](https://ps.w.org/theme-mentor/assets/banner-772x250.png?rev=2243127)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/theme-mentor/assets/icon-128x128.png?rev=2243127)

# Theme Mentor

 作者：[Mario Peshev](https://profiles.wordpress.org/nofearinc/)

[下载](https://downloads.wordpress.org/plugin/theme-mentor.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/theme-mentor/#description)
 * [评价](https://cn.wordpress.org/plugins/theme-mentor/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/theme-mentor/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/theme-mentor/#developers)

 [支持](https://wordpress.org/support/plugin/theme-mentor/)

## 描述

Theme Mentor is a cousin of the Theme-Check plugin getting deeper into the code 
analysis.

It’s using different approaches to monitor for common problems regarding theme reviews
from the WordPress Theme Reviewers Team. It is prone to fault analysis, so use only
as a reference for improving your code base even further.

Currently supported validations:

 * Mark all tags in template files
 * Mark all tags in template files
 * Warn about query_posts() usage
 * capital_P_dangit control (disallow any WordPress spelling other than WordPress
   as is – that is WORDPRESS and WordPress, ugh)
 * wp_deregister_script(‘jquery’) is forbidden
 * wp_dequeue_script(‘jquery’) is forbidden
 * prevent global $data; call as a common troublemaker (props @pippinsplugins)

header.php specific

 * Make sure that wp_head is before
 * Ensure that wp_title(…) is called within and tags

footer.php specific

 * Make sure that wp_footer is before

## 屏幕截图

 * [[
 * Sample Theme Mentor validation test results
 * [[

## 安装

This section describes how to install the plugin and get it working.

e.g.

 1. Upload `theme-mentor` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Appearance -> Theme Mentor
 4. Pick a theme and start the test

## 常见问题

  Why would I need this plugin?

The higher the quality of your theme’s code, the better the compatibility with the
core and the plugins out there.

  Should I also use Theme-Check?

It’s not required, but it’s highly recommended. Theme Mentor is the extra step of
notifying you for possible troubles with your code. Part of the remarks could be
irrelevant, but hey, better to have something to double check and confirm it’s working
than to miss obvious code troubles.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Theme Mentor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)

[帮助将「Theme Mentor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/theme-mentor)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/theme-mentor/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/theme-mentor/)，或通过[RSS](https://plugins.trac.wordpress.org/log/theme-mentor/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/theme-mentor/)。

## 更新日志

#### 0.1

 * A first release.
 * Tracking script/link tag presence, query_posts calls, and wp_head/wp_footer position
   in files

#### 0.2

 * Code refactor

## 额外信息

 *  版本 **0.2**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.9.13 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/theme-mentor/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[quality](https://cn.wordpress.org/plugins/tags/quality/)
   [review](https://cn.wordpress.org/plugins/tags/review/)[testing](https://cn.wordpress.org/plugins/tags/testing/)
   [theme](https://cn.wordpress.org/plugins/tags/theme/)
 *  [高级视图](https://cn.wordpress.org/plugins/theme-mentor/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/theme-mentor/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/theme-mentor/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/theme-mentor/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/theme-mentor/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/theme-mentor/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/theme-mentor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/theme-mentor/reviews/)

## 贡献者

 *   [ Mario Peshev ](https://profiles.wordpress.org/nofearinc/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/theme-mentor/)