CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method wp_ajax_add_meta has 76 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wp_ajax_add_meta() {
    check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' );
    $c = 0;
    $pid = (int) $_POST['post_id'];
    $post = get_post( $pid );
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 3 hrs to fix

    File custom-background.php has 293 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * The custom background script.
     *
     * @package WordPress
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/custom-background.php - About 3 hrs to fix

      Function sendHttp has 75 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function sendHttp(config) {
              config.method = config.method || 'POST';
              config.headers = config.headers || {};
              config.transformRequest = config.transformRequest || function (data, headersGetter) {
                  if (window.ArrayBuffer && data instanceof window.ArrayBuffer) {
      Severity: Major
      Found in Web.Admin/z-scripts/ng-file-upload.js - About 3 hrs to fix

        Function sendHttp has 75 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function sendHttp(config) {
                config.method = config.method || 'POST';
                config.headers = config.headers || {};
                config.transformRequest = config.transformRequest || function (data, headersGetter) {
                    if (window.ArrayBuffer && data instanceof window.ArrayBuffer) {
        Severity: Major
        Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 3 hrs to fix

          Function init has 75 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  init : function(ed, url) {
                      var t = this;
          
                      t.url = url;
                      t._createButtons();

            Method privCalculateStoredFilename has 75 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function privCalculateStoredFilename(&$p_filedescr, &$p_options)
              {
                $v_result=1;
            
                // ----- Working variables
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 3 hrs to fix

              Method prepare_items has 75 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function prepare_items() {
                      global $s, $mode, $wpdb;
              
                      $current_site = get_current_site();
              
              

                Method display_rows has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function display_rows() {
                        global $cat_id;
                
                        $alt = 0;
                
                

                  Method auto_check_comment has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public static function auto_check_comment( $commentdata ) {
                          self::$last_comment_result = null;
                  
                          $comment = $commentdata;
                  
                  
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/class.akismet.php - About 3 hrs to fix

                    Method sanitize_option has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function sanitize_option($option, $value) {
                    
                        switch ($option) {
                            case 'admin_email':
                                $value = sanitize_email($value);
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 3 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                                              if (($c == $strlen_chrs) || (($chrs{$c} == ',') && ($top['what'] == SERVICES_JSON_SLICE))) {
                                                  // found a comma that is not inside a string, array, etc.,
                                                  // OR we've reached the end of the character list
                                                  $slice = substr($chrs, $top['where'], ($c - $top['where']));
                                                  array_push($stk, array('what' => SERVICES_JSON_SLICE, 'where' => ($c + 1), 'delim' => false));
                      Severity: Critical
                      Found in Web.Admin/2014/wordpress/wp-includes/class-json.php - About 3 hrs to fix

                        Function table_hotkeys has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            $.table_hotkeys = function(table, keys, opts) {
                                opts = $.extend($.table_hotkeys.defaults, opts);
                                var selected_class, destructive_class, set_current_row, adjacent_row_callback, get_adjacent_row, adjacent_row, prev_row, next_row, check, get_first_row, get_last_row, make_key_callback, first_row;
                                
                                selected_class = opts.class_prefix + opts.selected_suffix;

                          Method extract has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function extract()
                            {
                              $v_result=1;
                          
                              // ----- Reset the error handler
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

                            Method privFileDescrParseAtt has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false)
                              {
                                $v_result=1;
                            
                                // ----- For each file in the list check the attributes
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

                              Method wp_widget_control has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_widget_control( $sidebar_args ) {
                                  global $wp_registered_widgets, $wp_registered_widget_controls, $sidebars_widgets;
                              
                                  $widget_id = $sidebar_args['widget_id'];
                                  $sidebar_id = isset($sidebar_args['id']) ? $sidebar_args['id'] : false;
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/widgets.php - About 2 hrs to fix

                                Method _cat_row has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function _cat_row( $category, $level, $name_override = false ) {
                                    static $row_class = '';
                                
                                    $category = get_category( $category, OBJECT, 'display' );
                                
                                
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 2 hrs to fix

                                  Method wp_ajax_replyto_comment has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function wp_ajax_replyto_comment( $action ) {
                                      global $wp_list_table, $wpdb;
                                      if ( empty( $action ) )
                                          $action = 'replyto-comment';
                                  
                                  
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 2 hrs to fix

                                    File Locator.php has 289 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    <?php
                                    /**
                                     * SimplePie
                                     *
                                     * A PHP-Based RSS and Atom Feed Framework.
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Locator.php - About 2 hrs to fix

                                      Function addMethods has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      Element.addMethods = function(methods) {
                                        var F = Prototype.BrowserFeatures, T = Element.Methods.ByTag;
                                      
                                        if (!methods) {
                                          Object.extend(Form, Form.Methods);
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 2 hrs to fix

                                        Function updateText has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function updateText() {
                                                    var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
                                                        optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
                                                        mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();
                                        
                                        
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-admin/js/post.dev.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language