Jump to content

Archived

This topic is now archived and is closed to further replies.

rljmedia

Theme checker for Wordpress and Platform 5

Recommended Posts

rljmedia

I came across this theme checker to play around. I never used one till now and wonder if it has any validity when it is checking almost "17096 tests against PageLines Framework using Guidelines Version: 20151211 Plugin revision: 1"

Hoping this will improve Platform 5 if is useful

 

One or more errors were found for PageLines Framework.

  • REQUIRED:.sticky css class is needed in your theme css.
  • REQUIRED:.gallery-caption css class is needed in your theme css.
  • REQUIRED:.bypostauthor css class is needed in your theme css.
  • REQUIRED: This theme doesn't seem to display tags. Modify it to display tags in appropriate locations.
  • REQUIRED: Sidebars need to be registered in a custom function hooked to the widgets_init action. See: register_sidebar().
  • WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme. This theme's correct slug and text-domain is pagelines-framework.
    (If this is a child theme, you can ignore this error.)
  • WARNING: The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality.
  • WARNING: Found wrong tag, remove themes from your style.css header.
  • WARNING: Found wrong tag, remove platform from your style.css header.
  • WARNING: Found wrong tag, remove framework from your style.css header.
  • WARNING: Found base64_encode in the file ops.php. base64_encode() is not allowed.
    Line 129: $args['download_link'] = base64_encode( $args['download_link'] );
  • WARNING: Found base64_encode in the file operations.php. base64_encode() is not allowed.
    Line 76: $args['download_link'] = base64_encode( $args['download_link'] );
  • WARNING: Found base64_decode in the file ops.php. base64_decode() is not allowed.
    Line 102: $api->download_link = base64_decode( $_GET['download_link'] );
  • WARNING: Found base64_decode in the file operations.php. base64_decode() is not allowed.
    Line 37: $api->download_link = base64_decode( $_GET['download_link'] );
  • REQUIRED: The <title> tags can only contain a call to wp_title(). Use the wp_title filter to modify the output
  • REQUIRED: Found a Customizer setting that did not have a sanitization callback function. Every call to the add_setting() method needs to have a sanitization callback function passed.
  • RECOMMENDED: Screenshot size should be 1200x900, to account for HiDPI displays. Any 4:3 image size is acceptable, but 1200x900 is preferred.
  • RECOMMENDED: No reference to add_theme_support( "custom-header", $args ) was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
  • RECOMMENDED: No reference to add_theme_support( "custom-background", $args ) was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
  • RECOMMENDED: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience.
  • RECOMMENDED: Could not find the file readme.txt in the theme. Please see Theme_Documentation for more information.
  • RECOMMENDED: flush_widget_cache() found in the file widgets.php. Deprecated since version 4.4.
    Line 61: add_action( 'save_post',    array( $this, 'flush_widget_cache' ) );
    Line 62: add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) );
    Line 63: add_action( 'switch_theme', array( $this, 'flush_widget_cache' ) );
    Line 103: public function flush_widget_cache() {
    Line 156: $this->flush_widget_cache();
  • INFO: Possible hard-coded links were found in the file settings.php.
    Line 155: 'help'          => __( '<p>To ensure cross browser compatibility and the best visual appeal, we recommend you use an external font library. Our recommended services for this are <a href='http://www.google.com/fonts' target='_blank'>Google Fonts</a> and <a href='
  • INFO: Only one text-domain is being used in this theme. Make sure it matches the theme's slug correctly so that the theme will be compatible with WordPress.org language packs.
    The domain found is pl-framework
  • INFO: ops.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
  • INFO: load.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
    Line 30: include_once( 'libs/ops.php' );
    Line 65: require_once( $engine_dir . '/engine.php' );
  • INFO: iframe was found in the file workarea.php iframes are sometimes used to load unwanted adverts and code on your site.
    Line 55: <div class='iframe-container'>
    Line 60: $iframe_url = add_query_arg( array(
    Line 61: 'iframe'  => 'true',
    Line 65: $iframe_url = remove_query_arg( 'pl_edit', $iframe_url ); 
    Line 67: printf('<iframe class='site-frame' src='%s' scrolling='yes' ></iframe>', $iframe_url
    Line 68: <div class='iframe-loading-overlay show-overlay'>
    Line 69: <div class='loading-graphic'><i class='iframe-loading-icon pl-icon pl-icon-cog pl-icon-spin'></i></div>
    Line 180: iFrame
    Line 183: iFrame
  • INFO: globals.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
  • INFO: base.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.

Share this post


Link to post
Share on other sites

×