CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method wp_fullscreen_html has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function wp_fullscreen_html() {
        global $content_width;
        $post = get_post();

        $width = isset( $content_width ) && 800 > $content_width ? $content_width : 800;
Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 2 hrs to fix

    File user-edit.php has 278 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Edit user administration panel.
     *
     * @package WordPress
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/user-edit.php - About 2 hrs to fix

      Consider simplifying this complex logical expression.
      Open

      if ((window.XMLHttpRequest && !window.FormData) || (window.FileAPI && FileAPI.forceLoad)) {
          var initializeUploadListener = function(xhr) {
              if (!xhr.__listeners) {
                  if (!xhr.upload) xhr.upload = {};
                  xhr.__listeners = [];
      Severity: Critical
      Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 2 hrs to fix

        Consider simplifying this complex logical expression.
        Open

        if ((window.XMLHttpRequest && !window.FormData) || (window.FileAPI && FileAPI.forceLoad)) {
            var initializeUploadListener = function(xhr) {
                if (!xhr.__listeners) {
                    if (!xhr.upload) xhr.upload = {};
                    xhr.__listeners = [];
        Severity: Critical
        Found in Web.Admin/z-scripts/ng-file-upload-shim.js - About 2 hrs to fix

          InPlaceEditor has 24 functions (exceeds 20 allowed). Consider refactoring.
          Open

          Ajax.InPlaceEditor = Class.create({
            initialize: function(element, url, options) {
              this.url = url;
              this.element = element = $(element);
              this.prepareOptions();
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 2 hrs to fix

            WP_Screen has 24 functions (exceeds 20 allowed). Consider refactoring.
            Open

            final class WP_Screen {
                /**
                 * Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise.
                 *
                 * @since 3.3.0
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php - About 2 hrs to fix

              SimplePie_IRI has 24 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class SimplePie_IRI
              {
                  /**
                   * Scheme
                   *
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                Class ContingentController has 24 methods (exceeds 20 allowed). Consider refactoring.
                Open

                    public class ContingentController : Controller
                    {
                        public ActionResult Index()
                        {
                            return View();
                Severity: Minor
                Found in Web.Admin/Controllers/ContingentController.cs - About 2 hrs to fix

                  File native.php has 277 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  /**
                   * $Horde: framework/Text_Diff/Diff/Engine/native.php,v 1.10 2008/01/04 10:27:53 jan Exp $
                   *
                   * Class used internally by Text_Diff to actually compute the diffs. This
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/Text/Diff/Engine/native.php - About 2 hrs to fix

                    Function _getFormData has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                _getFormData: function (options, data, fn){
                                    var
                                          file = data.file
                                        , name = data.name
                                        , filename = file.name
                    Severity: Major
                    Found in Web.Admin/z-scripts/FileAPI.js - About 2 hrs to fix

                      Function ngfFixIE has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          FileAPI.ngfFixIE = function(elem, createFileElemFn, bindAttr, changeFn, resetModel) {
                              if (!hasFlash()) {
                                  throw 'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';
                              }
                              var makeFlashInput = function(evt) {
                      Severity: Major
                      Found in Web.Admin/z-scripts/ng-file-upload-shim.js - About 2 hrs to fix

                        Function ngfFixIE has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            FileAPI.ngfFixIE = function(elem, createFileElemFn, bindAttr, changeFn, resetModel) {
                                if (!hasFlash()) {
                                    throw 'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';
                                }
                                var makeFlashInput = function(evt) {
                        Severity: Major
                        Found in Web.Admin/z-scripts/ng-file-upload-all.js - About 2 hrs to fix

                          Method privFileDescrExpand has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function privFileDescrExpand(&$p_filedescr_list, &$p_options)
                            {
                              $v_result=1;
                          
                              // ----- Create a result list
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

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

                                function prepare_items() {
                                    include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
                            
                                    global $tabs, $tab, $paged, $type, $term;
                            
                            

                              Method wp_insert_link has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_insert_link( $linkdata, $wp_error = false ) {
                                  global $wpdb, $current_user;
                              
                                  $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 );
                              
                              
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/bookmark.php - About 2 hrs to fix

                                Method wp_getPage has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function wp_getPage($args) {
                                        $this->escape($args);
                                
                                        $blog_id    = (int) $args[0];
                                        $page_id    = (int) $args[1];
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/xmlrpc.php - About 2 hrs to fix

                                  Method call_widget_update has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function call_widget_update( $widget_id ) {
                                          global $wp_registered_widget_updates, $wp_registered_widget_controls;
                                  
                                          $this->start_capturing_option_updates();
                                          $parsed_id   = $this->parse_widget_id( $widget_id );
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 2 hrs to fix

                                    Method _diag has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks)
                                        {
                                            $flip = false;
                                    
                                            if ($xlim - $xoff > $ylim - $yoff) {
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/Text/Diff/Engine/native.php - About 2 hrs to fix

                                      Method render_content has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          protected function render_content() {
                                              switch( $this->type ) {
                                                  case 'text':
                                                      ?>
                                                      <label>
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-control.php - About 2 hrs to fix

                                        Method wp_link_pages has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function wp_link_pages($args = '') {
                                            $defaults = array(
                                                'before' => '<p>' . __('Pages:'), 'after' => '</p>',
                                                'link_before' => '', 'link_after' => '',
                                                'next_or_number' => 'number', 'nextpagelink' => __('Next page'),
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language