mambax7/extgallery

View on GitHub

Showing 701 of 9,653 total issues

File galleria-1.3.5.js has 4344 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * Galleria v 1.3.5 2014-01-25
 * http://galleria.io
 *
 * Licensed under the MIT license
Severity: Major
Found in assets/js/galleria/galleria-1.3.5.js - About 1 wk to fix

    File galleria-1.3.3.js has 4326 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Galleria v 1.3.3 2013-11-18
     * http://galleria.io
     *
     * Licensed under the MIT license
    Severity: Major
    Found in assets/js/galleria/galleria-1.3.3.js - About 1 wk to fix

      File galleria-1.1.js has 2189 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
       * Galleria v 1.2 prerelease 1.1 2010-10-29
       * http://galleria.aino.se
       *
       * Copyright (c) 2010, Aino
      Severity: Major
      Found in assets/js/galleria/galleria-1.1.js - About 6 days to fix

        File pcltar.lib.php has 1744 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        // --------------------------------------------------------------------------------
        // PhpConcept Library - Tar Module 1.3.1
        // --------------------------------------------------------------------------------
        Severity: Major
        Found in class/pcltar.lib.php - About 4 days to fix

          File quarterly-home-slideshow.js has 1693 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          var galleriaData = [
              {
                  image: 'http://www.himalayanacademy.com/media/slideshows/2013/2013-06-21_hinduism-in-europe/hinduism-in-europe-2013_300.jpg',
                  big: 'http://www.himalayanacademy.com/media/slideshows/2013/2013-06-21_hinduism-in-europe/big/hinduism-in-europe-2013_300.jpg',
                  thumb: 'http://www.himalayanacademy.com/media/slideshows/2013/2013-06-21_hinduism-in-europe/thumb/hinduism-in-europe-2013_300.jpg',
          Severity: Major
          Found in assets/js/galleria/themes/classic/quarterly-home-slideshow.js - About 4 days to fix

            Function PclTarHandleExtract has a Cognitive Complexity of 193 (exceeds 5 allowed). Consider refactoring.
            Open

                function PclTarHandleExtract(
                    $p_tarname,
                    $p_file_list,
                    &$p_list_detail,
                    $p_mode,
            Severity: Minor
            Found in class/pcltar.lib.php - About 3 days 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

            File jquery.magnific-popup.js has 1391 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /*! Magnific Popup - v0.9.9 - 2013-12-27
            * http://dimsemenov.com/plugins/magnific-popup/
            * Copyright (c) 2013 Dmitry Semenov; */
            ;(function($) {
            
            
            Severity: Major
            Found in assets/js/magnific_popup/jquery.magnific-popup.js - About 3 days to fix

              Function galleryView has 720 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  $.fn.galleryView = function(options) {
                      var opts = $.extend($.fn.galleryView.defaults,options);
              
                      var id;
                      var iterator = 0;       // INT - Currently visible panel/frame
              Severity: Major
              Found in assets/js/galleryview/galleryview.js - About 3 days to fix

                File xoops_version.php has 1259 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                /**
                 * ExtGallery XOOPS_VERSION
                 *
                 * You may not change or alter any portion of this comment or credits
                Severity: Major
                Found in xoops_version.php - About 3 days to fix

                  Function parse_block_elements has a Cognitive Complexity of 154 (exceeds 5 allowed). Consider refactoring.
                  Open

                      private function parse_block_elements(array $lines, $context = '')
                      {
                          $elements = [];
                  
                          $element = [

                  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

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

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

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

                    /*
                     *  jQuery Touch Optimized Sliders "R"Us 1.4.0
                     *
                     *  Copyright (c) 2013 Fred Heusschen
                     *  www.frebsite.nl
                    Severity: Major
                    Found in assets/js/TosRUs/src/js/jquery.tosrus.js - About 2 days to fix

                      Method render_admin_page has 535 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function render_admin_page()
                          {
                              $this->admin_process();
                              $this->go_pro_cta();
                              $this->system_check();
                      Severity: Major
                      Found in assets/js/ml-slider/ml-slider.php - About 2 days to fix

                        File ml-slider.php has 1047 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        /*
                         * Plugin Name: Meta Slider
                         * Plugin URI: http://www.metaslider.com
                         * Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
                        Severity: Major
                        Found in assets/js/ml-slider/ml-slider.php - About 2 days to fix

                          Function PclTarHandleUpdate has a Cognitive Complexity of 130 (exceeds 5 allowed). Consider refactoring.
                          Open

                              function PclTarHandleUpdate($p_tarname, $p_file_list, &$p_list_detail, $p_tar_mode, $p_add_dir, $p_remove_dir)
                              {
                                  TrFctStart(__FILE__, __LINE__, 'PclTarHandleUpdate', "archive='$p_tarname', list, tar_mode=$p_tar_mode");
                                  $v_result     = 1;
                                  $v_nb         = 0;
                          Severity: Minor
                          Found in class/pcltar.lib.php - About 2 days 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

                          File slideshow.php has 853 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          /**
                           * ExtGallery Admin settings
                           * Manage admin pages
                           *
                          Severity: Major
                          Found in admin/slideshow.php - About 2 days to fix

                            File fancybox.js has 844 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /*
                             * FancyBox - jQuery Plugin
                             * Simple and fancy lightbox alternative
                             *
                             * Examples and documentation at: http://fancybox.net
                            Severity: Major
                            Found in assets/js/fancybox/fancybox.js - About 2 days to fix

                              Function Utils has 401 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  Utils = (function() {
                              
                                      return {
                              
                                          // legacy support for clearTimer
                              Severity: Major
                              Found in assets/js/galleria/galleria-1.3.5.js - About 2 days to fix

                                Function Utils has 401 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    Utils = (function() {
                                
                                        return {
                                
                                            // legacy support for clearTimer
                                Severity: Major
                                Found in assets/js/galleria/galleria-1.3.3.js - About 2 days to fix

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

                                  /*!
                                      Colorbox v1.4.25 - 2013-06-28
                                      jQuery lightbox and modal window plugin
                                      (c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
                                      license: http://www.opensource.org/licenses/mit-license.php
                                  Severity: Major
                                  Found in assets/js/ml-slider/assets/colorbox/jquery.colorbox-min.js - About 1 day to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language