CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method display_page_row has 134 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function display_page_row( $page, $level = 0 ) {
    global $post;
    static $rowclass;

    $post = $page;
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 5 hrs to fix

    Method getOnlyMPEGaudioInfoBruteForce has 134 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getOnlyMPEGaudioInfoBruteForce() {
            $MPEGaudioHeaderDecodeCache   = array();
            $MPEGaudioHeaderValidCache    = array();
            $MPEGaudioHeaderLengthCache   = array();
            $MPEGaudioVersionLookup       = self::MPEGaudioVersionArray();
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 5 hrs to fix

      Method request_filesystem_credentials has 133 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function request_filesystem_credentials($form_post, $type = '', $error = false, $context = false) {
          $req_cred = apply_filters('request_filesystem_credentials', '', $form_post, $type, $error, $context);
          if ( '' !== $req_cred )
              return $req_cred;
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 5 hrs to fix

        Method upgrade_230 has 133 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function upgrade_230() {
            global $wp_current_db_version, $wpdb;
        
            if ( $wp_current_db_version < 5200 ) {
                populate_roles_230();
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 5 hrs to fix

          Method get_themes has 132 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function get_themes() {
              global $wp_themes, $wp_broken_themes;
          
              if ( isset($wp_themes) )
                  return $wp_themes;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/theme.php - About 5 hrs to fix

            File wp-signup.php has 386 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            /** Sets up the WordPress Environment. */
            require( dirname(__FILE__) . '/wp-load.php' );
            
            
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-signup.php - About 5 hrs to fix

              File upload.php has 386 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Media Library administration panel.
               *
               * @package WordPress
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/upload.php - About 5 hrs to fix

                Function install_theme_information has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                function install_theme_information() {
                    //TODO: This function needs a LOT of UI work :)
                    global $tab, $themes_allowedtags;
                
                    $api = themes_api('theme_information', array('slug' => stripslashes( $_REQUEST['theme'] ) ));
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php - About 5 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_plugins_output has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                function wp_dashboard_plugins_output() {
                    $popular = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/popular/' );
                    $new     = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/new/' );
                    $updated = fetch_feed( 'http://wordpress.org/extend/plugins/rss/browse/updated/' );
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 5 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 convert_tags has a Cognitive Complexity of 35 (exceeds 5 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: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 5 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 auto_check_comment has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                    public static function auto_check_comment( $commentdata ) {
                        self::$last_comment_result = null;
                
                        $comment = $commentdata;
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/class.akismet.php - About 5 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 prepare_simplepie_object_for_cache has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                    protected static function prepare_simplepie_object_for_cache($data)
                    {
                        $items = $data->get_items();
                        $items_by_id = array();
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Cache/DB.php - About 5 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 prepare_simplepie_object_for_cache has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                    function prepare_simplepie_object_for_cache($data)
                    {
                        $items = $data->get_items();
                        $items_by_id = array();
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 5 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 start_element has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                    function start_element($parser, $name, $attrs) {
                
                        $tag = array_pop(split(":", $name));
                
                        switch($name) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/atomlib.php - About 5 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_list_comments has a Cognitive Complexity of 35 (exceeds 5 allowed). Consider refactoring.
                Open

                function wp_list_comments($args = array(), $comments = null ) {
                    global $wp_query, $comment_alt, $comment_depth, $comment_thread_alt, $overridden_cpage, $in_comment_loop;
                
                    $in_comment_loop = true;
                
                
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/comment-template.php - About 5 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 dbDelta has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function dbDelta($queries, $execute = true) {
                    global $wpdb;
                
                    // Separate individual queries into an array
                    if( !is_array($queries) ) {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 5 hrs to fix

                  Method screen_meta has 131 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function screen_meta($screen) {
                      global $wp_meta_boxes, $_wp_contextual_help;
                  
                      $screen = str_replace('.php', '', $screen);
                      $screen = str_replace('-new', '', $screen);
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 5 hrs to fix

                    Function patchEditor has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function patchEditor(editor) {
                            function patchEditorEvents(oldEventNames, argsMap) {
                                tinymce.each(oldEventNames.split(" "), function(oldName) {
                                    editor["on" + oldName] = new Dispatcher(editor, oldName, argsMap);
                                });

                      Method populate_options has 130 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function populate_options() {
                          global $wpdb, $wp_db_version;
                      
                          $guessurl = wp_guess_url();
                      
                      
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/schema.php - About 5 hrs to fix

                        File edit-comments.php has 382 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /**
                         * Edit Comments Administration Panel.
                         *
                         * @package WordPress
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/edit-comments.php - About 5 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language