CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function Jcrop has 835 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.Jcrop = function(obj,opt)
{
    // Initialization {{{

    // Sanitize some options {{{
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js - About 4 days to fix

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

        public function get_contributors()
        {
            $contributors = array();
            foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'contributor') as $contributor)
            {
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 1 other location - About 4 days to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php on lines 306..362

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

    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

        public function get_contributors()
        {
            $contributors = array();
            foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'contributor') as $contributor)
            {
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php and 1 other location - About 4 days to fix
    Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 543..599

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

    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

    File media.php has 1498 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * WordPress Administration Media API.
     *
     * @package WordPress
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 3 days to fix

      Function editor_settings has a Cognitive Complexity of 195 (exceeds 5 allowed). Consider refactoring.
      Open

          public static function editor_settings($editor_id, $set) {
              $first_run = false;
      
              if ( empty(self::$first_init) ) {
                  if ( is_admin() ) {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 3 days 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 init has a Cognitive Complexity of 194 (exceeds 5 allowed). Consider refactoring.
      Open

          function init()
          {
              // Check absolute bare minimum requirements.
              if ((function_exists('version_compare') && version_compare(PHP_VERSION, '4.3.0', '<')) || !extension_loaded('xml') || !extension_loaded('pcre'))
              {
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 3 days 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

      File module.tag.id3v2.php has 1484 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /////////////////////////////////////////////////////////////////
      /// getID3() by James Heinrich <info@getid3.org>               //
      //  available at http://getid3.sourceforge.net                 //
      //            or http://www.getid3.org                         //
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.id3v2.php - About 3 days to fix

        File formatting.php has 1483 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * Main WordPress Formatting API.
         *
         * Handles many functions for formatting output.
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 3 days to fix

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

          Object.extend(Array.prototype, {
            _each: function(iterator) {
              for (var i = 0, length = this.length; i < length; i++)
                iterator(this[i]);
            },
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 3 days to fix
          Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 830..911

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

          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

          Object.extend(Array.prototype, {
            _each: function(iterator) {
              for (var i = 0, length = this.length; i < length; i++)
                iterator(this[i]);
            },
          Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 830..911

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

          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

          File module.audio-video.riff.php has 1460 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /////////////////////////////////////////////////////////////////
          /// getID3() by James Heinrich <info@getid3.org>               //
          //  available at http://getid3.sourceforge.net                 //
          //            or http://www.getid3.org                         //
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.riff.php - About 3 days to fix

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

            Ajax.Response = Class.create({
              initialize: function(request){
                this.request = request;
                var transport  = this.transport  = request.transport,
                    readyState = this.readyState = transport.readyState;
            Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 1359..1428

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

            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

            Ajax.Response = Class.create({
              initialize: function(request){
                this.request = request;
                var transport  = this.transport  = request.transport,
                    readyState = this.readyState = transport.readyState;
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 3 days to fix
            Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 1359..1428

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

            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

            File query.php has 1447 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * WordPress Query API
             *
             * The query API attempts to get which part of WordPress to the user is on. It
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/query.php - About 3 days to fix

              File module.audio.mp3.php has 1430 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              /////////////////////////////////////////////////////////////////
              /// getID3() by James Heinrich <info@getid3.org>               //
              //  available at http://getid3.sourceforge.net                 //
              //            or http://www.getid3.org                         //
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 3 days to fix

                File module.audio-video.matroska.php has 1419 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /////////////////////////////////////////////////////////////////
                /// getID3() by James Heinrich <info@getid3.org>               //
                //  available at http://getid3.sourceforge.net                 //
                //            or http://www.getid3.org                         //

                  Function decodeMPEGaudioHeader has a Cognitive Complexity of 181 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function decodeMPEGaudioHeader($offset, &$info, $recursivesearch=true, $ScanAsCBR=false, $FastMPEGheaderScan=false) {
                          static $MPEGaudioVersionLookup;
                          static $MPEGaudioLayerLookup;
                          static $MPEGaudioBitrateLookup;
                          static $MPEGaudioFrequencyLookup;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 3 days 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

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

                  Object.extend(Object, {
                    inspect: function(object) {
                      try {
                        if (object === undefined) return 'undefined';
                        if (object === null) return 'null';
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 3 days to fix
                  Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 110..198

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

                  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

                  Object.extend(Object, {
                    inspect: function(object) {
                      try {
                        if (object === undefined) return 'undefined';
                        if (object === null) return 'null';
                  Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 110..198

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

                  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

                  File module.audio-video.asf.php has 1378 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /////////////////////////////////////////////////////////////////
                  /// getID3() by James Heinrich <info@getid3.org>               //
                  //  available at http://getid3.sourceforge.net                 //
                  //            or http://www.getid3.org                         //
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.asf.php - About 3 days to fix
                    Severity
                    Category
                    Status
                    Source
                    Language