CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

<?php
/**
 * PemFTP - A Ftp implementation in pure PHP
 *
 * @package PemFTP
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 day to fix

    File default-widgets.php has 752 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * Default Widgets
     *
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/default-widgets.php - About 1 day to fix

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

      <?php
      /**
       * IXR - The Inutio XML-RPC Library
       *
       * @package IXR
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 day to fix

        Function sanitize has a Cognitive Complexity of 87 (exceeds 5 allowed). Consider refactoring.
        Open

            function sanitize($data, $type, $base = '')
            {
                $data = trim($data);
                if ($data !== '' || $type & SIMPLEPIE_CONSTRUCT_IRI)
                {
        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

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

        <?php
        
        class Akismet_Admin {
            const NONCE = 'akismet-update-key';
        
        

          File classes.php has 739 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          /**
           * Holds Most of the WordPress classes.
           *
           * Some of the other classes are contained in other files. For example, the
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 1 day to fix

            Function _init has 341 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                _init: function() {
            
                    var self = this,
                        options = this._options;
            
            
            Severity: Major
            Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 day to fix

              Function _init has 341 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _init: function() {
              
                      var self = this,
                          options = this._options;
              
              Severity: Major
              Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 day to fix

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

                /* global tinymce */
                tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
                    var toolbarActive = false;
                
                    function parseShortcode( content ) {

                  Function display_rows has a Cognitive Complexity of 84 (exceeds 5 allowed). Consider refactoring.
                  Open

                      function display_rows() {
                          global $mode;
                  
                          $status_list = array(
                              'archived' => array( 'site-archived', __( 'Archived' ) ),

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

                      function request($url, $args = array()) {
                          $defaults = array(
                              'method' => 'GET', 'timeout' => 5,
                              'redirection' => 5, 'httpversion' => '1.0',
                              'blocking' => true,
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/class-http.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_tiny_mce has a Cognitive Complexity of 83 (exceeds 5 allowed). Consider refactoring.
                  Open

                  function wp_tiny_mce( $teeny = false, $settings = false ) {
                      global $concatenate_scripts, $compress_scripts, $tinymce_version;
                  
                      if ( ! user_can_richedit() )
                          return;
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/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

                  Function Analyze has a Cognitive Complexity of 83 (exceeds 5 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: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.tag.apetag.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-customize-widgets.php has 713 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * Customize Widgets Class
                   *
                   * Implements widget management in the Customizer.
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 1 day to fix

                    Function wp_save_image has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function wp_save_image($post_id) {
                        $return = '';
                        $success = $delete = $scaled = $nocrop = false;
                        $post = get_post($post_id);
                        @ini_set('memory_limit', '256M');
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.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_get_archives has a Cognitive Complexity of 82 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function wp_get_archives($args = '') {
                        global $wpdb, $wp_locale;
                    
                        $defaults = array(
                            'type' => 'monthly', 'limit' => '',
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/general-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 privAddFile has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                    Open

                      function privAddFile($p_filedescr, &$p_header, &$p_options)
                      {
                        $v_result=1;
                    
                        // ----- Working variable
                    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 _post_row has a Cognitive Complexity of 81 (exceeds 5 allowed). Consider refactoring.
                    Open

                    function _post_row($a_post, $pending_comments, $mode) {
                        global $post, $current_user;
                        static $rowclass;
                    
                        $global_post = $post;
                    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

                    File post-template.php has 700 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * WordPress Post Template Functions.
                     *
                     * Gets content for the current post in the loop.
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 1 day to fix

                      Function read_entry has a Cognitive Complexity of 80 (exceeds 5 allowed). Consider refactoring.
                      Open

                          function read_entry($f, $lineno = 0) {
                              $entry = new Translation_Entry();
                              // where were we in the last step
                              // can be: comment, msgctxt, msgid, msgid_plural, msgstr, msgstr_plural
                              $context = '';
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/pomo/po.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

                      Severity
                      Category
                      Status
                      Source
                      Language