Theme Check Plugin Errors

Hi guys,

I have used a plugin called Theme Check, I dont really understand this but i have run it and all the following errors have been found. Could yo shed some light on this please, thanks:-

One or more errors were found for Beaver Builder Child Theme.

REQUIRED:.wp-caption css class is needed in your theme css.
REQUIRED:.wp-caption-text css class is needed in your theme css.
REQUIRED:.sticky css class is needed in your theme css.
REQUIRED:.gallery-caption css class is needed in your theme css.
REQUIRED:.bypostauthor css class is needed in your theme css.
REQUIRED:.alignright css class is needed in your theme css.
REQUIRED:.alignleft css class is needed in your theme css.
REQUIRED:.aligncenter css class is needed in your theme css.
RECOMMENDED: Text domain problems in customizer-panel-general.php. You have not included a text domain!
Line 189: ‘description’ => __(‘The accent color will be used to color elements such as links and butto
WARNING: file_put_contents was found in the file class-lessc.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
Line 1835: return file_put_contents($outFname, $out);
WARNING: file_put_contents was found in the file class-fl-customizer.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
Line 629: file_put_contents( $cache_dir[‘path’] . $css_slug . ‘-’ . $new_css_key . ‘.
WARNING: file_put_contents was found in the file class-fl-customizer-migrate.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
Line 132: file_put_contents( $cache_dir[‘path’] . ‘backup.dat’, $settings );
WARNING: file_get_contents was found in the file class-lessc.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
Line 121: $root = $parser->parse(file_get_contents($realPath));
Line 1830: $out = $this->compile(file_get_contents($fname), $fname);
WARNING: file_get_contents was found in the file class-fl-customizer.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.
Line 608: $css .= file_get_contents( FL_THEME_DIR . ‘/less/theme.less’ );
Line 611: $css .= file_get_contents( FL_THEME_DIR . ‘/less/woocommerce.less’ );
Line 615: $css .= file_get_contents( $skin_file );
Line 652: $mixins = file_get_contents( FL_THEME_DIR . ‘/less/mixins.less’ );
REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output
REQUIRED: No content width has been defined. Example:
if ( ! isset( $content_width ) ) $content_width = 900;
REQUIRED: Could not find post_class. See: post_class
<div id=“post-<?php the_ID(); ?>” <?php post_class(); ?>>
REQUIRED: Could not find comment_form. See: comment_form
<?php comment_form(); ?>
REQUIRED: get_settings() found in the file class-fl-theme.php. Deprecated since version 2.1. Use get_option() instead.
Line 32: * @method get_settings
Line 34: static public function get_settings()
Line 213: $settings = self::get_settings();
Line 268: $settings = self::get_settings();
Line 331: $settings = self::get_settings();
Line 369: $settings = self::get_settings();
Line 446: $settings = self::get_settings();
Line 500: $settings = self::get_settings();
Line 633: $settings = self::get_settings();
Line 676: $settings = self::get_settings();
Line 835: $settings = self::get_settings();
Line 895: $settings = self::get_settings();
RECOMMENDED: could not find the file readme.txt in the theme. Please see Theme_Documentation for more information.
RECOMMENDED: Possible variable $val found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 991: $rep = $this->compileValue($this->lib_e($val));
RECOMMENDED: Possible variable $this found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 1405: return $this->lib_e($this->reduce($inner));
RECOMMENDED: Possible variable $string found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 977: $template = $this->compileValue($this->lib_e($string));
RECOMMENDED: Possible variable $str found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 102: $url = $this->compileValue($this->lib_e($str));
RECOMMENDED: Possible variable $res found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 1367: if (empty($value[2])) $res = $this->lib_e($res);
RECOMMENDED: Possible variable $part found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 1399: if ($strip) $part = $this->lib_e($part);
RECOMMENDED: Possible variable $newUnit found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 1020: $this->compileValue($this->lib_e($newUnit)));
RECOMMENDED: Possible variable $key found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 1374: $key = $this->vPrefix . $this->compileValue($this->lib_e($key));
RECOMMENDED: Possible variable $items found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 960: return $this->lib_e($items[0]);
RECOMMENDED: Possible variable $arg found in translation function in class-lessc.php. Translation function calls must NOT contain PHP variables.
Line 955: protected function lib_e($arg) {
RECOMMENDED: No reference to add_theme_support( “title-tag” ) was found in the theme. It is recommended that the theme implement this functionality for WordPress 4.1 and above.
RECOMMENDED: No reference to add_theme_support( “custom-header”, $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: No reference to add_theme_support( “custom-background”, $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
RECOMMENDED: Tags: is either empty or missing in style.css header.
INFO: Possible hard-coded links were found in the file copyright.php.
Line 5: <span id=‘fl-site-credits’><a href=‘http://forum.wpbeaverbuilder.com’ target=’_blank’ title='WordPress Page Build
INFO: class-fl-admin.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 24: include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );

Hey Brian,

Thanks for the heads up! We actually just discovered this tool and started using it as well. We’ll be slowly but surely implementing many of the suggestions from this plugin. Without digging too deeply into these results, I would guess that many of these suggestions are to improve backwards compatibility and support for unorthodox server configurations. If you’re using a standard shared hosting plan or VPS, many of these recommendations are mute.

That said, we always want to follow the best practices recommended by the community/experts. So we will be implementing as many of these suggestions as possible.

Thanks again for taking the time to let us know about this :slight_smile:

Thanks Robby