82% superslider-menu

Code Review | SuperSlider-Menu

WordPress plugin SuperSlider-Menu scored 82% from 54 tests.

About plugin

  • Plugin page: superslider-menu
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.4.2
  • WordPress version: 5.9.2
  • First release: Dec 11, 2008
  • Latest release: Dec 22, 2012
  • Number of updates: 11
  • Update frequency: every 134.0 days
  • Top authors: Daiv (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 29,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
This plugin's installer ran successfully

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

Analyzing server-side resources used by SuperSlider-Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0955.62 ▲5.96
Dashboard /wp-admin3.45 ▲0.0533.39 ▼0.00
Posts /wp-admin/edit.php3.68 ▲0.0439.60 ▼3.08
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.34 ▼1,164.09
Media Library /wp-admin/upload.php3.33 ▲0.0423.88 ▲0.34
SuperSlider-Menu /wp-admin/options-general.php?page=superslider-menu3.4923.21

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 1 new option
New WordPress options
ssMenu_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SuperSlider-Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,856 ▲11219.22 ▲3.1816.90 ▲10.022.73 ▲0.42
Dashboard /wp-admin2,897 ▲366.40 ▲0.01120.19 ▼13.08156.29 ▼2.01
Posts /wp-admin/edit.php2,693 ▼13.43 ▼0.1261.18 ▼2.10141.64 ▼3.13
Add New Post /wp-admin/post-new.php1,664 ▲316.64 ▼5.95415.53 ▼15.60161.57 ▲8.58
Media Library /wp-admin/upload.php1,706 ▲85.73 ▼0.02143.34 ▲5.87189.97 ▲4.39
SuperSlider-Menu /wp-admin/options-general.php?page=superslider-menu2,4003.2575.71152.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=superslider-menu
    • > Notice in wp-content/plugins/superslider-menu/admin/superslider-menu-ui.php+606
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/superslider-menu/superslider-menu-widget.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-menu/admin/superslider-menu-ui.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/superslider-menu/superslider-menu.php:296

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=superslider-menu
    • > Javascript (severe) in unknown
    /wp-content/plugins/superslider-menu/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-menu
    • > 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.9.2 1:31592 "jQuery.Deferred exception: $(...).tooltip is not a function" "TypeError: $(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/superslider-menu/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.9.2: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.9.2:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=superslider-menu
    • > 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.9.2 1:31702 Uncaught TypeError: $(...).tooltip is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (![SuperSlider-Menu options screen](screenshot-1.png "SuperSlider-Menu")), #2 (![SuperSlider-Menu ](screenshot-2.png "SuperSlider-Menu Widget options")), #3 (![SuperSlider-Menu ](screenshot-3.png "SuperSlider-Menu options screen"))
You can take inspiration from this readme.txt

superslider-menu/superslider-menu.php 92% from 13 tests

The main PHP file in "SuperSlider-Menu" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

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,120 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP43401241,266
JavaScript941851,173
CSS610627681

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin-data/superslider/ssMenu/custom/nav_arrows.png2.05KB1.30KB▼ 36.68%
plugin-data/superslider/ssMenu/blue/tooltips/tip_edit.png32.29KB1.99KB▼ 93.83%
screenshot-1.png27.39KB8.73KB▼ 68.13%
admin/img/black.png1.29KB0.67KB▼ 47.64%
plugin-data/superslider/ssMenu/black/tooltips/tip-sprite.png2.81KB2.08KB▼ 25.92%