10% multi-slider

Code Review | Multi Slider

WordPress plugin Multi Slider scored10%from 54 tests.

About plugin

  • Plugin page: multi-slider
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2013
  • Latest release: Oct 1, 2013
  • Number of updates: 16
  • Update frequency: every 14.6 days
  • Top authors: Columcille (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,858 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/multi-slider/multi-slider.widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; Multi_Slider_Widget has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.18ms] Passed 4 tests

A check of server-side resources used by Multi Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.00 ▼36.81
Dashboard /wp-admin2.12 ▼1.185.78 ▼40.02
Posts /wp-admin/edit.php2.12 ▼1.246.55 ▼44.32
Add New Post /wp-admin/post-new.php2.12 ▼3.775.66 ▼95.57
Media Library /wp-admin/upload.php2.12 ▼1.116.90 ▼27.46
Multi Slider /wp-admin/admin.php?page=mslider-settings2.127.03
Add Slider /wp-admin/admin.php?page=mslider-add-slider2.126.52
Click Tracking /wp-admin/admin.php?page=mslider-tracking2.126.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_multi_slider_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Multi Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22313.86 ▼0.526.41 ▲4.4842.92 ▲2.65
Dashboard /wp-admin2,254 ▲664.96 ▼0.93115.21 ▲8.1744.64 ▲2.53
Posts /wp-admin/edit.php2,137 ▲512.48 ▲0.4936.02 ▼0.3231.23 ▼3.22
Add New Post /wp-admin/post-new.php1,637 ▲11823.51 ▲0.17635.57 ▼68.2450.72 ▼5.94
Media Library /wp-admin/upload.php1,439 ▲574.32 ▲0.1296.85 ▼4.0342.05 ▼3.83
Multi Slider /wp-admin/admin.php?page=mslider-settings8272.2329.4123.53
Add Slider /wp-admin/admin.php?page=mslider-add-slider9891.9728.4426.40
Click Tracking /wp-admin/admin.php?page=mslider-tracking8412.2326.8928.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/multi-slider/multi-slider.widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; Multi_Slider_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_multi_slider_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mslider-tracking
    • > Deprecated in wp-content/plugins/multi-slider/multi-slider.widget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; Multi_Slider_Widget has a deprecated constructor

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multi-slider/multi-slider.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multi-slider/multi-slider.widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multi-slider/multi-slider.admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: image, header, slider, text

multi-slider/multi-slider.php Passed 13 tests

The main PHP script in "Multi Slider" version 1.3.1 is automatically included on every request by WordPress
68 characters long description:
Provides a simple method to add one or more sliders to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin799 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1119748759
CSS28039
JavaScript1051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.82
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods41
▷ Static methods3687.80%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected