10% superslider-show

Code Review | SuperSlider-Show

WordPress plugin SuperSlider-Show scored 10% from 54 tests.

About plugin

  • Plugin page: superslider-show
  • Plugin version: 2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5.1
  • WordPress version: 5.9.2
  • First release: Dec 11, 2008
  • Latest release: Jan 27, 2013
  • Number of updates: 56
  • Update frequency: every 27.1 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 42,895 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Compile error in wp-content/plugins/superslider-show/superslider-show.php+330
    'break' not in the 'loop' or 'switch' context

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.04ms] Passed 4 tests

Analyzing server-side resources used by SuperSlider-Show
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.01101.82 ▲51.02
Dashboard /wp-admin3.41 ▲0.0035.56 ▼9.11
Posts /wp-admin/edit.php3.64 ▲0.0041.06 ▼35.36
Add New Post /wp-admin/post-new.php6.88 ▼0.09145.50 ▼1,129.81
Media Library /wp-admin/upload.php3.29 ▲0.0026.26 ▼5.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 98 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by SuperSlider-Show
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1715.78 ▼0.206.09 ▲0.292.83 ▲0.05
Dashboard /wp-admin2,878 ▲176.14 ▼0.13132.88 ▼6.58159.41 ▼7.13
Posts /wp-admin/edit.php2,694 ▲243.23 ▼0.0163.86 ▼3.26138.09 ▼9.53
Add New Post /wp-admin/post-new.php1,661 ▼516.08 ▼5.18412.14 ▼40.15185.89 ▲26.03
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.03146.75 ▲1.04193.13 ▲3.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      'break' not in the 'loop' or 'switch' context in wp-content/plugins/superslider-show/superslider-show.php on line 330
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-show/admin/superslider-show-ui.php:25
    • > PHP Notice
      Undefined variable: ss_shortcode in wp-content/plugins/superslider-show/admin/superslider-show-box.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (![SlideShow sample](screenshot-1.png "SlideShow sample")), #2 (![SuperSlider-Show options screen](screenshot-2.png "SuperSlider-Show options screen")), #3 (![SuperSlider-Show MetaBox on post screen](screenshot-3.png "SuperSlider-Show MetaBox screen"))
The official readme.txt might help

superslider-show/superslider-show.php Passed 13 tests

The primary PHP file in "SuperSlider-Show" version 2.9 is used by WordPress to initiate all plugin functionality
117 characters long description:
Animated Gallery slideshow uses Mootools 1.2 javascript and Slideshow2 to replace wordpress gallery with a slideshow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,978 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172984302,793
CSS273206322,470
PHP34532022,239
PO File2228260476

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity180.00
▷ Minimum class complexity180.00
▷ Maximum class complexity180.00
Average method complexity5.84
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 PNG files occupy 0.70MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-data/superslider/ssShow/black/images/thumbnails_overlay_top.png0.37KB0.43KB0.00%
admin/img/black.png1.29KB0.67KB▼ 47.64%
plugin-data/superslider/ssShow/custom/images/thumbframe.png2.99KB2.05KB▼ 31.63%
plugin-data/superslider/ssShow/custom/images/controller_buttons.png2.17KB1.59KB▼ 26.54%
plugin-data/superslider/ssShow/thumbframe_edit.png28.83KB0.38KB▼ 98.67%