CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

File admin-ajax.php has 1184 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * WordPress AJAX Process Execution.
 *
 * @package WordPress
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/admin-ajax.php - About 3 days to fix

    File customize-widgets.js has 1163 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* global _wpCustomizeWidgetsSettings */
    (function( wp, $ ){
    
        if ( ! wp || ! wp.customize ) { return; }
    
    
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 2 days to fix

      File taxonomy.php has 1144 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      /**
       * Taxonomy API
       *
       * @package WordPress
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 2 days to fix

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

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

          Function dbDelta has a Cognitive Complexity of 140 (exceeds 5 allowed). Consider refactoring.
          Open

          function dbDelta($queries, $execute = true) {
              global $wpdb;
          
              // Separate individual queries into an array
              if( !is_array($queries) ) {
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 2 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 __construct has a Cognitive Complexity of 140 (exceeds 5 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: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/File.php - About 2 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 general-template.php has 1091 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * General template tags that can go anywhere in a template.
           *
           * @package WordPress
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 2 days to fix

            File getid3.lib.php has 1070 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/getid3.lib.php - About 2 days to fix

              Method parseEBML has 542 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  private function parseEBML(&$info) {
                      // http://www.matroska.org/technical/specs/index.html#EBMLBasics
                      $this->current_offset = $info['avdataoffset'];
              
                      while ($this->getEBMLelement($top_element, $info['avdataend'])) {

                Function privExtractByRule has a Cognitive Complexity of 131 (exceeds 5 allowed). Consider refactoring.
                Open

                  function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
                  {
                    $v_result=1;
                
                    // ----- Magic quotes trick
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 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 _insert_post has a Cognitive Complexity of 131 (exceeds 5 allowed). Consider refactoring.
                Open

                    protected function _insert_post( $user, $content_struct ) {
                        $defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0,
                            'post_password' => '', 'post_excerpt' => '', 'post_content' => '', 'post_title' => '' );
                
                        $post_data = wp_parse_args( $content_struct, $defaults );
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 2 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 inline_edit has a Cognitive Complexity of 129 (exceeds 5 allowed). Consider refactoring.
                Open

                    function inline_edit() {
                        global $mode;
                
                        $screen = $this->screen;
                
                

                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 privExtractFile has a Cognitive Complexity of 128 (exceeds 5 allowed). Consider refactoring.
                Open

                  function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)
                  {
                    $v_result=1;
                
                    // ----- Read the file header
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 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 upgrade.php has 1025 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /**
                 * WordPress Upgrade API
                 *
                 * Most of the functions are pluggable and can be overwritten
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 2 days to fix

                  Function SimplePie_File has a Cognitive Complexity of 127 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function SimplePie_File($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false)
                      {
                          if (class_exists('idna_convert'))
                          {
                              $idn =& new idna_convert;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 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 effects.js has 1016 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  // script.aculo.us effects.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)
                  // Contributors:
                  //  Justin Palmer (http://encytemedia.com/)
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/effects.js - About 2 days to fix

                    File theme.js has 1015 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /* global _wpThemeSettings, confirm */
                    window.wp = window.wp || {};
                    
                    ( function($) {
                    
                    
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-admin/js/theme.js - About 2 days to fix

                      File ms-functions.php has 1013 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * Multisite WordPress API
                       *
                       * @package WordPress
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 2 days to fix

                        Function single_row has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring.
                        Open

                            function single_row( $post, $level = 0 ) {
                                global $mode;
                                static $alternate;
                        
                                $global_post = get_post();

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

                        $.imgAreaSelect = function (img, options) {
                            var
                        
                                $img = $(img),
                        
                        
                          Severity
                          Category
                          Status
                          Source
                          Language