10% giga-slider

Code Review | GIGA Slider

WordPress plugin GIGA Slider scored10%from 54 tests.

About plugin

  • Plugin page: giga-slider
  • Plugin version: 1.0.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Dec 22, 2019
  • Number of updates: 67
  • Update frequency: every 25.5 days
  • Top authors: wp-buy (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

300+ active /39,127 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/giga-slider/attachment.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; RC_Attachment has a deprecated constructor

Server metrics [RAM: ▼1.57MB] [CPU: ▼52.65ms] Passed 4 tests

Server-side resources used by GIGA Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.42 ▼1.045.41 ▼38.94
Dashboard /wp-admin2.44 ▼0.877.82 ▼40.84
Posts /wp-admin/edit.php2.44 ▼0.926.94 ▼42.51
Add New Post /wp-admin/post-new.php2.44 ▼3.459.42 ▼88.29
Media Library /wp-admin/upload.php2.44 ▼0.797.85 ▼25.82
Add New Slider /wp-admin/post-new.php?post_type=rc_slider2.447.16
GIGA Slider /wp-admin/edit.php?post_type=rc_slider2.448.87

Server storage [IO: ▲3.34MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 76 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
widget_rcs_slider_widget
db_upgraded
theysaidso_admin_options
rcs_slider_settings
can_compress_scripts

Browser metrics Passed 4 tests

GIGA Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲24514.13 ▼0.6211.89 ▲9.5045.96 ▲7.18
Dashboard /wp-admin2,233 ▲454.86 ▼0.02109.17 ▲4.7341.76 ▼0.22
Posts /wp-admin/edit.php2,119 ▲302.04 ▲0.0540.11 ▼1.2035.05 ▼0.95
Add New Post /wp-admin/post-new.php1,565 ▲3218.02 ▼5.19658.62 ▼19.6751.46 ▼1.68
Media Library /wp-admin/upload.php1,418 ▲334.25 ▲0.0097.39 ▼7.5742.55 ▲0.17
Add New Slider /wp-admin/post-new.php?post_type=rc_slider2,7994.2276.4645.38
GIGA Slider /wp-admin/edit.php?post_type=rc_slider1,2563.5345.8628.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/giga-slider/attachment.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; RC_Attachment has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_rcs_slider_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rc_slider
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/giga-slider/attachment.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; RC_Attachment has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rc_slider
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/giga-slider/widget.php+4
    Methods with the same name as their class will not be constructors in a future version of PHP; RCS_Slider_Widget has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=rc_slider
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in RCS_Slider_Widget is deprecated since version 4.3.0! Use __construct() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function rcs_get_caption_example_options() in wp-content/plugins/giga-slider/views/slides.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/giga-slider/views/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/giga-slider/views/codes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/giga-slider/js_functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/giga-slider/giga-slider.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (19 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Fully responsive & multiple layouts support), #2 (sliders samples), #3 (Examples..), #4 (create new slider screen (options page)), #5 (Main interface screen), #6 (Possibility to add slider in widgets right from widgets admin panel)
Please take inspiration from this readme.txt

giga-slider/giga-slider.php Passed 13 tests

This is the main PHP file of "GIGA Slider" version 1.0.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Responsive Slider for your wordpress blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin19,201 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript92,4201,30714,719
CSS5631302,699
PHP112614061,736
Markdown17029
JSON10015
XML3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.00
▷ Minimum class complexity7.00
▷ Maximum class complexity21.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 2.37MB with 1.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/camera/images/patterns/overlay8.png0.93KB0.10KB▼ 88.82%
screenshot-3.png841.46KB260.00KB▼ 69.10%
images/delete_16.png0.81KB0.69KB▼ 15.20%
lib/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.34KB0.21KB▼ 38.24%
screenshot-5.png58.31KB20.49KB▼ 64.86%