CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

<?php
/**
 * Edit Posts Administration Panel.
 *
 * @package WordPress
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/edit.php - About 3 hrs to fix

    Consider simplifying this complex logical expression.
    Open

        if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
            (t == 'checkbox' || t == 'radio') && !el.checked ||
            (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
            tag == 'select' && el.selectedIndex == -1))
                return null;
    Severity: Critical
    Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.form.dev.js - About 3 hrs to fix

      WP_Filesystem_Direct has 28 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class WP_Filesystem_Direct extends WP_Filesystem_Base {
          var $errors = null;
          /**
           * constructor
           *

        LJ_API_Import has 28 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class LJ_API_Import {
        
            var $comments_url = 'http://www.livejournal.com/export_comments.bml';
            var $ixr_url      = 'http://www.livejournal.com/interface/xmlrpc';
            var $ixr;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 3 hrs to fix

          Consider simplifying this complex logical expression.
          Open

                      if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content')) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
                      || (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content')) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml')
                      || (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_20 && in_array(end($this->element), array('title')))
                      || (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_090 && in_array(end($this->element), array('title')))
                      || (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_10 && in_array(end($this->element), array('title'))))
          Severity: Critical
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Parser.php - About 3 hrs to fix

            Function success has 83 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                        success: function() {
            
                            // calculate some cropping
                            var newWidth = ( width - options.margin * 2 ) / self.original.width,
                                newHeight = ( height - options.margin * 2 ) / self.original.height,
            Severity: Major
            Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

              Function show has 83 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      show: function(index) {
              
                          lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
              
                          if ( !lightbox.initialized ) {
              Severity: Major
              Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

                Function resultsController has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    var resultsController = function ($scope, $location, dataService, $stateParams, $state, $timeout) {
                        var url = $location.absUrl();
                        var host = $location.host();
                        var firstSlash = url.indexOf('/', url.indexOf(host)) + 1;
                        var currentYear = url.slice(firstSlash, firstSlash + 4);
                Severity: Major
                Found in Web.Admin/ClientApp/Controllers/controller.results.js - About 3 hrs to fix

                  Function show has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          show: function(index) {
                  
                              lightbox.active = index = typeof index === 'number' ? index : self.getIndex() || 0;
                  
                              if ( !lightbox.initialized ) {
                  Severity: Major
                  Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

                    Function success has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                success: function() {
                    
                                    // calculate some cropping
                                    var newWidth = ( width - options.margin * 2 ) / self.original.width,
                                        newHeight = ( height - options.margin * 2 ) / self.original.height,
                    Severity: Major
                    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

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

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

                        Method mw_getRecentPosts has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function mw_getRecentPosts($args) {
                        
                                $this->escape($args);
                        
                                $blog_ID     = (int) $args[0];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 3 hrs to fix

                          Method Analyze has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function Analyze() {
                                  $info = &$this->getid3->info;
                                  $info['fileformat'] = 'dts';
                          
                                  $this->fseek($info['avdataoffset']);
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 3 hrs to fix

                            Method absolutize has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static function absolutize($base, $relative)
                                {
                                    if (!($relative instanceof SimplePie_IRI))
                                    {
                                        $relative = new SimplePie_IRI($relative);
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 3 hrs to fix

                              Method request has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function request($url, $args = array()) {
                                      $defaults = array(
                                          'method' => 'GET', 'timeout' => 5,
                                          'redirection' => 5, 'httpversion' => '1.0',
                                          'blocking' => true,
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-includes/http.php - About 3 hrs to fix

                                Method save has 83 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function save($data)
                                    {
                                        if ($this->mysql)
                                        {
                                            $feed_id = "'" . mysql_real_escape_string($this->id) . "'";
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 3 hrs to fix

                                  File wp-lists.dev.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  (function($) {
                                  var fs = {add:'ajaxAdd',del:'ajaxDel',dim:'ajaxDim',process:'process',recolor:'recolor'}, wpList;
                                  
                                  wpList = {
                                      settings: {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/wp-lists.dev.js - About 3 hrs to fix

                                    Function _apply has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _apply: function (image, fn){
                                                var
                                                      canvas = getCanvas()
                                                    , m = this.getMatrix(image)
                                                    , ctx = canvas.getContext('2d')
                                    Severity: Major
                                    Found in Web.Admin/z-scripts/FileAPI.js - About 3 hrs to fix

                                      Function Page has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              $scope.Page = function (page, data) {
                                                  switch (page) {
                                                      case 'Game': {
                                                          dataService.LoadSchedule(year, data.Division).
                                                              success(function (divisionSchedule) {
                                      Severity: Major
                                      Found in Web.Admin/AdminApp/Controllers/controller.scoreentry.js - About 3 hrs to fix

                                        Function dataToHtml has 82 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function dataToHtml(data) {
                                                var html = '';
                                        
                                                if (!data.source1) {
                                                    tinymce.extend(data, htmlToData(data.embed));
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language