82% superslider

Code Review | SuperSlider

WordPress plugin SuperSlider scored 82% from 54 tests.

About plugin

  • Plugin page: superslider
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5
  • WordPress version: 5.8.1
  • First release: Jun 9, 2008
  • Latest release: Dec 24, 2012
  • Number of updates: 65
  • Update frequency: every 26.1 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 19,696 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼157.54ms] Passed 4 tests

This is a short check of server-side resources used by SuperSlider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.06 ▲0.3440.83 ▲16.36
Dashboard /wp-admin3.35 ▲0.3052.36 ▲0.38
Posts /wp-admin/edit.php3.41 ▲0.3047.80 ▼0.16
Add New Post /wp-admin/post-new.php5.66 ▲0.23101.43 ▼624.33
Media Library /wp-admin/upload.php3.24 ▲0.2336.49 ▼6.06
SuperSlider /wp-admin/admin.php?page=superslider_options3.3431.34
SS -- Modules /wp-admin/admin.php?page=superslider-modules3.6132.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 163 new files
Database: no new tables, 2 new options
New WordPress options
ssMod_options
ssBase_options

Browser metrics Passed 4 tests

An overview of browser requirements for SuperSlider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲28619.28 ▲4.0829.36 ▲16.6958.21 ▲11.98
Dashboard /wp-admin2,993 ▲625.97 ▼0.01156.73 ▼1.53137.85 ▲34.89
Posts /wp-admin/edit.php2,787 ▲482.71 ▼0.0162.81 ▼26.3391.16 ▼5.03
Add New Post /wp-admin/post-new.php1,736 ▲13221.14 ▲2.61432.48 ▲37.69119.81 ▲10.60
Media Library /wp-admin/upload.php1,781 ▼265.02 ▼0.01140.59 ▼13.28139.77 ▲19.90
SuperSlider /wp-admin/admin.php?page=superslider_options2,0193.1381.0992.46
SS -- Modules /wp-admin/admin.php?page=superslider-modules3,4782.9084.8576.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superslider-modules
    • > Notice in wp-content/plugins/superslider/admin/superslider-modules-ui.php+1120
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider/admin/superslider-ui.php:26
    • > PHP Notice
      Undefined variable: acc_elemtag in wp-content/plugins/superslider/admin/superslider-acc-box.php on line 63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider/admin/superslider-modules-ui.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/superslider/superslider.php:109
    • > PHP Notice
      Undefined variable: acc_togtag in wp-content/plugins/superslider/admin/superslider-acc-box.php on line 62
    • > PHP Notice
      Undefined variable: acc_togtag in wp-content/plugins/superslider/admin/superslider-scroll-box.php on line 41
    • > PHP Notice
      Undefined variable: acc_elemtag in wp-content/plugins/superslider/admin/superslider-scroll-box.php on line 42

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superslider-modules
    • > Javascript (severe) in unknown
    /wp-content/plugins/superslider/admin/js/jquery.tooltip.min.js?ver=2 13:62 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
    • > GET request to /wp-admin/admin.php?page=superslider_options
    • > Network (severe)
    wp-content/plugins/superslider-menu/admin/img/default.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superslider-modules
    • > Network (severe)
    wp-content/plugins/superslider-menu/admin/img/logo_superslider.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=superslider_options
    • > Network (severe)
    wp-content/plugins/superslider-menu/admin/img/blue.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=superslider_options
    • > Network (severe)
    wp-content/plugins/superslider-menu/admin/img/black.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=superslider_options
    • > Network (severe)
    wp-content/plugins/superslider-menu/admin/img/custom.png - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superslider-modules
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).tooltip is not a function" "TypeError: $(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/superslider/admin/js/superslider-admin-tool.js?ver=2:5:19)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1:2:30340)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=superslider-modules
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.8.1 1:31702 Uncaught TypeError: $(...).tooltip is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (![SuperSlider-Base options screen](screenshot-1.png "SuperSlider-Base options screen")) image not found
You can take inspiration from this readme.txt

superslider/superslider.php 92% from 13 tests

Analyzing the main PHP file in "SuperSlider" version 1.6
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,647 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript206295534,072
PHP54732932,322
CSS211491771,698
HTML41020482
Markdown229059
YAML20014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity136.00
▷ Minimum class complexity136.00
▷ Maximum class complexity136.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
69 compressed PNG files occupy 0.55MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-data/superslider/ssBase/blue/mBox/themes/mBoxTooltip-BlackGradient-Sprites.png0.22KB0.14KB▼ 37.28%
js/mForm/Source/assets/flags/US.png0.65KB0.65KB▼ 0.75%
js/mForm/Demo/flags/EG.png0.50KB0.61KB0.00%
js/mForm/Source/assets/flags/AU.png0.73KB0.75KB0.00%
admin/img/default.png1.45KB0.92KB▼ 36.82%