10% superslider-login

Code Review | SuperSlider-Login

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

About plugin

  • Plugin page: superslider-login
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 18, 2009
  • Latest release: Feb 25, 2013
  • Number of updates: 52
  • Update frequency: every 25.9 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active / 48,037 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/superslider-login/superslider-login.php+161
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.07MB] [CPU: ▼146.62ms] Passed 4 tests

An overview of server-side resources used by SuperSlider-Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.00 ▲0.1624.73 ▼2.51
Dashboard /wp-admin3.12 ▲0.0643.04 ▲0.94
Posts /wp-admin/edit.php3.21 ▲0.1034.61 ▼1.91
Add New Post /wp-admin/post-new.php5.49 ▲0.0572.17 ▼583.00
Media Library /wp-admin/upload.php3.07 ▲0.0630.50 ▲2.38
SuperSlider-Login /wp-admin/options-general.php?page=superslider-login3.1922.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 1 new option
New WordPress options
ssLogin_options

Browser metrics Passed 4 tests

A check of browser resources used by SuperSlider-Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,295 ▲64419.07 ▲3.4418.94 ▲13.4177.96 ▲2.25
Dashboard /wp-admin2,935 ▲396.11 ▼0.07115.14 ▼16.08168.53 ▼1.03
Posts /wp-admin/edit.php2,742 ▲53.12 ▼0.1062.28 ▲0.57135.67 ▼4.25
Add New Post /wp-admin/post-new.php3,710 ▼2619.02 ▲0.12488.67 ▼4.77211.99 ▲49.25
Media Library /wp-admin/upload.php1,754 ▲55.57 ▲0.08171.45 ▲30.46205.56 ▲13.09
SuperSlider-Login /wp-admin/options-general.php?page=superslider-login2,3163.0173.18138.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=superslider-login
    • > Notice in wp-content/plugins/superslider-login/admin/superslider-login-ui.php+560
    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
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-login/admin/superslider-login-ui.php:26
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superslider-login/widget_panel.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/superslider-login/login_panel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/superslider-login/superslider-login.php:334

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=superslider-login
    • > Javascript (severe) in unknown
    /wp-content/plugins/superslider-login/admin/js/jquery.tooltip.min.js?ver=2 13:62 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
    • > GET request to /wp-admin/options-general.php?page=superslider-login
    • > 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-login/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
    • > GET request to /wp-admin/options-general.php?page=superslider-login
    • > 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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
The official readme.txt might help

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

Analyzing the main PHP file in "SuperSlider-Login" version 3.2
121 characters long description:
A slidein login panel or widget panel. Theme based, animated, automatic user detection , uses mootools 1.4.5 java script.

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
Good job! No executable or dangerous file extensions detected3,273 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS101071081,111
JavaScript418611,020
PHP418498938
PO File18795204

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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 Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-data/superslider/ssLogin/custom/images/vert_button.png2.91KB1.90KB▼ 34.58%
plugin-data/superslider/ssLogin/button_edit.png58.48KB1.44KB▼ 97.53%
plugin-data/superslider/ssLogin/blue/images/vert_button.png2.82KB1.87KB▼ 33.50%
plugin-data/superslider/ssLogin/black/images/vert_button.png2.69KB1.89KB▼ 29.81%
admin/img/logo_superslider.png4.67KB2.61KB▼ 44.16%