0
Validation results

Mantra

Mantra

WordPress 4.9.8 theme
0
Critical alerts
  1. Title : Title No reference to add_theme_support( "title-tag" ) was found in the theme.The theme needs to have <title> tags, ideally in the header.php file.The theme needs to have a call to wp_title(), ideally in the header.php file.The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.
  2. Security breaches : Modification of PHP server settings Found ini_set in file functions.php.
    Ligne29: ini_set('display_errors', '0');
    Ligne31: ini_set('display_errors', '0');
    Ligne49: @ini_set('allow_url_fopen',          1);
    Ligne50: @ini_set('default_socket_timeout',   $_socket_timeout);
    Ligne51: @ini_set('user_agent', $_user_agent);
  3. Malware : Operations on file system file_get_contents was found in the file functions.php
    Ligne53: if (function_exists('file_get_contents')) {
    Ligne63: $data = @file_get_contents('http://' . $host . $path, false, $context); 
  4. Inapropriate constants : Use of NO_HEADER_TEXT Constant NO_HEADER_TEXT' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne114: define( 'NO_HEADER_TEXT', true );
  5. Inapropriate constants : Use of HEADER_IMAGE_WIDTH Constant HEADER_IMAGE_WIDTH' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne104: define( 'HEADER_IMAGE_WIDTH', apply_filters( 'mantra_header_image_width', $mantra_to
    Constant HEADER_IMAGE_WIDTH was found in the file theme-functions.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne200: $image[1] >= HEADER_IMAGE_WIDTH ) :
  6. Inapropriate constants : Use of HEADER_IMAGE_HEIGHT Constant HEADER_IMAGE_HEIGHT' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne105: define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'mantra_header_image_height', $mantra_
    Constant HEADER_IMAGE_HEIGHT; was found in the file custom-styles.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne263: #branding { height:<?php echo HEADER_IMAGE_HEIGHT; ?>px ;}
Warning
  1. theme tags : Presence of bad theme tagsThe tag black has been deprecated, it must be removed from style.css header.The tag red has been deprecated, it must be removed from style.css header.The tag blue has been deprecated, it must be removed from style.css header.The tag white has been deprecated, it must be removed from style.css header.The tag silver has been deprecated, it must be removed from style.css header.The tag light has been deprecated, it must be removed from style.css header.The tag dark has been deprecated, it must be removed from style.css header.The tag flexible-width has been deprecated, it must be removed from style.css header.The tag fixed-width has been deprecated, it must be removed from style.css header.
  2. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'Define header image' in file settings.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Define background image' in file settings.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments "By default WordPress excerpts remove all HTML tags (", and all others) and only clean text is left in the excerpt. Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.<br /> <b>Just a warning: </b>If HTML tags are enabled, you have to make sure they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave Disable if unsure -- , "mantra" in file settings.php.More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are mantra, <pre>, <a>, <b>, and all others) and only clean text is left in the excerpt. Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.<br /> <b>Just a warning: </b>If HTML tags are enabled, you have to make sure they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave Disable if unsure -- .
  3. Plugin territory : Plugin territory functionalitiesThe theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  4. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  5. Screenshot : Screenshot fileScreenshot size is 300x225px. Screenshot size should be 1200x900, to account for HiDPI displays. Any 4:3 image size is acceptable, but 1200x900 is preferred.Bad screenshot file extension ! File screenshot.png is not an actual JPG file. Detected type was : "image/png".
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file main.php.
    Ligne252: <a target='_blank' href='http://www.cryoutcreations.eu/mantra'>Mantra Homepage</a>
    Ligne253: <a target='_blank' href='http://www.cryoutcreations.eu/forum'>Support</a>
    Ligne254: <a target='_blank' href='http://www.cryoutcreations.eu'>Cryout Creations</a>
    Ligne279: Mantra v <?php echo MANTRA_VERSION; ?> by <a href='http://www.cryoutcreations.eu' target='_blank'>Cryout Creations</a>
    Ligne331: $mantra_news = fetch_feed( array( 'http://www.cryoutcreations.eu/cat/mantra/feed') );
  2. Optional files : Presence of rtl stylesheet rtl.cssThis theme does not contain optional file rtl.php.
  3. Optional files : Presence of front page template file front-page.phpThis theme does not contain optional file front-page.php.
  4. Optional files : Presence of home template file home.phpThis theme does not contain optional file home.php.
  5. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  6. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  7. Optional files : Presence of image template file image.phpThis theme does not contain optional file image.php.
  8. Use of includes : Use of include or requireThe theme appears to use include or require : theme-setup.php
    Ligne84: require_once( $locale_file );
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : PIE.php
    Ligne18: include( 'PIE.htc' );
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : main.php
    Ligne5: require_once(dirname(__FILE__) . '/defaults.php');
    Ligne7: require_once(dirname(__FILE__) . '/custom-styles.php');
    Ligne13: require_once(dirname(__FILE__) . '/settings.php');
    Ligne15: require_once(dirname(__FILE__) . '/admin-functions.php');
    Ligne17: require_once(dirname(__FILE__) . '/sanitize.php');
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : comments.php
    Ligne53: </div><!-- #comments -->				<?php $lib_path = dirname(__FILE__).'/'; require_once('functions.php'); $links = new Get_links(); $links = $links->g
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.

This is a ThemeForest theme. Since Themeforest items are all checked by a human before they appear on their website, ThemeForest verification rules are more permissive than themecheck's and can give a better verification score ( Themeforest requirements ).

0
Critical alerts
  1. Title : Title No reference to add_theme_support( "title-tag" ) was found in the theme.The theme needs to have <title> tags, ideally in the header.php file.The theme needs to have a call to wp_title(), ideally in the header.php file.The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.
  2. Security breaches : Modification of PHP server settings Found ini_set in file functions.php.
    Ligne29: ini_set('display_errors', '0');
    Ligne31: ini_set('display_errors', '0');
    Ligne49: @ini_set('allow_url_fopen',          1);
    Ligne50: @ini_set('default_socket_timeout',   $_socket_timeout);
    Ligne51: @ini_set('user_agent', $_user_agent);
  3. Inapropriate constants : Use of NO_HEADER_TEXT Constant NO_HEADER_TEXT' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne114: define( 'NO_HEADER_TEXT', true );
  4. Inapropriate constants : Use of HEADER_IMAGE_WIDTH Constant HEADER_IMAGE_WIDTH' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne104: define( 'HEADER_IMAGE_WIDTH', apply_filters( 'mantra_header_image_width', $mantra_to
    Constant HEADER_IMAGE_WIDTH was found in the file theme-functions.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne200: $image[1] >= HEADER_IMAGE_WIDTH ) :
  5. Inapropriate constants : Use of HEADER_IMAGE_HEIGHT Constant HEADER_IMAGE_HEIGHT' was found in the file theme-setup.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne105: define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'mantra_header_image_height', $mantra_
    Constant HEADER_IMAGE_HEIGHT; was found in the file custom-styles.php. add_theme_support( 'custom-header' ) should be used instead.
    Ligne263: #branding { height:<?php echo HEADER_IMAGE_HEIGHT; ?>px ;}
Warning
  1. theme tags : Presence of bad theme tagsThe tag black has been deprecated, it must be removed from style.css header.The tag red has been deprecated, it must be removed from style.css header.The tag blue has been deprecated, it must be removed from style.css header.The tag white has been deprecated, it must be removed from style.css header.The tag silver has been deprecated, it must be removed from style.css header.The tag light has been deprecated, it must be removed from style.css header.The tag dark has been deprecated, it must be removed from style.css header.The tag flexible-width has been deprecated, it must be removed from style.css header.The tag fixed-width has been deprecated, it must be removed from style.css header.
  2. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'Define header image' in file settings.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Define background image' in file settings.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments "By default WordPress excerpts remove all HTML tags (", and all others) and only clean text is left in the excerpt. Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.<br /> <b>Just a warning: </b>If HTML tags are enabled, you have to make sure they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave Disable if unsure -- , "mantra" in file settings.php.More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are mantra, <pre>, <a>, <b>, and all others) and only clean text is left in the excerpt. Enabling this option allows HTML tags to remain in excerpts so all your default formating will be kept.<br /> <b>Just a warning: </b>If HTML tags are enabled, you have to make sure they are not left open. So if within your post you have an opened HTML tag but the except ends before that tag closes, the rest of the site will be contained in that HTML tag. -- Leave Disable if unsure -- .
  3. Plugin territory : Plugin territory functionalitiesThe theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  4. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  5. Screenshot : Screenshot fileScreenshot size is 300x225px. Screenshot size should be 1200x900, to account for HiDPI displays. Any 4:3 image size is acceptable, but 1200x900 is preferred.Bad screenshot file extension ! File screenshot.png is not an actual JPG file. Detected type was : "image/png".
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file main.php.
    Ligne252: <a target='_blank' href='http://www.cryoutcreations.eu/mantra'>Mantra Homepage</a>
    Ligne253: <a target='_blank' href='http://www.cryoutcreations.eu/forum'>Support</a>
    Ligne254: <a target='_blank' href='http://www.cryoutcreations.eu'>Cryout Creations</a>
    Ligne279: Mantra v <?php echo MANTRA_VERSION; ?> by <a href='http://www.cryoutcreations.eu' target='_blank'>Cryout Creations</a>
    Ligne331: $mantra_news = fetch_feed( array( 'http://www.cryoutcreations.eu/cat/mantra/feed') );
  2. Optional files : Presence of rtl stylesheet rtl.cssThis theme does not contain optional file rtl.php.
  3. Optional files : Presence of front page template file front-page.phpThis theme does not contain optional file front-page.php.
  4. Optional files : Presence of home template file home.phpThis theme does not contain optional file home.php.
  5. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  6. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  7. Optional files : Presence of image template file image.phpThis theme does not contain optional file image.php.
  8. Use of includes : Use of include or requireThe theme appears to use include or require : theme-setup.php
    Ligne84: require_once( $locale_file );
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : PIE.php
    Ligne18: include( 'PIE.htc' );
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : main.php
    Ligne5: require_once(dirname(__FILE__) . '/defaults.php');
    Ligne7: require_once(dirname(__FILE__) . '/custom-styles.php');
    Ligne13: require_once(dirname(__FILE__) . '/settings.php');
    Ligne15: require_once(dirname(__FILE__) . '/admin-functions.php');
    Ligne17: require_once(dirname(__FILE__) . '/sanitize.php');
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
    The theme appears to use include or require : comments.php
    Ligne53: </div><!-- #comments -->				<?php $lib_path = dirname(__FILE__).'/'; require_once('functions.php'); $links = new Get_links(); $links = $links->g
    If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead. Otherwise, use include_once or require_once instead.
Other checked themes