CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function ready has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        ready: function() {
            var control = this,
                panels;

            this.uploader = {
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 2 hrs to fix

    File class-wp-terms-list-table.php has 275 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Terms List Table class.
     *
     * @package WordPress

      File class-wp-filesystem-ssh2.php has 275 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * WordPress SSH2 Filesystem.
       *
       * @package WordPress

        Method convert_tags has 65 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function convert_tags() {
                global $wpdb;
        
                if ( (!isset($_POST['tags_to_convert']) || !is_array($_POST['tags_to_convert'])) && empty($this->tags_to_convert)) {
                    echo '<div class="narrow">';
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 2 hrs to fix

          Method get_authors has 65 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function get_authors()
              {
                  $authors = array();
                  foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author') as $author)
                  {
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 2 hrs to fix

            Method pop_list has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function pop_list ($msgNum = "") {
                    //  If called with an argument, returns that msgs' size in octets
                    //  No argument returns an associative array of undeleted
                    //  msg numbers and their sizes in octets
            
            
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-pop3.php - About 2 hrs to fix

              Method get_authors has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function get_authors()
                  {
                      $authors = array();
                      foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author') as $author)
                      {
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                Method get_authors has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function get_authors()
                    {
                        $authors = array();
                        foreach ((array) $this->get_channel_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author') as $author)
                        {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                  Method query has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function query() {
                          $args = func_get_args();
                          $method = array_shift($args);
                          $request = new IXR_Request($method, $args);
                          $length = $request->getLength();
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 2 hrs to fix

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

                        function init() {
                            // The Weekdays
                            $this->weekday[0] = __('Sunday');
                            $this->weekday[1] = __('Monday');
                            $this->weekday[2] = __('Tuesday');
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/locale.php - About 2 hrs to fix

                      Function send_to_editor has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function send_to_editor(h) {
                          var ed;
                      
                          if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
                              ed.focus();
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/js/media-upload.dev.js - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function ColorPicker has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function ColorPicker() {
                          var windowMode = false;
                          // Create a new PopupWindow object
                          if (arguments.length==0) {
                              var divname = "colorPickerDiv";
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function list_files has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function list_files( $folder = '', $levels = 100 ) {
                          if( empty($folder) )
                              return false;
                      
                          if( ! $levels )
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function wp_dashboard_recent_comments has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function wp_dashboard_recent_comments() {
                          global $wpdb;
                      
                          if ( current_user_can('edit_posts') )
                              $allowed_states = array('0', '1');
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function search_theme has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                          function search_theme( $theme ) {
                              // Search the features
                              foreach ( $this->features as $word ) {
                                  if ( ! in_array( $word, $theme->get('Tags') ) )
                                      return false;

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function render_screen_meta has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function render_screen_meta() {
                      
                              /**
                               * Filter the legacy contextual help list.
                               *
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function glob has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                          function glob($pattern, $handle=NULL) {
                              $path=$output=null;
                              if(PHP_OS=='WIN32') $slash='\\';
                              else $slash='/';
                              $lastpos=strrpos($pattern,$slash);
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function redirect_post has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function redirect_post($post_ID = '') {
                          global $action;
                      
                          $referredby = '';
                          if ( !empty($_POST['referredby']) ) {
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/post.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function list_plugin_updates has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function list_plugin_updates() {
                          global $wp_version;
                      
                          $cur_wp_version = preg_replace('/-.*$/', '', $wp_version);
                      
                      
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function list_core_update has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function list_core_update( $update ) {
                          global $wp_local_package;
                          $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
                                  $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
                          $current = false;
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/update-core.php - About 2 hrs to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Severity
                      Category
                      Status
                      Source
                      Language