XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

File jqueryui.min.js has 12607 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*! jQuery UI - v1.11.4 - 2015-10-04
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, sortable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */

Severity: Major
Found in assets/js/jqueryui.min.js - About 1 mo to fix

    File jquery-ui-1.8.11.custom.js has 8886 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * jQuery UI 1.8.11
     *
     * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
     * Dual licensed under the MIT or GPL Version 2 licenses.
    Severity: Major
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 3 wks to fix

      File jquery.min.js has 6841 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery JavaScript Library v1.11.3
       * http://jquery.com/
       *
       * Includes Sizzle.js
      Severity: Major
      Found in assets/js/jquery.min.js - About 2 wks to fix

        Function Sizzle has 1355 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        (function( window ) {
        
        var i,
            support,
            Expr,
        Severity: Major
        Found in assets/js/jquery.min.js - About 6 days to fix

          File bootstrap.js has 1325 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* ===================================================
           * bootstrap-transition.js v2.2.2
           * http://twitter.github.com/bootstrap/javascript.html#transitions
           * ===================================================
           * Copyright 2012 Twitter, Inc.
          Severity: Major
          Found in assets/js/uploader/bootstrap.js - About 3 days to fix

            Function galleriffic has 596 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                xoops_smallworld.fn.galleriffic = function (settings) {
                    //  Extend Gallery Object
                    xoops_smallworld.extend(this, {
                        // Returns the version of the script
                        version: xoops_smallworld.galleriffic.version,
            Severity: Major
            Found in assets/js/jquery.galleriffic.js - About 2 days to fix

              File smallworld.js has 1070 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              /**
               * jQuery configs, selectors and functions for Xoops Smallworld
               *
               * You may not change or alter any portion of this comment or credits
               * of supporting developers from this source code or any supporting source code
              Severity: Major
              Found in assets/js/smallworld.js - About 2 days to fix

                File functions.php has 1026 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /*
                 * You may not change or alter any portion of this comment or credits
                 * of supporting developers from this source code or any supporting source code
                 * which is considered copyrighted (c) material of the original comment or credit authors.
                Severity: Major
                Found in include/functions.php - About 2 days to fix

                  File jquery.oembed.js has 956 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*!
                   * jquery oembed plugin
                   *
                   * Copyright (c) 2009 Richard Chamorro
                   * Licensed under the MIT license
                  Severity: Major
                  Found in assets/js/jquery.oembed.js - About 2 days to fix

                    File jquery.fileupload.js has 856 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*
                     * jQuery File Upload Plugin 5.21
                     * https://github.com/blueimp/jQuery-File-Upload
                     *
                     * Copyright 2010, Sebastian Tschan
                    Severity: Major
                    Found in assets/js/jquery.fileupload.js - About 2 days to fix

                      File jquery.colorbox.js has 774 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      /*!
                          jQuery ColorBox v1.4.6 - 2013-03-19
                          (c) 2013 Jack Moore - jacklmoore.com/colorbox
                          license: http://www.opensource.org/licenses/mit-license.php
                      */
                      Severity: Major
                      Found in assets/js/jquery.colorbox.js - About 1 day to fix

                        File jquery.fileupload-ui.js has 687 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*
                         * jQuery File Upload User Interface Plugin 7.3
                         * https://github.com/blueimp/jQuery-File-Upload
                         *
                         * Copyright 2010, Sebastian Tschan
                        Severity: Major
                        Found in assets/js/jquery.fileupload-ui.js - About 1 day to fix

                          File jquery.galleriffic.js has 663 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          /**
                           * jQuery Galleriffic plugin
                           *
                           * Copyright (c) 2008 Trent Foley (http://trentacular.com)
                           * Licensed under the MIT License:
                          Severity: Major
                          Found in assets/js/jquery.galleriffic.js - About 1 day to fix

                            File UploadHandler.php has 647 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            namespace XoopsModules\Smallworld;
                            
                            /*
                            Severity: Major
                            Found in class/UploadHandler.php - About 1 day to fix

                              File jquery.countdown.js has 617 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              /* http://keith-wood.name/countdown.html
                                 Countdown for jQuery v1.5.10.
                                 Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
                                 Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
                                 MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
                              Severity: Major
                              Found in assets/js/jquery.countdown.js - About 1 day to fix

                                Function ajaxSubmit has 255 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    $.fn.ajaxSubmit = function (options) {
                                        // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
                                        if (!this.length) {
                                            log('ajaxSubmit: skipping submit process - no element selected');
                                            return this;
                                Severity: Major
                                Found in assets/js/jquery.form.js - About 1 day to fix

                                  Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      ajax: function( url, options ) {
                                  
                                          // If url is an object, simulate pre-1.5 signature
                                          if ( typeof url === "object" ) {
                                              options = url;
                                  Severity: Major
                                  Found in assets/js/jquery.min.js - About 1 day to fix

                                    Function _tabify has 229 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _tabify: function (init) {
                                                var self = this,
                                                    o = this.options,
                                                    fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
                                    
                                    
                                    Severity: Major
                                    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 day to fix

                                      Function setDocument has 218 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      setDocument = Sizzle.setDocument = function( node ) {
                                          var hasCompare, parent,
                                              doc = node ? node.ownerDocument || node : preferredDoc;
                                      
                                          // If no document and documentElement is available, return
                                      Severity: Major
                                      Found in assets/js/jquery.min.js - About 1 day to fix

                                        Function truncateHtml has a Cognitive Complexity of 53 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            public static function truncateHtml($text, $length = 100, $ending = '...', $exact = false, $considerHtml = true)
                                            {
                                                if ($considerHtml) {
                                                    // if the plain text is shorter than the maximum length, return the whole text
                                                    if (mb_strlen(preg_replace('/<.*?' . '>/', '', $text)) <= $length) {
                                        Severity: Minor
                                        Found in class/Common/SysUtility.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