CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

File screen.php has 541 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * WordPress Administration Screen API.
 *
 * @package WordPress
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 1 day to fix

    Function inline_edit_row has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
    Open

    function inline_edit_row( $type ) {
        global $current_user, $mode;
    
        $is_page = 'page' == $type;
        if ( $is_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

    Function wp_list_authors has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
    Open

    function wp_list_authors($args = '') {
        global $wpdb;
    
        $defaults = array(
            'optioncount' => false, 'exclude_admin' => true,
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/author-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

    File plugin.js has 537 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * plugin.js
     *
     * Copyright, Moxiecode Systems AB
     * Released under LGPL License.

      Method privParseOptions has 222 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false)
        {
          $v_result=1;
      
          // ----- Read the options
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 day to fix

        Method inline_edit_row has 222 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function inline_edit_row( $type ) {
            global $current_user, $mode;
        
            $is_page = 'page' == $type;
            if ( $is_page ) {
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 day to fix

          File textpattern.php has 534 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * TextPattern Importer
           *
           * @package WordPress
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 1 day to fix

            File dotclear.php has 532 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            /**
             * DotClear Importer
             *
             * @package WordPress
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/import/dotclear.php - About 1 day to fix

              File class.akismet.php has 532 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              
              class Akismet {
                  const API_HOST = 'rest.akismet.com';
                  const API_PORT = 80;
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/class.akismet.php - About 1 day to fix

                Function Util has 219 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        var Util = (function () {
                            function Util() {
                            }
                            Util._getStorageObject = function () {
                                try {
                Severity: Major
                Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 1 day to fix

                  Function privCalculateStoredFilename has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
                  Open

                    function privCalculateStoredFilename(&$p_filedescr, &$p_options)
                    {
                      $v_result=1;
                  
                      // ----- Working variables
                  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 upgrade_160 has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function upgrade_160() {
                      global $wpdb, $wp_current_db_version;
                  
                      populate_roles_160();
                  
                  
                  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 Analyze has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function Analyze() {
                          $info = &$this->getid3->info;
                  
                          $info['fileformat'] = 'quicktime';
                          $info['quicktime']['hinting']    = false;

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

                          _send: function (options, data){
                              var _this = this, xhr, uid = _this.uid, onloadFuncName = _this.uid + "Load", url = options.url;
                  
                              api.log('XHR._send:', data);
                  
                  
                  Severity: Major
                  Found in Web.Admin/z-scripts/FileAPI.js - About 1 day to fix

                    Method mw_newPost has 216 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function mw_newPost($args) {
                            $this->escape($args);
                    
                            $blog_ID     = (int) $args[0];
                            $username  = $args[1];
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 day to fix

                      File class-wp-customize-manager.php has 526 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Customize Manager.
                       *
                       * Bootstraps the Customize experience on the server-side.
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-manager.php - About 1 day to fix

                        Method Analyze has 215 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function Analyze() {
                                $info = &$this->getid3->info;
                        
                                if (!getid3_lib::intValueSupported($info['filesize'])) {
                                    $info['warning'][] = 'Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB';
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.apetag.php - About 1 day to fix

                          Function __construct has a Cognitive Complexity of 55 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function __construct() {
                          
                                  // Check for PHP version
                                  $required_php_version = '5.0.5';
                                  if (version_compare(PHP_VERSION, $required_php_version, '<')) {
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.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 unittest.js has 524 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // script.aculo.us unittest.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
                          
                          // Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
                          //           (c) 2005-2007 Jon Tirsen (http://www.tirsen.com)
                          //           (c) 2005-2007 Michael Schuerig (http://www.schuerig.de/michael/)
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/unittest.js - About 1 day to fix

                            Method __construct has 214 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function __construct($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false)
                                {
                                    if (class_exists('idna_convert'))
                                    {
                                        $idn = new idna_convert();
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/File.php - About 1 day to fix
                              Severity
                              Category
                              Status
                              Source
                              Language