CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method get_items has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function get_items($start = 0, $end = 0)
    {
        if (!isset($this->data['items']))
        {
            if (!empty($this->multifeed_objects))
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 3 hrs to fix

    `` has 30 functions (exceeds 20 allowed). Consider refactoring.
    Open

    Object.extend(String.prototype, {
      gsub: function(pattern, replacement) {
        var result = '', source = this, match;
        replacement = arguments.callee.prepareReplacement(replacement);
    
    
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 3 hrs to fix

      `` has 30 functions (exceeds 20 allowed). Consider refactoring.
      Open

      Object.extend(String.prototype, {
        gsub: function(pattern, replacement) {
          var result = '', source = this, match;
          replacement = arguments.callee.prepareReplacement(replacement);
      
      
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 3 hrs to fix

        WP_Filesystem_FTPext has 30 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class WP_Filesystem_FTPext extends WP_Filesystem_Base {
            var $link;
            var $errors = null;
            var $options = array();
        
        

          Blogger_Import has 30 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Blogger_Import {
          
              // Shows the welcome screen and the magic auth link.
              function greet() {
                  $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true';
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/import/blogger.php - About 3 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                    if ( $wp_query->is_singular && 'taxonomy' == $menu_item->type && in_array( $menu_item->object_id, $possible_object_parents ) ) {
                        $active_parent_object_ids[] = (int) $menu_item->object_id;
                        $active_parent_item_ids[] = (int) $menu_item->db_id;
                        $active_object = $queried_object->post_type;
            
            
            Severity: Critical
            Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 3 hrs to fix

              File Parser.php has 319 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * SimplePie
               *
               * A PHP-Based RSS and Atom Feed Framework.
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php - About 3 hrs to fix

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                    getHash : function(name) {
                        var all = this.get(name), ret;
                
                        if ( all ) {
                            this.each( all.split('&'), function(pair) {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/utils.js and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-admin/js/utils.dev.js on lines 53..64

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 108.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                            } else {
                                ed.dom.setAttribs(A, {
                                    href : f.link_href.value,
                                    title : f.link_title.value,
                                    rel : f.link_rel.value,
                Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js on lines 401..411

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 108.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                    if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') {
                
                                        ed.dom.setAttribs(n, {
                                            href : f.link_href.value,
                                            title : f.link_title.value,
                Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js on lines 413..422

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 108.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                    getHash : function(n) {
                        var v = this.get(n), h;
                
                        if (v) {
                            this.each(v.split('&'), function(v) {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/js/utils.dev.js and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-includes/js/utils.js on lines 37..48

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 108.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                if (preg_match('/^"([^"]*)"(\s+|$)/', $attr, $match))
                                    # "value"
                                    {
                                    $thisval = $match[1];
                                    if ( in_array($attrname, $uris) )
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/kses.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-includes/kses.php on lines 640..654

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 155.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                                if (preg_match("/^'([^']*)'(\s+|$)/", $attr, $match))
                                    # 'value'
                                    {
                                    $thisval = $match[1];
                                    if ( in_array($attrname, $uris) )
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/kses.php and 1 other location - About 3 hrs to fix
                Web.Admin/2014/wordpress/wp-includes/kses.php on lines 624..638

                Duplicated Code

                Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                Tuning

                This issue has a mass of 155.

                We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                Refactorings

                Further Reading

                Function fileUpload has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function fileUpload() {
                        var form = $form[0];
                        var opts = $.extend({}, $.ajaxSettings, options);
                
                        var id = 'jqFormIO' + $.fn.ajaxSubmit.counter++;
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.form.dev.js - About 3 hrs to fix

                  Method wp_insert_attachment has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wp_insert_attachment($object, $file = false, $parent = 0) {
                      global $wpdb, $user_ID;
                  
                      $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
                          'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 3 hrs to fix

                    Method CopyToAppropriateCommentsSection has 91 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function CopyToAppropriateCommentsSection($keyname, $data, $boxname='') {
                            static $handyatomtranslatorarray = array();
                            if (empty($handyatomtranslatorarray)) {
                                $handyatomtranslatorarray['©cpy'] = 'copyright';
                                $handyatomtranslatorarray['©day'] = 'creation_date';    // iTunes 4.0

                      Function complete has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              var complete = (function( data, next, active, queue, thumb ) {
                      
                                  return function() {
                      
                                      var win;
                      Severity: Major
                      Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

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

                                init : function() {
                        
                                    if ( lightbox.initialized ) {
                                        return;
                                    }
                        Severity: Major
                        Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

                          Function serializeParameters has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function serializeParameters() {
                              var d = document, f = d.forms[0], s = '';
                          
                              switch (f.media_type.options[f.media_type.selectedIndex].value) {
                                  case "flash":

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

                                    init : function() {
                            
                                        if ( lightbox.initialized ) {
                                            return;
                                        }
                            Severity: Major
                            Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language