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

                     * @param   [type]    $wp_admin_bar [description]
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

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

                            'href' => \PluginCustomizer\Plugin_Customizer::get_customizer_url( $return_url ),
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Equals sign not aligned with surrounding assignments; expected 9 spaces but found 2 spaces
                Open

                            $this->url  = plugins_url( '/', __FILE__ );
                Severity: Minor
                Found in src/Plugin_Customizer.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   Object    $wp_rewrite Permalink structure
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

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

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

                Space found before comma in function call
                Open

                        add_action( 'admin_init', array( $this, 'root_menu_redirect_to_customizer' ) , 1 );
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Assignments must be the first block of code on a line
                Open

                                wp_die( 'slug missing', $title = 'BlankSlate::init' );
                Severity: Minor
                Found in src/Blank_Slate.php by phpcodesniffer

                Found precision alignment of 1 spaces.
                Open

                             $new_rules = array(
                Severity: Minor
                Found in src/Plugin_Customizer.php by phpcodesniffer

                Found precision alignment of 2 spaces.
                Open

                      background-color: #333333;
                Severity: Minor
                Found in templates/newsletter.php by phpcodesniffer

                Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
                Open

                        $handle = 'plugin-customizer-demo-init';
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

                Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
                Open

                        $deps = array( 'customize-preview', 'jquery' );
                Severity: Minor
                Found in plugin-customizer-demo.php by phpcodesniffer

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

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