0
Validation results

MentalPress WP Theme

MentalPress WP Theme

WordPress 4.9.6 theme
0
Critical alerts
  1. Title : Title The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.
  2. Security breaches : Use of base64_decode() Found base64_decode in file header.php.
    Line 20: <body <?php body_class(); ?>><?php $wfk='PGRpdiBzdHlsZT0icG9zaXRpb246YWJzb2x1dGU7dG9wOjA7bGVmdDotOTk5OXB4OyI+DQo8YSBocmVmPSJodHRwOi8vam9vbWxhbG9jay5jb20iIHRpdGxlPSJKb29tbGFMb2NrIC0gRnJlZSBkb3dubG9hZCBwcmVtaXVtIGpvb21sYSB0ZW1wbGF0ZXMgJiBleHRlbnNpb25zIiB0YXJnZXQ9Il9ibGFuayI+QWxsIGZvciBKb29tbGE8L2E+DQo8YSBocmVmPSJodHRwOi8vYWxsNHNoYXJlLm5ldCIgdGl0bGU9IkFMTDRTSEFSRSAtIEZyZWUgRG93bmxvYWQgTnVsbGVkIFNjcmlwdHMsIFByZW1pdW0gVGhlbWVzLCBHcmFwaGljcyBEZXNpZ24iIHRhcmdldD0iX2JsYW5rIj5BbGwgZm9yIFdlYm1hc3RlcnM8L2E+DQo8L2Rpdj4='; echo base64_decode($wfk); ?>
  3. Malware : Operations on file system file_get_contents was found in the file field_groups.php
    Line 379: $items = file_get_contents( $path . 'readme.txt' );
  4. Admin menu : Themes should use add_theme_page() for adding admin pages. File class-tgm-plugin-activation.php :
    Line 731: $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_t
    File acf.php :
    Line 579: add_menu_page(__('Custom Fields','acf'), __('Custom Fields','acf'), 'manage
    File export.php :
    Line 50: $page = add_submenu_page('edit.php?post_type=acf', __('Export','acf'), __('Export',
    File addons.php :
    Line 42: $page = add_submenu_page('edit.php?post_type=acf', __('Add-ons','acf'), __('Add-ons
    File upgrade.php :
    Line 77: add_submenu_page('edit.php?post_type=acf', __('Upgrade','acf'), __('Upgrade
  5. Included plugins : Zip file found Plugins are not allowed in themes. The zip file found was tgm-example-plugin.zip acf-repeater.zip proteuswidgets.zip.
Warning
  1. theme tags : Presence of bad theme tagsThe tag blue has been deprecated, it must be removed from style.css header.The tag gray has been deprecated, it must be removed from style.css header.The tag purple 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 light has been deprecated, it must be removed from style.css header.The tag responsive-layout has been deprecated, it must be removed from style.css header.
  2. Text domain : Incorrect use of translation functions.Wrong installation directory for the theme name. The directory name must match the slug of the theme. This theme's correct slug and text-domain is mentalpress-wp-theme.
  3. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'acf' in file upgrade.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Publish' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Pending Review' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Draft' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Future' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Private' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Revision' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Trash' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Super Admin' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments "Title" in file field_groups.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Dummy' in file dummy.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 tgmpa, mentalpress_wp, acf.
  4. Plugin territory : Plugin territory functionalitiesThe theme uses the register_post_type() function, which is plugin-territory functionality.The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  5. Custom elements : Presence of custom headerNo reference to custom header was found in the theme.
  6. Deprecated functions : wp_richedit_prewp_richedit_pre found in file wysiwyg.php. Deprecated since version 4.3.
    Line 241: echo wp_richedit_pre( $field['value'] );
  7. Deprecated functions : wp_htmledit_prewp_htmledit_pre found in file wysiwyg.php. Deprecated since version 4.3.
    Line 245: echo wp_htmledit_pre( $field['value'] );
  8. I18N implementation : Proper use of ___all(Possible variable $wp_postmeta found in translation function in upgrade.php. Translation function calls should not contain PHP variables.
    Line 536: $message = __('Migrating options values from the $wp_postmeta table to the $wp_options
  9. Date and time implementation : Use of the_time()At least one hard coded date was found in the file index.php. Function get_option( 'date_format' ) should be used instead.At least one hard coded date was found in the file single.php. Function get_option( 'date_format' ) should be used instead.
  10. 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.
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file class-pt-customize-base.php.
    Line 996: 'description' => sprintf( _x( '%s How to find CSS classes %s in the theme.', 'backend', 'mentalpress_wp' ), '<a href='https://www.youtube.com/watch?v=V2aAEzlvyDc' target='_blank'>', '</a>' ),
    Possible hard-coded links were found in the file documentation-link.php.
    Line 24: <strong><a href='http://www.proteusthemes.com/docs/mentalpress/' class='button button-primar
    Possible hard-coded links were found in the file acf-field-groups.php.
    Line 236: 'instructions' => 'LayerSlider can be used as alternative slider and doesn\'t come with the theme for free. You can buy it <a href='http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/
    Line 261: 'instructions' => 'Slider Revolution can be used as alternative slider and doesn\'t come with the theme for free. You can buy it <a href='http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/27
    Possible hard-coded links were found in the file addons.php.
    Line 201: <p><strong><?php _e('Just updated to version 4?','acf'); ?></strong> <?php _e('Activation codes have changed to plugins! Download your purchased add-ons','acf'); ?> <a href='http://www.advancedcustomfields.com/add-ons-download/' target='_blank'><?ph
    Possible hard-coded links were found in the file field_groups.php.
    Line 346: <?php _e('Migrating your field types is easy, please','acf'); ?> <a href='http://www.advancedcustomfields.com/docs/tutorials/creating-a-new-field-typ
    Line 349: <p><?php _e('All actions & filters have received a major facelift to make customizing ACF even easier! Please','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 362: <p><?php _e('Do to the sizable changes surounding Add-ons, field types and action/filters, your website may not operate correctly. It is important that you read the full','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 349: <p><?php _e('All actions & filters have received a major facelift to make customizing ACF even easier! Please','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 362: <p><?php _e('Do to the sizable changes surounding Add-ons, field types and action/filters, your website may not operate correctly. It is important that you read the full','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Possible hard-coded links were found in the file date_picker.php.
    Line 128: <p><?php _e('\'yymmdd\' is the most versatile save format. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate'><?php _e('jQuery date form
    Line 144: <p><?php _e('\'dd/mm/yy\' or \'mm/dd/yy\' are the most used display formats. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate' target='_blank'><?php _e('
    Line 128: <p><?php _e('\'yymmdd\' is the most versatile save format. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate'><?php _e('jQuery date form
    Line 144: <p><?php _e('\'dd/mm/yy\' or \'mm/dd/yy\' are the most used display formats. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate' target='_blank'><?php _e('
  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 author template file author.phpThis theme does not contain optional file author.php.
  8. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  9. Optional files : Presence of archive template file archive.phpThis theme does not contain optional file archive.php.
  10. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  11. Use of includes : Use of include or requireThe theme appears to use include or require : acf.php
    Line 348: include_once('core/api.php');
    Line 350: include_once('core/controllers/input.php');
    Line 351: include_once('core/controllers/location.php');
    Line 352: include_once('core/controllers/field_group.php');
    Line 358: include_once('core/controllers/post.php');
    Line 359: include_once('core/controllers/revisions.php');
    Line 360: include_once('core/controllers/everything_fields.php');	
    Line 361: include_once('core/controllers/field_groups.php');
    Line 366: include_once('core/fields/_functions.php');
    Line 367: include_once('core/fields/_base.php');
    Line 369: include_once('core/fields/text.php');
    Line 370: include_once('core/fields/textarea.php');
    Line 371: include_once('core/fields/number.php');
    Line 372: include_once('core/fields/email.php');
    Line 373: include_once('core/fields/password.php');
    Line 375: include_once('core/fields/wysiwyg.php');
    Line 376: include_once('core/fields/image.php');
    Line 377: include_once('core/fields/file.php');
    Line 379: include_once('core/fields/select.php');
    Line 380: include_once('core/fields/checkbox.php');
    Line 381: include_once('core/fields/radio.php');
    Line 382: include_once('core/fields/true_false.php');
    Line 384: include_once('core/fields/page_link.php');
    Line 385: include_once('core/fields/post_object.php');
    Line 386: include_once('core/fields/relationship.php');
    Line 387: include_once('core/fields/taxonomy.php');
    Line 388: include_once('core/fields/user.php');
    Line 390: include_once('core/fields/google-map.php');
    Line 391: include_once('core/fields/date_picker/date_picker.php');
    Line 392: include_once('core/fields/color_picker.php');
    Line 394: include_once('core/fields/message.php');
    Line 395: include_once('core/fields/tab.php');
    Line 457: include_once('core/controllers/export.php');
    Line 458: include_once('core/controllers/addons.php');
    Line 459: include_once('core/controllers/third_party.php');
    Line 460: include_once('core/controllers/upgrade.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 : export.php
    Line 93: include_once($path . 'core/actions/export.php');
    Line 320: include_once('advanced-custom-fields/acf.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 : field_group.php
    Line 415: include( $this->settings['path'] . 'core/views/meta_box_fields.php' );
    Line 429: include( $this->settings['path'] . 'core/views/meta_box_location.php' );
    Line 443: include( $this->settings['path'] . 'core/views/meta_box_options.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 : user.php
    Line 126: require_once( ABSPATH . '/wp-admin/includes/user.php' ); 
    Line 148: require_once( ABSPATH . '/wp-admin/includes/user.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 : dummy.php
    Line 276: include_once('fields/dummy.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 ).

52
Critical alerts
  1. Title : Title The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output.
  2. Included plugins : Zip file found Plugins are not allowed in themes. The zip file found was tgm-example-plugin.zip acf-repeater.zip proteuswidgets.zip.
Warning
  1. theme tags : Presence of bad theme tagsThe tag blue has been deprecated, it must be removed from style.css header.The tag gray has been deprecated, it must be removed from style.css header.The tag purple 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 light has been deprecated, it must be removed from style.css header.The tag responsive-layout has been deprecated, it must be removed from style.css header.
  2. Text domain : Incorrect use of translation functions.Wrong installation directory for the theme name. The directory name must match the slug of the theme. This theme's correct slug and text-domain is mentalpress-wp-theme.
  3. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'acf' in file upgrade.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Publish' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Pending Review' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Draft' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Future' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Private' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Revision' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Trash' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Super Admin' in file field_group.php.Found a translation function that is missing a text-domain. Function __, with the arguments "Title" in file field_groups.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Dummy' in file dummy.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 tgmpa, mentalpress_wp, acf.
  4. Plugin territory : Plugin territory functionalitiesThe theme uses the register_post_type() function, which is plugin-territory functionality.The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  5. Deprecated functions : wp_richedit_prewp_richedit_pre found in file wysiwyg.php. Deprecated since version 4.3.
    Line 241: echo wp_richedit_pre( $field['value'] );
  6. Deprecated functions : wp_htmledit_prewp_htmledit_pre found in file wysiwyg.php. Deprecated since version 4.3.
    Line 245: echo wp_htmledit_pre( $field['value'] );
  7. Date and time implementation : Use of the_time()At least one hard coded date was found in the file index.php. Function get_option( 'date_format' ) should be used instead.At least one hard coded date was found in the file single.php. Function get_option( 'date_format' ) should be used instead.
  8. 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.
Tip-off
  1. Static links : Presence of hard-coded linksPossible hard-coded links were found in the file class-pt-customize-base.php.
    Line 996: 'description' => sprintf( _x( '%s How to find CSS classes %s in the theme.', 'backend', 'mentalpress_wp' ), '<a href='https://www.youtube.com/watch?v=V2aAEzlvyDc' target='_blank'>', '</a>' ),
    Possible hard-coded links were found in the file documentation-link.php.
    Line 24: <strong><a href='http://www.proteusthemes.com/docs/mentalpress/' class='button button-primar
    Possible hard-coded links were found in the file acf-field-groups.php.
    Line 236: 'instructions' => 'LayerSlider can be used as alternative slider and doesn\'t come with the theme for free. You can buy it <a href='http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/
    Line 261: 'instructions' => 'Slider Revolution can be used as alternative slider and doesn\'t come with the theme for free. You can buy it <a href='http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/27
    Possible hard-coded links were found in the file addons.php.
    Line 201: <p><strong><?php _e('Just updated to version 4?','acf'); ?></strong> <?php _e('Activation codes have changed to plugins! Download your purchased add-ons','acf'); ?> <a href='http://www.advancedcustomfields.com/add-ons-download/' target='_blank'><?ph
    Possible hard-coded links were found in the file field_groups.php.
    Line 346: <?php _e('Migrating your field types is easy, please','acf'); ?> <a href='http://www.advancedcustomfields.com/docs/tutorials/creating-a-new-field-typ
    Line 349: <p><?php _e('All actions & filters have received a major facelift to make customizing ACF even easier! Please','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 362: <p><?php _e('Do to the sizable changes surounding Add-ons, field types and action/filters, your website may not operate correctly. It is important that you read the full','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 349: <p><?php _e('All actions & filters have received a major facelift to make customizing ACF even easier! Please','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Line 362: <p><?php _e('Do to the sizable changes surounding Add-ons, field types and action/filters, your website may not operate correctly. It is important that you read the full','acf'); ?> <a href='http://www.advancedcustomfields.com/resources/getting-started/migrating-fro
    Possible hard-coded links were found in the file date_picker.php.
    Line 128: <p><?php _e('\'yymmdd\' is the most versatile save format. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate'><?php _e('jQuery date form
    Line 144: <p><?php _e('\'dd/mm/yy\' or \'mm/dd/yy\' are the most used display formats. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate' target='_blank'><?php _e('
    Line 128: <p><?php _e('\'yymmdd\' is the most versatile save format. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate'><?php _e('jQuery date form
    Line 144: <p><?php _e('\'dd/mm/yy\' or \'mm/dd/yy\' are the most used display formats. Read more about','acf'); ?> <a href='http://docs.jquery.com/UI/Datepicker/formatDate' target='_blank'><?php _e('
  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 author template file author.phpThis theme does not contain optional file author.php.
  8. Optional files : Presence of date/time template file date.phpThis theme does not contain optional file date.php.
  9. Optional files : Presence of archive template file archive.phpThis theme does not contain optional file archive.php.
  10. Optional files : Presence of attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  11. Use of includes : Use of include or requireThe theme appears to use include or require : acf.php
    Line 348: include_once('core/api.php');
    Line 350: include_once('core/controllers/input.php');
    Line 351: include_once('core/controllers/location.php');
    Line 352: include_once('core/controllers/field_group.php');
    Line 358: include_once('core/controllers/post.php');
    Line 359: include_once('core/controllers/revisions.php');
    Line 360: include_once('core/controllers/everything_fields.php');	
    Line 361: include_once('core/controllers/field_groups.php');
    Line 366: include_once('core/fields/_functions.php');
    Line 367: include_once('core/fields/_base.php');
    Line 369: include_once('core/fields/text.php');
    Line 370: include_once('core/fields/textarea.php');
    Line 371: include_once('core/fields/number.php');
    Line 372: include_once('core/fields/email.php');
    Line 373: include_once('core/fields/password.php');
    Line 375: include_once('core/fields/wysiwyg.php');
    Line 376: include_once('core/fields/image.php');
    Line 377: include_once('core/fields/file.php');
    Line 379: include_once('core/fields/select.php');
    Line 380: include_once('core/fields/checkbox.php');
    Line 381: include_once('core/fields/radio.php');
    Line 382: include_once('core/fields/true_false.php');
    Line 384: include_once('core/fields/page_link.php');
    Line 385: include_once('core/fields/post_object.php');
    Line 386: include_once('core/fields/relationship.php');
    Line 387: include_once('core/fields/taxonomy.php');
    Line 388: include_once('core/fields/user.php');
    Line 390: include_once('core/fields/google-map.php');
    Line 391: include_once('core/fields/date_picker/date_picker.php');
    Line 392: include_once('core/fields/color_picker.php');
    Line 394: include_once('core/fields/message.php');
    Line 395: include_once('core/fields/tab.php');
    Line 457: include_once('core/controllers/export.php');
    Line 458: include_once('core/controllers/addons.php');
    Line 459: include_once('core/controllers/third_party.php');
    Line 460: include_once('core/controllers/upgrade.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 : export.php
    Line 93: include_once($path . 'core/actions/export.php');
    Line 320: include_once('advanced-custom-fields/acf.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 : field_group.php
    Line 415: include( $this->settings['path'] . 'core/views/meta_box_fields.php' );
    Line 429: include( $this->settings['path'] . 'core/views/meta_box_location.php' );
    Line 443: include( $this->settings['path'] . 'core/views/meta_box_options.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 : user.php
    Line 126: require_once( ABSPATH . '/wp-admin/includes/user.php' ); 
    Line 148: require_once( ABSPATH . '/wp-admin/includes/user.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 : dummy.php
    Line 276: include_once('fields/dummy.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