54
Validation results

Crux

Crux

WordPress 4.9.8 theme
54
Critical alerts
  1. Customizer : Sanitization of Customizer settings Found a Customizer setting that did not have a sanitization callback function in file stag-customizer.php. Every call to the add_setting() method needs to have a sanitization callback function passed.
  2. Included plugins : Zip file found Plugins are not allowed in themes. The zip file found was layerslider.zip.
Warning
  1. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function esc_attr_e, with the arguments 'deactivate-license' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function esc_attr_e, with the arguments 'activate-license' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Error' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key expired on %s.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key has been disabled.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Invalid license.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license is not active for this URL.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'This appears to be an invalid license key for %s.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key has reached its activation limit.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.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 stag, tgmpa, woocommerce.
  2. Custom elements : Presence of custom headerNo reference to custom header was found in the theme.
  3. Custom elements : Presence of custom backgroundNo reference to custom background was found in the theme.
  4. I18N implementation : Proper use of _e(Possible variable $strings found in translation function in theme-updater-admin.php. Translation function calls should not contain PHP variables.
    Line 187: <input type='submit' class='button-secondary' name='<?php echo $this->theme_slug; ?>_license_deactivate' value='<?php esc_attr_e( $strings['deactivate-license'] ); ?>'/>
    Possible variable $strings found in translation function in theme-updater-admin.php. Translation function calls should not contain PHP variables.
    Line 189: <input type='submit' class='button-secondary' name='<?php echo $this->theme_slug; ?>_license_activate' value='<?php esc_attr_e( $strings['activate-license'] ); ?>'/>
  5. I18N implementation : Proper use of esc_attr_e(Possible variable $strings found in translation function in theme-updater-admin.php. Translation function calls should not contain PHP variables.
    Line 187: <input type='submit' class='button-secondary' name='<?php echo $this->theme_slug; ?>_license_deactivate' value='<?php esc_attr_e( $strings['deactivate-license'] ); ?>'/>
    Possible variable $strings found in translation function in theme-updater-admin.php. Translation function calls should not contain PHP variables.
    Line 189: <input type='submit' class='button-secondary' name='<?php echo $this->theme_slug; ?>_license_activate' value='<?php esc_attr_e( $strings['activate-license'] ); ?>'/>
  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 PNG file. Detected type was : "image/jpeg".
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file theme-updater.php.
    Line 32: If you\'re coming from ThemeForest, please download <a href='https://envato.com/market-plugin/' target='_blank'>Envato Market</a> plugin
    Possible hard-coded links were found in the file customizer.php.
    Line 159: 'default' => '&copy; '.date('Y').' <a href=''. esc_url( home_url( '/' ) ) .''>'.get_bloginfo( 'name' ).'</a> &mdash; A WordPress Theme by <a href='https://codestag.com'>Codestag</a>',
  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 category template file category.phpThis theme does not contain optional file category.php.
  6. Optional files : Presence of tag template file tag.phpThis theme does not contain optional file tag.php.
  7. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  8. Optional files : Presence of author template file author.phpThis theme does not contain optional file author.php.
  9. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  10. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  11. Optional files : Presence of image template file image.phpThis theme does not contain optional file image.php.
  12. Use of includes : Use of include or requireThe theme appears to use include or require : stag-customizer.php
    Line 218: require_once( $path . 'stag-markup-helper.php' );
    Line 450: require_once( trailingslashit( get_template_directory() ) . '/stag-customiz
    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 : init.php
    Line 16: require_once( $inc . 'widgets/widget-woo-featured-products.php' );
    Line 17: require_once( $inc . 'widgets/widget-woo-latest-products.php' );
    Line 18: require_once( $inc . 'widgets/widget-woo-best-sellers.php' );
    Line 19: require_once( $inc . 'widgets/widget-woo-on-sale-products.php' );
    Line 20: require_once( $inc . 'widgets/widget-woo-top-rated.php' );
    Line 23: require_once( $inc . 'meta/layout-meta.php' );
    Line 24: require_once( $inc . 'meta/page-meta.php' );
    Line 25: require_once( $inc . 'meta/slider-meta.php' );
    Line 27: require_once( $inc . 'widgets/widget-static-content.php' );
    Line 28: require_once( $inc . 'widgets/widget-category-box.php' );
    Line 29: require_once( $inc . 'widgets/widget-section-category-boxes.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 ).

58
Critical alerts
  1. Customizer : Sanitization of Customizer settings Found a Customizer setting that did not have a sanitization callback function in file stag-customizer.php. Every call to the add_setting() method needs to have a sanitization callback function passed.
  2. Included plugins : Zip file found Plugins are not allowed in themes. The zip file found was layerslider.zip.
Warning
  1. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function esc_attr_e, with the arguments 'deactivate-license' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function esc_attr_e, with the arguments 'activate-license' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Error' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key expired on %s.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key has been disabled.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Invalid license.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license is not active for this URL.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'This appears to be an invalid license key for %s.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Your license key has reached its activation limit.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'An error occurred, please try again.' in file theme-updater-admin.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 stag, tgmpa, woocommerce.
  2. 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 PNG file. Detected type was : "image/jpeg".
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file theme-updater.php.
    Line 32: If you\'re coming from ThemeForest, please download <a href='https://envato.com/market-plugin/' target='_blank'>Envato Market</a> plugin
    Possible hard-coded links were found in the file customizer.php.
    Line 159: 'default' => '&copy; '.date('Y').' <a href=''. esc_url( home_url( '/' ) ) .''>'.get_bloginfo( 'name' ).'</a> &mdash; A WordPress Theme by <a href='https://codestag.com'>Codestag</a>',
  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 category template file category.phpThis theme does not contain optional file category.php.
  6. Optional files : Presence of tag template file tag.phpThis theme does not contain optional file tag.php.
  7. Optional files : Presence of term template file taxonomy.phpThis theme does not contain optional file taxonomy.php.
  8. Optional files : Presence of author template file author.phpThis theme does not contain optional file author.php.
  9. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  10. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  11. Optional files : Presence of image template file image.phpThis theme does not contain optional file image.php.
  12. Use of includes : Use of include or requireThe theme appears to use include or require : stag-customizer.php
    Line 218: require_once( $path . 'stag-markup-helper.php' );
    Line 450: require_once( trailingslashit( get_template_directory() ) . '/stag-customiz
    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 : init.php
    Line 16: require_once( $inc . 'widgets/widget-woo-featured-products.php' );
    Line 17: require_once( $inc . 'widgets/widget-woo-latest-products.php' );
    Line 18: require_once( $inc . 'widgets/widget-woo-best-sellers.php' );
    Line 19: require_once( $inc . 'widgets/widget-woo-on-sale-products.php' );
    Line 20: require_once( $inc . 'widgets/widget-woo-top-rated.php' );
    Line 23: require_once( $inc . 'meta/layout-meta.php' );
    Line 24: require_once( $inc . 'meta/page-meta.php' );
    Line 25: require_once( $inc . 'meta/slider-meta.php' );
    Line 27: require_once( $inc . 'widgets/widget-static-content.php' );
    Line 28: require_once( $inc . 'widgets/widget-category-box.php' );
    Line 29: require_once( $inc . 'widgets/widget-section-category-boxes.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