0
Validation results

Herald

Herald

WordPress 4.9.6 theme
0
Critical alerts
  1. Customizer : Sanitization of Customizer settings Found a Customizer setting that did not have a sanitization callback function in file extension_customizer.php. Every call to the add_setting() method needs to have a sanitization callback function passed.
  2. Presence of iframes : iframes are sometimes used to load unwanted adverts and malicious code on another site Found <iframe width="100%" height="<?php echo absint($instance['height']); ?>" src="<?php echo esc_attr($protocol);?> in file video.php.
    Ligne42: <iframe width='100%' height='<?php echo absint($instance['height']); ?>' sr
  3. Malware : Operations on file system file_get_contents was found in the file parsers.php
    Ligne66: $success = $dom->loadXML( file_get_contents( $file ) );
    Ligne269: if ( ! xml_parse( $xml, file_get_contents( $file ), true ) ) {
    file_get_contents was found in the file parsers.php
    Ligne66: $success = $dom->loadXML( file_get_contents( $file ) );
    Ligne269: if ( ! xml_parse( $xml, file_get_contents( $file ), true ) ) {
    fopen was found in the file parsers.php
    Ligne415: $fp = $this->fopen( $file, 'r' );
    Ligne641: function fopen( $filename, $mode = 'r' ) {
    Ligne644: return fopen( $filename, $mode );
    fclose was found in the file parsers.php
    Ligne464: $this->fclose($fp);
    Ligne659: function fclose( $fp ) {
    Ligne662: return fclose( $fp );
    fopen was found in the file parsers.php
    Ligne415: $fp = $this->fopen( $file, 'r' );
    Ligne641: function fopen( $filename, $mode = 'r' ) {
    Ligne644: return fopen( $filename, $mode );
    fopen was found in the file parsers.php
    Ligne415: $fp = $this->fopen( $file, 'r' );
    Ligne641: function fopen( $filename, $mode = 'r' ) {
    Ligne644: return fopen( $filename, $mode );
    fclose was found in the file parsers.php
    Ligne464: $this->fclose($fp);
    Ligne659: function fclose( $fp ) {
    Ligne662: return fclose( $fp );
    fclose was found in the file parsers.php
    Ligne464: $this->fclose($fp);
    Ligne659: function fclose( $fp ) {
    Ligne662: return fclose( $fp );
    file_get_contents was found in the file radium-importer.php
    Ligne266: $data = file_get_contents( $file );
    Ligne339: $data = file_get_contents( $file );
    file_get_contents was found in the file radium-importer.php
    Ligne266: $data = file_get_contents( $file );
    Ligne339: $data = file_get_contents( $file );
    fopen was found in the file class.redux_helpers.php
    Ligne657: //$fp = fopen( $file, 'r' );
    fread was found in the file class.redux_helpers.php
    Ligne660: //$file_data = fread( $fp, 8192 );
    fclose was found in the file class.redux_helpers.php
    Ligne663: //fclose( $fp );
    fopen was found in the file helpers.php
    Ligne24: $handle = fopen( get_template_directory() . '/log', 'a' );
    fwrite was found in the file helpers.php
    Ligne25: fwrite( $handle, $mixed . PHP_EOL );
    fclose was found in the file helpers.php
    Ligne26: fclose( $handle );
  4. Admin menu : Themes should use add_theme_page() for adding admin pages. File framework.php :
    Ligne1351: // wrappers and need to be appened to using add_submenu_page.
    Ligne1402: $this->page = call_user_func( 'add_submenu_page', $page_parent, $page_title, $menu_title, $page_permission
    Ligne1460: call_user_func( 'add_submenu_page', $this->args['page_slug'], $section['title'], $section['t
    File framework.php :
    Ligne1351: // wrappers and need to be appened to using add_submenu_page.
    Ligne1402: $this->page = call_user_func( 'add_submenu_page', $page_parent, $page_title, $menu_title, $page_permission
    Ligne1460: call_user_func( 'add_submenu_page', $this->args['page_slug'], $section['title'], $section['t
    File framework.php :
    Ligne1428: $this->page = call_user_func( 'add_menu_page', $this->args['page_title'], $this->args['menu_title'], $this
    File framework.php :
    Ligne1351: // wrappers and need to be appened to using add_submenu_page.
    Ligne1402: $this->page = call_user_func( 'add_submenu_page', $page_parent, $page_title, $menu_title, $page_permission
    Ligne1460: call_user_func( 'add_submenu_page', $this->args['page_slug'], $section['title'], $section['t
  5. Deprecated functions : wp_get_http wp_get_http found in file wordpress-importer.php. Deprecated since version 4.4. Use WP_Http instead.
    Ligne905: $headers = wp_get_http( $url, $upload['file'] );
Warning
  1. core scripts deregistered : Core scripts deregistrationFound wp_deregister_script in framework.php. Themes must not deregister core scripts.
    Ligne569: wp_deregister_script( 'wpb_ace' );
    Found wp_deregister_script in enqueue.php. Themes must not deregister core scripts.
    Ligne215: wp_deregister_script( 'jquerySelect2' );
  2. theme tags : Presence of bad theme tagsFound wrong tag in style.css header.
  3. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'herald' in file demo-importer.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Above content' in file options-fields.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Below content' in file options-fields.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Above and below content' in file options-fields.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 herald, tgmpa, envato, redux-framework, framework, wordpress-importer, radium.
  4. PHP short tags : Presence of PHP short tagsPHP short tags were found in file parsedown.php. "This practice is discouraged because they are only available if enabled with short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option" (php.net), which is not the case on many servers.
    Ligne14: # Modified by Dovy Paukstys to remove <? shortcode-like declaration.
  5. Custom elements : Presence of custom headerNo reference to custom header was found in the theme.
  6. Custom elements : Presence of custom backgroundNo reference to custom background was found in the theme.
  7. Editor style : Presence of editor styleNo reference to add_editor_style() was found in the theme. It is recommended that the theme implements editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
  8. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  9. Screenshot : Screenshot fileScreenshot size is 880x660px. 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 options.php.
    Ligne23: 'display_name'         => wp_kses( sprintf( __( 'Herald Options%sTheme Documentation%s', 'herald' ), '<a href='http://demo.mekshq.com/herald/documentation' target='_blank'>', '</a>' ), w
    Possible hard-coded links were found in the file options-fields.php.
    Ligne738: 'default' =>  __( 'Copyright &copy; 2015. Created by <a href='http://mekshq.com' target='_blank'>Meks</a>. Powered by <a href='http://www
    Ligne3760: 'subtitle' => esc_html__( 'Paste specific WordPress language <a href='http://wpcentral.io/internationalization/' target='_blank'>locale code</a> 
    Ligne4175: 'desc' => wp_kses( sprintf( __( 'Where can I find my %s?', 'herald'), '<a href='http://themeforest.net/help/api' target='_blank'>API key</a>'), wp_kses_all
    Possible hard-coded links were found in the file update-panel.php.
    Ligne53: <a href='http://mekshq.com/contact' target='_blank' class='button button-primary but
  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 tag template file tag.phpThis theme does not contain optional file tag.php.
  6. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  7. Optional files : Presence of archive template file archive.phpThis theme does not contain optional file archive.php.
  8. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  9. Use of includes : Use of include or requireThe theme appears to use include or require : template-modules.php
    Ligne57: <?php include( locate_template('template-parts/modules/'.$module['type'].'.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 : index.php
    Ligne9: <?php include( locate_template('template-parts/featured/area-'. $fa['layout'].'.p
    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 : featured.php
    Ligne4: <?php include( locate_template('template-parts/featured/area-'. $module['layout']
    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 : class-pixelentity-theme-update.php
    Ligne32: require_once('class-envato-protected-api.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 : framework.php
    Ligne418: require_once 'core/dashboard.php';
    Ligne421: require_once 'core/newsflash.php';
    Ligne1709: require_once 'core/enqueue.php';
    Ligne2854: require_once 'core/enqueue.php';
    Ligne2912: require_once 'core/panel.php';
    Ligne3241: require_once 'core/panel.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 : extension_customizer.php
    Ligne751: require_once( $class_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 : field_button_set.php
    Ligne46: *              ['format']      string Formatting options for paginate fields. Options include ('currency','nice','niceShort','timeAgoInWords' or a valid Date() f
    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 : widgets.php
    Ligne18: include_once( get_template_directory() .'/core/widgets/posts.php');
    Ligne19: include_once( get_template_directory() .'/core/widgets/video.php');
    Ligne20: include_once( get_template_directory() .'/core/widgets/adsense.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 : posts.php
    Ligne159: <?php include( locate_template( 'core/widgets/posts-templates/content-'.$instance
    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 : helpers.php
    Ligne224: 
    Ligne249: 
    Ligne281: 
    Ligne307: 
    Ligne490: 
    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 : metaboxes.php
    Ligne30: include_once( get_template_directory().'/core/admin/metaboxes/page.php'); /
    Ligne31: include_once( get_template_directory().'/core/admin/metaboxes/post.php'); /
    Ligne32: include_once( get_template_directory().'/core/admin/metaboxes/category.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.

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 ).

54
Critical alerts
  1. Customizer : Sanitization of Customizer settings Found a Customizer setting that did not have a sanitization callback function in file extension_customizer.php. Every call to the add_setting() method needs to have a sanitization callback function passed.
  2. Deprecated functions : wp_get_http wp_get_http found in file wordpress-importer.php. Deprecated since version 4.4. Use WP_Http instead.
    Ligne905: $headers = wp_get_http( $url, $upload['file'] );
Warning
  1. core scripts deregistered : Core scripts deregistrationFound wp_deregister_script in framework.php. Themes must not deregister core scripts.
    Ligne569: wp_deregister_script( 'wpb_ace' );
    Found wp_deregister_script in enqueue.php. Themes must not deregister core scripts.
    Ligne215: wp_deregister_script( 'jquerySelect2' );
  2. theme tags : Presence of bad theme tagsFound wrong tag in style.css header.
  3. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'herald' in file demo-importer.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Above content' in file options-fields.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Below content' in file options-fields.php.Found a translation function that is missing a text-domain. Function esc_html__, with the arguments 'Above and below content' in file options-fields.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 herald, tgmpa, envato, redux-framework, framework, wordpress-importer, radium.
  4. PHP short tags : Presence of PHP short tagsPHP short tags were found in file parsedown.php. "This practice is discouraged because they are only available if enabled with short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option" (php.net), which is not the case on many servers.
    Ligne14: # Modified by Dovy Paukstys to remove <? shortcode-like declaration.
  5. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  6. Screenshot : Screenshot fileScreenshot size is 880x660px. 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 options.php.
    Ligne23: 'display_name'         => wp_kses( sprintf( __( 'Herald Options%sTheme Documentation%s', 'herald' ), '<a href='http://demo.mekshq.com/herald/documentation' target='_blank'>', '</a>' ), w
    Possible hard-coded links were found in the file options-fields.php.
    Ligne738: 'default' =>  __( 'Copyright &copy; 2015. Created by <a href='http://mekshq.com' target='_blank'>Meks</a>. Powered by <a href='http://www
    Ligne3760: 'subtitle' => esc_html__( 'Paste specific WordPress language <a href='http://wpcentral.io/internationalization/' target='_blank'>locale code</a> 
    Ligne4175: 'desc' => wp_kses( sprintf( __( 'Where can I find my %s?', 'herald'), '<a href='http://themeforest.net/help/api' target='_blank'>API key</a>'), wp_kses_all
    Possible hard-coded links were found in the file update-panel.php.
    Ligne53: <a href='http://mekshq.com/contact' target='_blank' class='button button-primary but
  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 tag template file tag.phpThis theme does not contain optional file tag.php.
  6. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  7. Optional files : Presence of archive template file archive.phpThis theme does not contain optional file archive.php.
  8. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  9. Use of includes : Use of include or requireThe theme appears to use include or require : template-modules.php
    Ligne57: <?php include( locate_template('template-parts/modules/'.$module['type'].'.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 : index.php
    Ligne9: <?php include( locate_template('template-parts/featured/area-'. $fa['layout'].'.p
    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 : featured.php
    Ligne4: <?php include( locate_template('template-parts/featured/area-'. $module['layout']
    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 : class-pixelentity-theme-update.php
    Ligne32: require_once('class-envato-protected-api.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 : framework.php
    Ligne418: require_once 'core/dashboard.php';
    Ligne421: require_once 'core/newsflash.php';
    Ligne1709: require_once 'core/enqueue.php';
    Ligne2854: require_once 'core/enqueue.php';
    Ligne2912: require_once 'core/panel.php';
    Ligne3241: require_once 'core/panel.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 : extension_customizer.php
    Ligne751: require_once( $class_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 : field_button_set.php
    Ligne46: *              ['format']      string Formatting options for paginate fields. Options include ('currency','nice','niceShort','timeAgoInWords' or a valid Date() f
    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 : widgets.php
    Ligne18: include_once( get_template_directory() .'/core/widgets/posts.php');
    Ligne19: include_once( get_template_directory() .'/core/widgets/video.php');
    Ligne20: include_once( get_template_directory() .'/core/widgets/adsense.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 : posts.php
    Ligne159: <?php include( locate_template( 'core/widgets/posts-templates/content-'.$instance
    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 : helpers.php
    Ligne224: 
    Ligne249: 
    Ligne281: 
    Ligne307: 
    Ligne490: 
    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 : metaboxes.php
    Ligne30: include_once( get_template_directory().'/core/admin/metaboxes/page.php'); /
    Ligne31: include_once( get_template_directory().'/core/admin/metaboxes/post.php'); /
    Ligne32: include_once( get_template_directory().'/core/admin/metaboxes/category.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.
Other checked themes