CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function _show has 182 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _show : function() {

        // shortcuts
        var self = this,
            queue = this._queue[ 0 ],
Severity: Major
Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 7 hrs to fix

    Function _show has 182 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _show : function() {
    
            // shortcuts
            var self = this,
                queue = this._queue[ 0 ],
    Severity: Major
    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 7 hrs to fix

      Method import has 182 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function import() {
              global $wpdb;
      
              $wpvarstoreset = array('gmpath', 'archivespath', 'lastentry');
              for ($i=0; $i<count($wpvarstoreset); $i += 1) {
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/import/greymatter.php - About 7 hrs to fix

        Function insert_with_markers has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
        Open

        function insert_with_markers( $filename, $marker, $insertion ) {
            if (!file_exists( $filename ) || is_writeable( $filename ) ) {
                if (!file_exists( $filename ) ) {
                    $markerdata = '';
                } else {
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/misc.php - About 7 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 WrapText has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
        Open

          function WrapText($message, $length, $qp_mode = false) {
            $soft_break = ($qp_mode) ? sprintf(" =%s", $this->LE) : $this->LE;
            // If utf-8 encoding is used, we will need to make sure we don't
            // split multibyte characters when we wrap
            $is_utf8 = (strtolower($this->CharSet) == "utf-8");
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 7 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

        Method privExtractFile has 181 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
          {
            $v_result=1;
        
            // ----- Read the file header
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 7 hrs to fix

          AtomServer has 51 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class AtomServer {
          
              /**
               * ATOM content type.
               *
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-app.php - About 7 hrs to fix

            File script-loader.php has 464 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * WordPress scripts and styles default loader.
             *
             * Most of the functionality that existed here was moved to
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/script-loader.php - About 7 hrs to fix

              File slider.js has 463 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /*
               * Twenty Fourteen Featured Content Slider
               *
               * Adapted from FlexSlider v2.2.0, copyright 2012 WooThemes
               * @link http://www.woothemes.com/flexslider/

                File nav-menu.php has 462 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /**
                 * Navigation Menu functions
                 *
                 * @package WordPress
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/nav-menu.php - About 7 hrs to fix

                  Function users2wp has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function users2wp($users='')
                      {
                          // General Housekeeping
                          global $wpdb;
                          $count = 0;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 7 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 Analyze has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function Analyze() {
                          $info = &$this->getid3->info;
                  
                          $initialOffset = $info['avdataoffset'];
                  
                  
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 7 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 _createThumbnails has 177 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      _createThumbnails : function( push ) {
                  
                          this.get( 'total' ).innerHTML = this.getDataLength();
                  
                          var src,
                  Severity: Major
                  Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 7 hrs to fix

                    Function _createThumbnails has 177 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        _createThumbnails : function( push ) {
                    
                            this.get( 'total' ).innerHTML = this.getDataLength();
                    
                            var src,
                    Severity: Major
                    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 7 hrs to fix

                      Method ASF_HeaderExtensionObjectDataParse has 177 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function ASF_HeaderExtensionObjectDataParse(&$asf_header_extension_object_data, &$unhandled_sections) {
                              // http://msdn.microsoft.com/en-us/library/bb643323.aspx
                      
                              $offset = 0;
                              $objectOffset = 0;
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.asf.php - About 7 hrs to fix

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

                        <?php
                        /**
                         * Base class for displaying a list of items in an ajaxified HTML table.
                         *
                         * @package WordPress
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-list-table.php - About 7 hrs to fix

                          File colorpicker.dev.js has 460 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // ===================================================================
                          // Author: Matt Kruse <matt@mattkruse.com>
                          // WWW: http://www.mattkruse.com/
                          //
                          // NOTICE: You may use this code for any purpose, commercial or
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/colorpicker.dev.js - About 7 hrs to fix

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

                                    init : function(ed, url) {
                                        var t = this, tbId = ed.getParam('wordpress_adv_toolbar', 'toolbar2'), last = 0, moreHTML, nextpageHTML;
                                        moreHTML = '<img src="' + url + '/img/trans.gif" class="mceWPmore mceItemNoResize" title="'+ed.getLang('wordpress.wp_more_alt')+'" />';
                                        nextpageHTML = '<img src="' + url + '/img/trans.gif" class="mceWPnextpage mceItemNoResize" title="'+ed.getLang('wordpress.wp_page_alt')+'" />';
                            
                            

                              Method _wp_comment_row has 176 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $from_ajax = false ) {
                                  global $comment, $post, $_comment_pending_count;
                                  $comment = get_comment( $comment_id );
                                  $post = get_post($comment->comment_post_ID);
                                  $the_comment_status = wp_get_comment_status($comment->comment_ID);
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 7 hrs to fix

                                PclZip has 50 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                  class PclZip
                                  {
                                    // ----- Filename of the zip file
                                    var $zipname = '';
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 7 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language