# Theme Check Plugin Errors

**URL:** <https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469>\
**Category:** BB Theme\
**Created:** [February 4, 2015, 3:55am UTC](https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469 "2015-02-04T03:55:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![b-j-reece](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/b/59ef9b/32.png) [@b-j-reece](https://community.wpbeaverbuilder.com/u/b-j-reece)\
**Post date:** [February 4, 2015, 3:55am UTC](https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469/1 "2015-02-04T03:55:33Z")

</div>

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](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’ );

---

<div class="post-metadata">

**Author:** ![robby](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/robby/32/12_2.png) [@robby](https://community.wpbeaverbuilder.com/u/robby)\
**Post date:** [February 4, 2015, 10:20am UTC](https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469/2 "2015-02-04T10:20:04Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![b-j-reece](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/b/59ef9b/32.png) [@b-j-reece](https://community.wpbeaverbuilder.com/u/b-j-reece)\
**Post date:** [February 5, 2015, 2:21am UTC](https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469/3 "2015-02-05T02:21:01Z")

</div>

Thanks Robby

---

<div class="post-metadata">

**Author:** ![system](https://community.wpbeaverbuilder.com/uploads/default/original/2X/9/9db1b183a7ea1efa26199a2a2b3511d742473dae.png) [@system](https://community.wpbeaverbuilder.com/u/system)\
**Post date:** [April 27, 2019, 10:15pm UTC](https://community.wpbeaverbuilder.com/t/theme-check-plugin-errors/2469/4 "2019-04-27T22:15:32Z")

</div>

Closed on April 27, 2019, 10:15pm UTC


