10% super-slider

Code Review | SUPER RESPONSIVE SLIDER

WordPress plugin SUPER RESPONSIVE SLIDER scored 10% from 54 tests.

About plugin

  • Plugin page: super-slider
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.6
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Sep 17, 2013
  • Number of updates: 9
  • Update frequency: every 24.6 days
  • Top authors: extendyourweb (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active / 25,319 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
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/super-slider/init.php+520
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_super has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼51.42ms] Passed 4 tests

Analyzing server-side resources used by SUPER RESPONSIVE SLIDER
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.245.06 ▼36.29
Dashboard /wp-admin2.24 ▼1.075.80 ▼44.19
Posts /wp-admin/edit.php2.24 ▼1.127.70 ▼40.91
Add New Post /wp-admin/post-new.php2.24 ▼3.658.85 ▼84.28
Media Library /wp-admin/upload.php2.24 ▼0.995.88 ▼25.73
SUPER SLIDER /wp-admin/options-general.php?page=super2.245.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 201 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_wp_super
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SUPER RESPONSIVE SLIDER
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.63 ▼0.746.25 ▲4.1536.34 ▼13.87
Dashboard /wp-admin2,213 ▲255.88 ▲1.00108.03 ▼5.0742.57 ▼3.70
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0438.46 ▼2.4934.82 ▼1.74
Add New Post /wp-admin/post-new.php1,517 ▼1117.74 ▼0.57639.99 ▲30.2844.53 ▼7.42
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.0498.81 ▼0.9941.74 ▼2.39
SUPER SLIDER /wp-admin/options-general.php?page=super9682.0128.5933.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/super-slider/init.php+520
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_super has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_wp_super
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=super
    • > Deprecated in wp-content/plugins/super-slider/init.php+520
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_super has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=super
    • > Deprecated in wp-content/plugins/super-slider/init.php+869
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=super
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in wp_super is deprecated since version 4.3.0! Use __construct() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=super
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/super-slider/css/style.php
    • > /wp-content/plugins/super-slider/template/panel.php
    • > /wp-content/plugins/super-slider/js/template/panel.php
    • > /wp-content/plugins/super-slider/js/css/style.php
  • 314× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/template/panel.php on line 112
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/js/template/panel.php on line 98
    • > PHP Notice
      Undefined variable: font in wp-content/plugins/super-slider/template/panel.php on line 453
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/js/template/panel.php on line 112
    • > PHP Notice
      Undefined variable: sizethumbnail in wp-content/plugins/super-slider/template/panel.php on line 644
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/template/panel.php on line 107
    • > PHP Notice
      Undefined variable: sizethumbnail in wp-content/plugins/super-slider/template/panel.php on line 644
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/template/panel.php on line 485
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/template/panel.php on line 440
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/super-slider/template/panel.php on line 109

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

super-slider/init.php 85% from 13 tests

The main PHP script in "SUPER RESPONSIVE SLIDER" version 1.4 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("super-slider.php" instead of "init.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 356 characters long)

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
There were no executable files found in this plugin7,044 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45472873,554
PHP71,4114962,390
CSS5888814
HTML51270286

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity54.00
▷ Minimum class complexity4.00
▷ Maximum class complexity104.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
124 PNG files occupy 0.84MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
skins/violet/images/nav-bg.png16.32KB7.33KB▼ 55.09%
skins/dark-room/images/button1/arrow-left-active.png3.61KB2.16KB▼ 40.12%
skins/plain/images/arrow-left.png0.73KB0.60KB▼ 17.58%
js/template/hs.png2.62KB7.54KB0.00%
skins/dark-room/images/thumb_bg.png1.40KB1.41KB0.00%