CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method wp_explain_nonce has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function wp_explain_nonce( $action ) {
    if ( $action !== -1 && preg_match( '/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches ) ) {
        $verb = $matches[1];
        $noun = $matches[2];

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 2 hrs to fix

    Function $Browser has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    angular.mock.$Browser = function() {
      var self = this;
    
      this.isMock = true;
      self.$$url = "http://server/";
    Severity: Major
    Found in Web.Admin/z-scripts/angular-mocks.js - About 2 hrs to fix

      Function User has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  var User = (function () {
                      function User(accountId) {
                          var cookie = ApplicationInsights.Util.getCookie(User.userCookieName);
                          if (cookie) {
                              var params = cookie.split(User.cookieSeparator);
      Severity: Major
      Found in Web.Admin/z-scripts/ai.0.15.0-build46802.js - About 2 hrs to fix

        Function run has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                run: function( deferred ) {
                    var self   = this,
                        loaded = false,
                        ready  = false;
        
        
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 2 hrs to fix

          Function open has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              open : function(id, p, a) {
                  var t = this, editRow, rowData, act, h, c = $('#comment-' + id);
                  t.close();
                  t.cid = id;
          
          
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/js/edit-comments.dev.js - About 2 hrs to fix

            Function prepareMediaItemInit has 59 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function prepareMediaItemInit(fileObj) {
                var item = jQuery('#media-item-' + fileObj.id);
                // Clone the thumbnail as a "pinkynail" -- a tiny image to the left of the filename
                jQuery('.thumbnail', item).clone().attr('className', 'pinkynail toggle').prependTo(item);
            
            
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/swfupload/handlers.dev.js - About 2 hrs to fix

              Method privAddFileUsingTempFile has 59 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options)
                {
                  $v_result=PCLZIP_ERR_NO_ERROR;
              
                  // ----- Working variable
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

                Method edit_post has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function edit_post( $post_data = null ) {
                
                    if ( empty($post_data) )
                        $post_data = &$_POST;
                
                
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 2 hrs to fix

                  Method parselisting has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function parselisting($line) {
                          static $is_windows;
                          if ( is_null($is_windows) )
                              $is_windows = strpos( strtolower(ftp_systype($this->link)), 'win') !== false;
                  
                  

                    Method media_upload_form_handler has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function media_upload_form_handler() {
                        check_admin_referer('media-form');
                    
                        $errors = null;
                    
                    
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 2 hrs to fix

                      Method wp_comment_reply has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) {
                          global $current_user;
                      
                          // allow plugin to replace the popup content
                          $content = apply_filters( 'wp_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode) );
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 2 hrs to fix

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

                            function prepare_items() {
                                global $post_id, $comment_status, $search, $comment_type;
                        
                                $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
                                if ( !in_array( $comment_status, array( 'all', 'moderated', 'approved', 'spam', 'trash' ) ) )

                          Method wp_restore_image has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function wp_restore_image($post_id) {
                              $meta = wp_get_attachment_metadata($post_id);
                              $file = get_attached_file($post_id);
                              $backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
                              $restored = false;
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.php - About 2 hrs to fix

                            Method image_edit_apply_changes has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function image_edit_apply_changes($img, $changes) {
                            
                                if ( !is_array($changes) )
                                    return $img;
                            
                            
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.php - About 2 hrs to fix

                              Method confirm_delete_users has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function confirm_delete_users( $users ) {
                                  $current_user = wp_get_current_user();
                                  if ( !is_array( $users ) )
                                      return false;
                                  ?>
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/network/users.php - About 2 hrs to fix

                                Method wp_delete_post has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wp_delete_post( $postid = 0, $force_delete = false ) {
                                    global $wpdb, $wp_rewrite;
                                
                                    if ( !$post = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $postid)) )
                                        return $post;
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 2 hrs to fix

                                  Method tag_open has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function tag_open($parser, $tag, $attributes)
                                      {
                                          list($this->namespace[], $this->element[]) = $this->split_ns($tag);
                                  
                                          $attribs = array();
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php - About 2 hrs to fix

                                    Method SimplePie_Cache_MySQL has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function SimplePie_Cache_MySQL($mysql_location, $name, $extension)
                                        {
                                            $host = $mysql_location->get_host();
                                            if (SimplePie_Misc::stripos($host, 'unix(') === 0 && substr($host, -1) === ')')
                                            {
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                                      Method _walk_bookmarks has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function _walk_bookmarks($bookmarks, $args = '' ) {
                                          $defaults = array(
                                              'show_updated' => 0, 'show_description' => 0,
                                              'show_images' => 1, 'show_name' => 0,
                                              'before' => '<li>', 'after' => '</li>', 'between' => "\n",
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-includes/bookmark-template.php - About 2 hrs to fix

                                        File handlers.dev.js has 264 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        
                                        function fileDialogStart() {
                                            jQuery("#media-upload-error").empty();
                                        }
                                        
                                        
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/js/swfupload/handlers.dev.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language