soderlind/plugin-customizer

View on GitHub

Showing 122 of 122 total issues

Function exports has 203 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (grunt) {

    /**
     * Files added to WordPress SVN, don't include 'assets/**' here.
     * @type {Array}
Severity: Major
Found in Gruntfile.js - About 1 day to fix

    Plugin_Customizer has 22 functions (exceeds 20 allowed). Consider refactoring.
    Open

        abstract class Plugin_Customizer implements Plugin_Customizer_Interface {
    
            private  $customize_register_priority = 9; // Priority must be between 2 and 9
            private  $slug;
            private  $org_theme;
    Severity: Minor
    Found in src/Plugin_Customizer.php - About 2 hrs to fix

      Method init has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function init( $slug = '', $plugin_url, $plugin_root ) {
                  // self::$param_name = sanitize_title( get_called_class() , 'plugin_customizer' );
                  if ( '' == $slug ) {
                      wp_die( 'slug missing', $title = 'BlankSlate::init' );
                  }
      Severity: Major
      Found in src/Blank_Slate.php - About 2 hrs to fix

        Method init has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                function init( $config = array() ) {
        
                    if ( ! count( $config ) ) {
                        wp_die( /*$message = '', $title = '', $args = array()*/ );
                    }
        Severity: Minor
        Found in src/Plugin_Customizer.php - About 1 hr to fix

          Function PluginCustomizer has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var PluginCustomizer = (function( api, $ ) {
              'use strict';
          
              var component = {
                  data: {
          Severity: Minor
          Found in src/assets/js/plugin-customizer-preview-templates.js - About 1 hr to fix

            Function PluginCustomizerBlankSlate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var PluginCustomizerBlankSlate = (function( api, $ ) {
                'use strict';
            
                var component = {
                    data: {
            Severity: Minor
            Found in src/assets/js/plugin-customizer-blank-slate.js - About 1 hr to fix

              Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  component.init = function init( home, sections ) {
                      _.extend( component.data, home );
                      _.extend( {}, sections );
                      if ( ! home || ! home.url  ) {
                          throw new Error( 'Missing args' );
              Severity: Minor
              Found in src/assets/js/plugin-customizer-preview-templates.js - About 1 hr to fix

                Spaces must be used for mid-line alignment; tabs are not allowed
                Open

                                'type'            => 'option',
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Array double arrow not aligned correctly; expected 1 space(s) between "'capability'" and double arrow, but found 4.
                Open

                                'capability'    => 'manage_options',
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Please spell "WordPress" correctly. Found 1 misspelling(s): WordPres
                Open

                             * WordPres Customizer is dependant on functionality in the theme. Just in case
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

                Spaces must be used for mid-line alignment; tabs are not allowed
                Open

                         * @param   Array    $query_vars All defined query variables.
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

                Found precision alignment of 2 spaces.
                Open

                      justify-content: center;
                Severity: Minor
                Found in templates/content.php by phpcodesniffer

                Found precision alignment of 2 spaces.
                Open

                      justify-content: center;
                Severity: Minor
                Found in templates/title.php by phpcodesniffer

                Expected 1 space after comma in function call; 2 found
                Open

                        $src = plugins_url( 'js/plugin-customizer-init.js' ,  __FILE__ );
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Array double arrow not aligned correctly; expected 2 space(s) between "'capability'" and double arrow, but found 4.
                Open

                                'capability'    => 'manage_options',
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Array double arrow not aligned correctly; expected 5 space(s) between "'type'" and double arrow, but found 1.
                Open

                                'type' => 'textarea',
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Expected 1 space before opening brace; found 0
                Open

                                add_filter( 'pre_option_template', function(){
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

                Array item not aligned correctly; expected 17 spaces but found 18
                Open

                                  sprintf( '%s/templates/(.*)$', $this->slug ) => sprintf( 'index.php?plugin-customizer-template-%s=%s', $this->slug, $wp_rewrite->preg_index( 1 ) ),
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

                Array double arrow not aligned correctly; expected 3 space(s) between "'newsletter_title_section'" and double arrow, but found 1.
                Open

                            'newsletter_title_section' => parent::template_url( 'title.php' ), // translates to templates/title.php
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Spaces must be used for mid-line alignment; tabs are not allowed
                Open

                                'title'            => __( 'Content', 'plugin-customizer' ),
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer
                Severity
                Category
                Status
                Source
                Language