We are a group of volunteers who review and approve themes submitted to be included in the official WordPress Theme directory.
We do license, security, and code quality reviews.
We help build and maintain default themes.
The primary focus of the team is to help theme authors transition to blockBlockBlock is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience.-based themes.
If you have never used PHP Codesniffer before, we encourage you to read the available documentation. It can seem complicated at first, but it is a very helpful tool that is well worth the time to learn, and we strongly recommend it.
You can use the PHP Codesniffer both as a command line tool, or together with your code editor.
We want to encourage you to find a flow that works fastest for you. You might find it easiest to work through the list of requirements, or you might find it easier to look at file by file. Since most themes follow a standard, so can your review.
Please remember that we do not review design, but we review usability. We only require design changes if something is broken or unusable. You may add design recommendations to the review, but it is optional.
The focus of the review should be security and license. You may need to test the theme settings but you should only need to spend a couple of minutes on each.
When writing the review, separate requirements from recommendations. This makes it easier for the author to make required changes, and for other reviewers to do follow up reviews.
The most common files to find errors in are:
style.css and readme.txt Missing license information or using the wrong links.
header.php Hard coding scripts, styles and charset. Text missing translation functions.
footer.php Hard coding scripts. Options such as copyright texts that are not safely escaped on output.
functions.php Functions that are missing prefixes, functions that do things that we consider plugin territory.
customizer.php Settings that are missing sanitizing. Text missing translation functions.
We recommend starting with these files, then running the plugins and finally activating the theme and viewing the different pages and settings.
How to use the results of the Theme Check scans:
Errors needs to be fixed before a theme can be approved.
Warnings, info, and notices are indications of something that needs to be manually checked.
Recommended Recommendations are not required to be fixed before a theme can be approved.
You may include the error report in your review.
By searching for specific phrases you can drastically reduce how long a review takes. There are tools available that can search zip files, such as grep. Editors like PHPStorm, Atom and Sublime Text also lets you search the entire theme folder.
Look for these boxes throughout this page for tips:
In 2009, Matt Mullenweg confirmed again that while GPL only requires the PHP code to be compatible, WordPress.org will only host and promote themes that are 100% compatible with GPL.
This means that all code, fonts and images and any other resources that are used by the theme, must be compatible with GPL.
-The Theme Review Team does not have a mandate to change or make exceptions to this requirement, and it means that reviewers need to check both the submitted theme, and make sure that the theme author does not promote themes that are not compatible.
This step is cause for a lot of confusion and frustration for both theme authors and reviewers.
The reason why reviewers need to know the license of the authors other themes, -themes that are not even submitted to the theme directory, is that WordPress.org may not be used to promote themes that are not 100% GPL compatible.
Authors who provide themes in other places than WordPress.org, -whether it is on their own website or a marketplace, need to show that all their themes are 100% compatible with GPL.
The easiest way for reviewers to check this, is to visit the Author and Theme URI, and look for the information. If the author has added the information correctly, this step only takes a few seconds. If the information cannot be found, you can request the theme author to add it.
Stating that the user cannot remove or edit a footer credit link.
Stating that the theme can only be used on one website.
Stating that the user is not allowed to sell or distribute the theme.
If the author or theme URI has links to marketplaces, follow the links and make sure that all themes sold from the authors account are 100% compatible with GPL.
To illustrate this and to hopefully reduce some of this confusion, here are some examples:
Authors cannot submit a free theme, that is 100% GPL compatible, and use the traffic and the links in that theme, to sell a premium version of that theme, which is not 100% GPL compatible.
Authors can submit a free theme, that is 100% GPL compatible, and use the traffic and the links in that theme, to sell a premium version of that theme, which is also 100% GPL compatible.
Authors cannot submit a free theme, that is 100% GPL compatible, and use the traffic and the links in that theme, to give away or sell other themes they have created, which are not 100% GPL compatible.
Authors can submit a free theme, that is 100% GPL compatible, and use the traffic and the links in that theme, to give away or sell other themes they have created, which are also 100% GPL compatible.
It does not make a difference if a theme is sold or given away on the authors website, or on a different marketplace. Authors are allowed to sell themes on marketplaces as long as these themes are 100% GPL compatible, not sold under a split license or similar.
Authors are allowed to write blog posts, articles, and in other way present themes from other authors and theme shops, regardless of the themes license.
If the author sells themes on Theme Forest, we expect the license information to be included in the price and license information area:
get_the_category_list() is an example of a commonly used function that starts with get_ that does not need to be escaped. The links to the categories in the function are already escaped with esc_url().
To determine if a WordPress function needs to be escaped, you can look it up in the developer reference.
You can also double check content inside html attributes. A common mistake in themes is forgetting to escape the placeholders for the comment- and search forms.
Example: placeholder="Search..." would need to be both escaped and translation ready: placeholder="<?php esc_attr_e( 'Search...', 'textdomain' ); ?>"
Look for the customizer file(s) and make sure that all options are sanitized and/or validated using the correct functions and methods. All settings in the customizer needs a sanitize_callback or sanitize_js_callback.
Another problem is when a custom function is added as a sanitize_callback, but the value is returned without being sanitized.
Tutorial: Search for:
Customizer settings with checkboxes, radio buttons, multiple options (select and choice) and settings that require a specific format (for example numbers only) should be validated before saving.
Tip: The Theme Review Team has a managed GitHubGitHubGitHub is a website that offers online implementation of git repositories that can easily be shared, copied and modified by other developers. Public repositories are free to host, private repositories require a paid subscription. GitHub introduced the concept of the ‘pull request’ where code changes done in branches by contributors can be reviewed and discussed before being merged be the repository owner. https://github.com/ repo which provides useful examples of various customizerCustomizerTool built into WordPress core that hooks into most modern themes. You can use it to preview and modify many of your site’s appearance settings. features, including sanitization. This repo can be found here.
Theme authors are allowed to add custom widgets that uses existing content, but also widgets that create minor content.
Tutorial: Search for: WP_Widget
A custom widget can be very varied, but can have the same security issues as metaboxes. The data needs to be sanitized and or validated with the correct functions or methods before saving. Widget data needs to be escaped on output, whether it is displayed in the admin or on the front.
Tip: Even options that are only available if a pluginPluginA plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party is installed needs to be secure.