CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method render_screen_meta has 99 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function render_screen_meta() {

        /**
         * Filter the legacy contextual help list.
         *
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 3 hrs to fix

    Method getLyrics3Data has 99 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getLyrics3Data($endoffset, $version, $length) {
            // http://www.volweb.cz/str/tags.htm
    
            $info = &$this->getid3->info;
    
    
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.lyrics3.php - About 3 hrs to fix

      Method wp_admin_bar_my_sites_menu has 99 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function wp_admin_bar_my_sites_menu( $wp_admin_bar ) {
          // Don't show for logged out users or single site mode.
          if ( ! is_user_logged_in() || ! is_multisite() )
              return;
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/admin-bar.php - About 3 hrs to fix

        Function _run has 98 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _run : function() {
        
                var self = this;
        
                self._createThumbnails();
        Severity: Major
        Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

          File plugin.js has 330 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /**
           * plugin.js
           *
           * Copyright, Moxiecode Systems AB
           * Released under LGPL License.

            Function _run has 98 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _run : function() {
            
                    var self = this;
            
                    self._createThumbnails();
            Severity: Major
            Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

              Method privAdd has 98 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function privAdd($p_filedescr_list, &$p_result_list, &$p_options)
                {
                  $v_result=1;
                  $v_list_detail = array();
              
              
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 3 hrs to fix

                Method _wp_menu_output has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
                    global $self, $parent_file, $submenu_file, $plugin_page, $pagenow;
                
                    $first = true;
                    // 0 = name, 1 = capability, 2 = file, 3 = class, 4 = id, 5 = icon src
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/menu-header.php - About 3 hrs to fix

                  Method Analyze has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function Analyze() {
                          $info = &$this->getid3->info;
                  
                          $initialOffset = $info['avdataoffset'];
                  
                  
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 3 hrs to fix

                    Method wp_update_nav_menu_item has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item_data = array() ) {
                        $menu_id = (int) $menu_id;
                        $menu_item_db_id = (int) $menu_item_db_id;
                    
                        // make sure that we don't convert non-nav_menu_item objects into nav_menu_item objects
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/nav-menu.php - About 3 hrs to fix

                      Method request has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function request( $url, $args = array() ) {
                              global $wp_version;
                      
                              $defaults = array(
                                  'method' => 'GET',
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 3 hrs to fix

                        Function PclZipUtilCopyBlock has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                          function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0)
                          {
                            $v_result = 1;
                        
                            if ($p_mode==0)
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 3 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 _cat_rows has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
                        
                            $start = ($page - 1) * $per_page;
                            $end = $start + $per_page;
                            ob_start();
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 3 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 make_site_theme_from_oldschool has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function make_site_theme_from_oldschool($theme_name, $template) {
                            $home_path = get_home_path();
                            $site_dir = WP_CONTENT_DIR . "/themes/$template";
                        
                            if (! file_exists("$home_path/index.php"))
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 3 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 image_edit_apply_changes has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function image_edit_apply_changes($img, $changes) {
                        
                            if ( !is_array($changes) )
                                return $img;
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.php - About 3 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_insert_user has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                        function wp_insert_user($userdata) {
                            global $wpdb;
                        
                            extract($userdata, EXTR_SKIP);
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/registration.php - About 3 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 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function Analyze() {
                                $info = &$this->getid3->info;
                        
                                // http://www.volweb.cz/str/tags.htm
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.lyrics3.php - About 3 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 hash_data has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public static function hash_data($file, $offset, $end, $algorithm) {
                                static $tempdir = '';
                                if (!self::intValueSupported($end)) {
                                    return false;
                                }
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php - About 3 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 ChannelsBitratePlaytimeCalculations has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                            public function ChannelsBitratePlaytimeCalculations() {
                        
                                // set channelmode on audio
                                if (!empty($this->info['audio']['channelmode']) || !isset($this->info['audio']['channels'])) {
                                    // ignore
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 3 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_elements_by_tag has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
                        Open

                            protected function search_elements_by_tag($name, &$done, $feeds)
                            {
                                if ($this->dom === null)
                                {
                                    throw new SimplePie_Exception('DOMDocument not found, unable to use locator');
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Locator.php - About 3 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