CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

    Akismet has 39 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Akismet {
        const API_HOST = 'rest.akismet.com';
        const API_PORT = 80;
        const MAX_DELAY_BEFORE_MODERATION_EMAIL = 86400; // One day in seconds
    
    
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/class.akismet.php - About 5 hrs to fix

      WP_Theme has 39 functions (exceeds 20 allowed). Consider refactoring.
      Open

      final class WP_Theme implements ArrayAccess {
      
          /**
           * Headers for style.css files.
           *
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 5 hrs to fix

        Function collection has 129 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            wp.media.collection = function(attributes) {
                var collections = {};
        
                return _.extend( attributes, {
                    coerce : wp.media.coerce,
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/media-editor.js - About 5 hrs to fix

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

                      if ( $.isFunction(s.dimAfter) ) {
                          o = this.complete;
                          this.complete = function(x,st) {
                              element.queue( function() {
                                  var _s = $.extend( { xml: x, status: st, parsed: res }, s );
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js and 1 other location - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js on lines 162..171

          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 138.

          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 ( $.isFunction(s.delAfter) ) {
                          o = this.complete;
                          this.complete = function(x,st) {
                              element.queue( function() {
                                  var _s = $.extend( { xml: x, status: st, parsed: res }, s );
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js and 1 other location - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js on lines 229..238

          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 138.

          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 3 locations. Consider refactoring.
          Open

                                  if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                  {
                                      foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                      {
                                          $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2088..2141
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2113..2137

          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 186.

          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 3 locations. Consider refactoring.
          Open

                                  elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                  {
                                      foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                      {
                                          $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4781..4834
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5296..5324

          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 186.

          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 3 locations. Consider refactoring.
          Open

                                      elseif (isset($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                      {
                                          foreach ($group['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                          {
                                              $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2088..2141
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2606..2634

          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 186.

          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 3 locations. Consider refactoring.
          Open

                                  if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                  {
                                      foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                      {
                                          $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4781..4834
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4806..4830

          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 186.

          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 3 locations. Consider refactoring.
          Open

                                  if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                  {
                                      foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                      {
                                          $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4806..4830
          Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5296..5324

          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 186.

          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 3 locations. Consider refactoring.
          Open

                                      if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
                                      {
                                          foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
                                          {
                                              $value = null;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 2 other locations - About 5 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2113..2137
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 2606..2634

          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 186.

          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 _transitions has 128 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _transitions = (function() {
          
                  var _slide = function(params, complete, fade, door) {
          
                      var easing = this.getOptions('easing'),
          Severity: Major
          Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 5 hrs to fix

            Function _transitions has 128 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _transitions = (function() {
            
                    var _slide = function(params, complete, fade, door) {
            
                        var easing = this.getOptions('easing'),
            Severity: Major
            Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 5 hrs to fix

              File misc.php has 380 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /**
               * Misc WordPress Administration API.
               *
               * @package WordPress
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/misc.php - About 5 hrs to fix

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

                    {
                        if (options.disabled) return false;
                        if (!options.allowSelect) return false;
                        btndown = true;
                        docOffset = getPos($img);
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 135..135

                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 137.

                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

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

                {if(!options.aspectRatio)return getRect();var aspect=options.aspectRatio,min_x=options.minSize[0]/xscale,min_y=options.minSize[1]/yscale,max_x=options.maxSize[0]/xscale,max_y=options.maxSize[1]/yscale,rw=x2-x1,rh=y2-y1,rwa=Math.abs(rw),rha=Math.abs(rh),real_ratio=rwa/rha,xx,yy;if(max_x==0){max_x=boundx*10}
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 236..247

                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 137.

                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

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

                            var aspect = options.aspectRatio,
                                min_x = options.minSize[0]/xscale, 
                                min_y = options.minSize[1]/yscale,
                                max_x = options.maxSize[0]/xscale, 
                                max_y = options.maxSize[1]/yscale,
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 22..22

                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 137.

                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

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

                dw_Rotator.start = function(delay) {
                    var i, obj;
                    for (i=0; obj = dw_Rotator.col[i]; i++) {
                        if ( !obj.isActive ) {
                            obj.clearTimer(); obj.isActive = true; 
                Severity: Major
                Found in Web.Admin/2015/js/dw_rotator.js and 1 other location - About 5 hrs to fix
                Web.Admin/2014/js/dw_rotator.js on lines 141..150

                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 137.

                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

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

                dw_Rotator.start = function(delay) {
                    var i, obj;
                    for (i=0; obj = dw_Rotator.col[i]; i++) {
                        if ( !obj.isActive ) {
                            obj.clearTimer(); obj.isActive = true; 
                Severity: Major
                Found in Web.Admin/2014/js/dw_rotator.js and 1 other location - About 5 hrs to fix
                Web.Admin/2015/js/dw_rotator.js on lines 141..150

                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 137.

                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

                Severity
                Category
                Status
                Source
                Language