CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function patch has 266 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                patch: function (){
                    api.flashEngine = true;

                    // FileAPI
                    _inherit(api, {
Severity: Major
Found in Web.Admin/z-scripts/FileAPI.js - About 1 day to fix

    File class-smtp.php has 609 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /*~ class.smtp.php
    .---------------------------------------------------------------------------.
    |  Software: PHPMailer - PHP email class                                    |
    |   Version: 2.0.4                                                          |
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/class-smtp.php - About 1 day to fix

      Function QTags has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
      Open

      var QTags = function(name, id, container, disabled) {
          var t = this, cont = document.getElementById(container), i, tag, tb, html, sel;
      
          t.Buttons = [];
          t.Links = [];
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/quicktags.dev.js - About 1 day 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_get_object_terms has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
      Open

      function wp_get_object_terms($object_ids, $taxonomies, $args = array()) {
          global $wpdb;
      
          if ( !is_array($taxonomies) )
              $taxonomies = array($taxonomies);
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 day 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_mime_type_icon has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
      Open

      function wp_mime_type_icon( $mime = 0 ) {
          if ( !is_numeric($mime) )
              $icon = wp_cache_get("mime_type_icon_$mime");
          if ( empty($icon) ) {
              $post_id = 0;
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 1 day 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 class-wp-theme.php has 606 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * WP_Theme Class
       *
       * @package WordPress
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 1 day to fix

        Function get has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
        Open

            public static function get( $hook_name = '' ) {
        
                if ( is_a( $hook_name, 'WP_Screen' ) )
                    return $hook_name;
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 1 day 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 single_row has a Cognitive Complexity of 66 (exceeds 5 allowed). Consider refactoring.
        Open

            function single_row( $item ) {
                global $status, $page, $s, $totals;
        
                list( $plugin_file, $plugin_data ) = $item;
                $context = $status;

        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 66 (exceeds 5 allowed). Consider refactoring.
        Open

            public function Analyze() {
                $info = &$this->getid3->info;
        
                fseek($this->getid3->fp, $info['avdataoffset'], SEEK_SET);
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.flv.php - About 1 day 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 nav-menus.php has 600 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /**
         * WordPress Administration for Navigation Menus
         * Interface functions
         *
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/nav-menus.php - About 1 day to fix

          Method ent2ncr has 260 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function ent2ncr($text) {
              $to_ncr = array(
                  '&quot;' => '&#34;',
                  '&amp;' => '&#38;',
                  '&frasl;' => '&#47;',
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 day to fix

            Function $UrlMatcherFactory has 257 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function $UrlMatcherFactory() {
              $$UMFP = this;
            
              var isCaseInsensitive = false, isStrictMode = true, defaultSquashPolicy = false;
            
            
            Severity: Major
            Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 day to fix

              Function upgrade_230 has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
              Open

              function upgrade_230() {
                  global $wp_current_db_version, $wpdb;
              
                  if ( $wp_current_db_version < 5200 ) {
                      populate_roles_230();
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 day 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 get_items has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
              Open

                  function get_items($start = 0, $end = 0)
                  {
                      if (!isset($this->data['items']))
                      {
                          if (!empty($this->multifeed_objects))
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 day 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 akismet_conf has a Cognitive Complexity of 64 (exceeds 5 allowed). Consider refactoring.
              Open

              function akismet_conf() {
                  global $akismet_nonce, $wpcom_api_key;
              
                  if ( isset($_POST['submit']) ) {
                      if ( function_exists('current_user_can') && !current_user_can('manage_options') )
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/akismet.php - About 1 day 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 editor_settings has 249 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function editor_settings($editor_id, $set) {
                      $first_run = false;
              
                      if ( empty(self::$first_init) ) {
                          if ( is_admin() ) {
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 1 day to fix

                Function privFileDescrExpand has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
                Open

                  function privFileDescrExpand(&$p_filedescr_list, &$p_options)
                  {
                    $v_result=1;
                
                    // ----- Create a result list
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 day 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 display_page_row has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
                Open

                function display_page_row( $page, $level = 0 ) {
                    global $post;
                    static $rowclass;
                
                    $post = $page;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 day 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

                getid3_lib has 66 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class getid3_lib
                {
                
                    public static function PrintHexBytes($string, $hex=true, $spaces=true, $htmlencoding='UTF-8') {
                        $returnstring = '';
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php - About 1 day to fix

                  Function $get has 241 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function $get(   $rootScope,   $q,   $view,   $injector,   $resolve,   $stateParams,   $urlRouter,   $location,   $urlMatcherFactory) {
                  
                      var TransitionSuperseded = $q.reject(new Error('transition superseded'));
                      var TransitionPrevented = $q.reject(new Error('transition prevented'));
                      var TransitionAborted = $q.reject(new Error('transition aborted'));
                  Severity: Major
                  Found in Web.Admin/z-scripts/angular-ui-router.js - About 1 day to fix
                    Severity
                    Category
                    Status
                    Source
                    Language