CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

File class-simplepie.php has 11608 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * SimplePie
 *
 * A PHP-Based RSS and Atom Feed Framework.
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 mo to fix

    Function get_enclosures has a Cognitive Complexity of 1554 (exceeds 5 allowed). Consider refactoring.
    Open

        public function get_enclosures()
        {
            if (!isset($this->data['enclosures']))
            {
                $this->data['enclosures'] = array();
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 mo 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 get_enclosures has a Cognitive Complexity of 1443 (exceeds 5 allowed). Consider refactoring.
    Open

        function get_enclosures()
        {
            if (!isset($this->data['enclosures']))
            {
                $this->data['enclosures'] = array();
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 mo 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 process_posts has a Cognitive Complexity of 687 (exceeds 5 allowed). Consider refactoring.
    Open

        function process_posts() {
            global $wpdb;
    
            $handle = $this->fopen($this->file, 'r');
            if ( $handle == null )
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/import/mt.php - About 2 wks 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

    File galleria-1.4.2.js has 4395 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Galleria v 1.4.2 2014-08-07
     * http://galleria.io
     *
     * Licensed under the MIT license
    Severity: Major
    Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 wk to fix

      File galleria-1.4.2.js has 4395 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /**
       * Galleria v 1.4.2 2014-08-07
       * http://galleria.io
       *
       * Licensed under the MIT license
      Severity: Major
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 wk to fix

        File media-views.js has 4099 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /* global _wpMediaViewsL10n, confirm, getUserSetting, setUserSetting */
        (function($, _){
            var media = wp.media, l10n;
        
            // Link any localized strings.
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 wk to fix

          File prototype.js has 3450 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*  Prototype JavaScript framework, version 1.6.0
           *  (c) 2005-2007 Sam Stephenson
           *
           *  Prototype is freely distributable under the terms of an MIT-style license.
           *  For details, see the Prototype web site: http://www.prototypejs.org/
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 wk to fix

            File prototype.js has 3450 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*  Prototype JavaScript framework, version 1.6.0
             *  (c) 2005-2007 Sam Stephenson
             *
             *  Prototype is freely distributable under the terms of an MIT-style license.
             *  For details, see the Prototype web site: http://www.prototypejs.org/
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 wk to fix

              Function ParseID3v2Frame has a Cognitive Complexity of 467 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function ParseID3v2Frame(&$parsedFrame) {
              
                      // shortcuts
                      $info = &$this->getid3->info;
                      $id3v2_majorversion = $info['id3v2']['majorversion'];
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 1 wk 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

              File class-wp-xmlrpc-server.php has 3179 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * XML-RPC protocol support for WordPress
               *
               * @package WordPress
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 wk to fix

                File FileAPI.js has 3098 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                /*! FileAPI 2.0.7 - BSD | git://github.com/mailru/FileAPI.git
                 * FileAPI — a set of  javascript tools for working with files. Multiupload, drag'n'drop and chunked file upload. Images: crop, resize and auto orientation by EXIF.
                 */
                
                /*
                Severity: Major
                Found in Web.Admin/z-scripts/FileAPI.js - About 1 wk to fix

                  Method get_enclosures has 1673 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function get_enclosures()
                      {
                          if (!isset($this->data['enclosures']))
                          {
                              $this->data['enclosures'] = array();
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 wk to fix

                    File class-pclzip.php has 2948 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    // --------------------------------------------------------------------------------
                    // PhpConcept Library - Zip Module 2.8.2
                    // --------------------------------------------------------------------------------
                    // License GNU/LGPL - Vincent Blavet - August 2009
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 wk to fix

                      Method get_enclosures has 1663 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function get_enclosures()
                          {
                              if (!isset($this->data['enclosures']))
                              {
                                  $this->data['enclosures'] = array();
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 wk to fix

                        Function get_posts has a Cognitive Complexity of 396 (exceeds 5 allowed). Consider refactoring.
                        Open

                            function &get_posts() {
                                global $wpdb, $user_ID;
                        
                                do_action_ref_array('pre_get_posts', array(&$this));
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 1 wk 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

                        File template.php has 2652 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Template WordPress Administration API.
                         *
                         * A Big Mess. Also some neat functions that are nicely written.
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 wk to fix

                          File ai.0.15.0-build46802.js has 2530 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          var Microsoft;
                          (function (Microsoft) {
                              var ApplicationInsights;
                              (function (ApplicationInsights) {
                                  (function (LoggingSeverity) {
                          Severity: Major
                          Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 wk to fix

                            Function Analyze has a Cognitive Complexity of 341 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function Analyze() {
                                    $info = &$this->getid3->info;
                            
                                    // initialize these values to an empty array, otherwise they default to NULL
                                    // and you can't append array values to a NULL value

                            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

                            File Item.php has 2414 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            /**
                             * SimplePie
                             *
                             * A PHP-Based RSS and Atom Feed Framework.
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 6 days to fix
                              Severity
                              Category
                              Status
                              Source
                              Language