0
Validation results

DUX

DUX

WordPress 5.0.1 theme
0
  • THEME TYPEWordPress theme 5.0.1
  • FILE NAMEdux5.1.zip
  • FILE SIZE820735 bytes
  • MD5eda5bf4cda01be49524f6be3d7c9077f
  • SHA1cc384ebda6007450fecd982827deb59bb443ee48
  • LICENSENone
  • FILES INCLUDEDCSS, PHP, Bitmap images, Adobe Photoshop
  • THEME URIhttps://themebetter.com/theme/dux
  • VERSION5.1
  • AUTHOR URI
  • CREATION DATE2018-10-03
  • LAST FILE UPDATE2018-10-03
  • LAST VALIDATION2018-10-03 14:05
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. Malware : Operations on file system file_get_contents was found in the file update.php
    Line 69: $cache = file_get_contents($notifier_file_url); 
  3. Malware : Network operations curl_init was found in the file update.php
    Line 61: if( function_exists('curl_init') ) { 
    Line 62: $ch = curl_init($notifier_file_url);
    curl_exec was found in the file update.php
    Line 66: $cache = curl_exec($ch);
    curl_init was found in the file functions-xzh.php
    Line 113: $ch = curl_init();
    curl_exec was found in the file functions-xzh.php
    Line 122: $result = curl_exec($ch);
  4. Admin menu : Themes should use add_theme_page() for adding admin pages. File update.php :
    Line 8: add_dashboard_page($theme_data['Name'].__('主题更新', 'haoui'), $theme_
  5. Hidden admin bar : Hidden admin Bar Themes should not hide admin bar. Detected in file : functions-theme.php.
  6. Content width : Proper definition of content_width No content width has been defined. Example:
    if ( ! isset( $content_width ) ) $content_width = 900;
  7. Deprecated functions : get_bloginfo get_bloginfo('url') was found in the file content-404.php. Use home_url() instead.
    Line 7: <a class='btn btn-primary' href='<?php echo get_bloginfo('url') ?>'>返回 <?php echo get_bloginfo('name') ?> 首页</a
    get_bloginfo('url') was found in the file single.php. Use home_url() instead.
    Line 45: echo '<div class='post-copyright'>' . _hui('post_copyright') . '<a href='' . get_bloginfo('url') . ''>' . get_bloginfo('name') . '</a> &raquo; <a href='
    get_bloginfo('url') was found in the file resetpassword.php. Use home_url() instead.
    Line 143: <p class='text-center'><a class='btn btn-success btn-lg' href='<?php echo get_bloginfo('url') ?>'>回首页</a></p>
    get_bloginfo('url') was found in the file functions-theme.php. Use home_url() instead.
    Line 551: echo '<' . $tag . ' class='logo'><a href='' . get_bloginfo('url') . '' title='' . $t . ''><img src=''._hui('logo_src').''
    Line 915: $content .= '<p class='post-copyright'>' . _hui('post_copyright') . '<a href='' . get_bloginfo('url') . ''>' . get_bloginfo('name') . '</a> &raquo; <a href='
    Line 1060: return '当前位置:<a href=''.get_bloginfo('url').''>'.get_bloginfo('name').'</a> <small>></small> '.get_
  8. Deprecated functions : get_option get_option('home') was found in the file functions-theme.php. Use home_url() instead.
    Line 72: $home = get_option('home');
    Line 240: $catlink = trailingslashit(get_option('home')) . user_trailingslashit($query_vars['category_redirect']
Warning
  1. core scripts deregistered : Core scripts deregistrationFound wp_deregister_script in functions-theme.php. Themes must not deregister core scripts.
    Line 327: wp_deregister_script('jquery');
    Line 330: wp_deregister_script('l10n');
  2. theme tags : Presence of bad theme tagsFound wrong tag in style.css header.
  3. 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 dux.
  4. Text domain : Incorrect use of translation functions.Found a translation function that is missing a text-domain. Function __, with the arguments 'Invalid comment status.' in file comment.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments '列表点赞', (v4.2+), 'haoui' in file options.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments '手机端列表时间', (v4.2+), 'haoui' in file options.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments '手机端列表分类链接', (v4.2+), 'haoui' in file options.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments '自定义社交 ', - 标题, 'haoui' in file options.php.Found a translation function that has an incorrect number of arguments. Function __, with the arguments '自定义社交 ', - 链接地址, 'haoui' in file options.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Sorry, that key does not appear to be valid.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Sorry, that key has expired. Please try again.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'The passwords do not match.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments '<strong>ERROR</strong>: Enter a username or e-mail address.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments '<strong>ERROR</strong>: There is no user registered with that email address.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments '<strong>ERROR</strong>: Invalid username or e-mail.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Password reset is not allowed for this user' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Someone requested that the password be reset for the following account:' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Username: %s' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'If this was a mistake, just ignore this email and nothing will happen.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'To reset your password, visit the following address:' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments '[%s] Password Reset' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'The e-mail could not be sent.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments 'Possible reason: your host may have disabled the mail() function.' in file resetpassword.php.Found a translation function that is missing a text-domain. Function __, with the arguments '' in file navs.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 textdomain, options-framework, haoui, twentytwelve, options_framework_theme, (v4.2+), - 标题, - 链接地址.
  5. Cdn : Use of CDNFound the URL of a CDN in the code: maxcdn.bootstrapcdn.com/bootstrap. CSS or Javascript resources should not be loaded from a CDN. These resources should be bundled with the theme.
  6. Fundamental theme elements : Presence of language_attributes()Could not find .
  7. Fundamental theme elements : Presence of add_theme_support()Could not find add_theme_support( 'automatic-feed-links' ).
  8. Fundamental theme elements : Presence of comment_form()Could not find comment_form.
  9. Comment reply : Declaration of comment replyCould not find the comment-reply script enqueued, however a reference to 'comment-reply' was found. Make sure that the comment-reply js script is being enqueued properly on singular pages.
  10. Custom elements : Presence of custom headerNo reference to custom header was found in the theme.
  11. Custom elements : Presence of custom backgroundNo reference to custom background was found in the theme.
  12. I18N implementation : Proper use of ___all(Possible variable $i found in translation function in options.php. Translation function calls should not contain PHP variables.
    Line 1238: 'name' => __('自定义社交 '.$i.' - 标题', 'haoui'),
    Possible variable $i found in translation function in options.php. Translation function calls should not contain PHP variables.
    Line 1243: 'name' => __('自定义社交 '.$i.' - 链接地址', 'haoui'),
  13. CSS files : Presence of license urlLicense URI: is missing from style.css header.
  14. CSS files : Presence of text domainText Domain: is missing from your style.css header.
  15. CSS files : Presence of .bypostauthor class.bypostauthor css class is needed in theme css.
  16. CSS files : Presence of .gallery-caption class.gallery-caption css class is needed in theme css.
  17. Date and time implementation : Use of the_time()At least one hard coded date was found in the file archives.php. Function get_option( 'date_format' ) should be used instead.
  18. Screenshot : Screenshot fileScreenshot dimensions are wrong! Detected: 840x660px (14:11). Ratio of width to height should be 4:3.Screenshot size is 840x660px. 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 class-options-framework-admin.php.
    Line 204: <div class='opshui-sidebar'><div class='opshui-sidebar-widget'><a href='https://themebetter.com' target='_blank'><img src='https://themebetter.com/
    Possible hard-coded links were found in the file widget-ads.php.
    Line 27: 'code' => '<a href='https://themebetter.com/theme/dux' target='_blank'><img src='https://themeb
  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 attachment template file attachment.phpThis theme does not contain optional file attachment.php.
  8. Use of includes : Use of include or requireThe theme appears to use include or require : user.php
    Line 6: include 'load.php';
    Line 199: require_once( ABSPATH.WPINC.'/class-phpass.php' );
    Line 207: // require_once( ABSPATH.WPINC.'/registration.php' );
    Line 279: // require_once( ABSPATH.WPINC.'/registration.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 : log.php
    Line 6: include 'load.php';
    Line 186: require_once( ABSPATH.WPINC.'/class-phpass.php' );
    Line 194: require_once( ABSPATH.WPINC.'/registration.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 : like.php
    Line 2: include 'load.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 : comment.php
    Line 9: require( dirname(__FILE__).'/../../../../wp-load.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 : widget-index.php
    Line 21: include 'widget-'.$widget.'.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