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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.00 ▼36.81 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.78 ▼40.02 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 6.55 ▼44.32 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.66 ▼95.57 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.90 ▼27.46 |
Multi Slider /wp-admin/admin.php?page=mslider-settings | 2.12 | 7.03 |
Add Slider /wp-admin/admin.php?page=mslider-add-slider | 2.12 | 6.52 |
Click Tracking /wp-admin/admin.php?page=mslider-tracking | 2.12 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 13.86 ▼0.52 | 6.41 ▲4.48 | 42.92 ▲2.65 |
Dashboard /wp-admin | 2,254 ▲66 | 4.96 ▼0.93 | 115.21 ▲8.17 | 44.64 ▲2.53 |
Posts /wp-admin/edit.php | 2,137 ▲51 | 2.48 ▲0.49 | 36.02 ▼0.32 | 31.23 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,637 ▲118 | 23.51 ▲0.17 | 635.57 ▼68.24 | 50.72 ▼5.94 |
Media Library /wp-admin/upload.php | 1,439 ▲57 | 4.32 ▲0.12 | 96.85 ▼4.03 | 42.05 ▼3.83 |
Multi Slider /wp-admin/admin.php?page=mslider-settings | 827 | 2.23 | 29.41 | 23.53 |
Add Slider /wp-admin/admin.php?page=mslider-add-slider | 989 | 1.97 | 28.44 | 26.40 |
Click Tracking /wp-admin/admin.php?page=mslider-tracking | 841 | 2.23 | 26.89 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 197 | 48 | 759 |
CSS | 2 | 8 | 0 | 39 |
JavaScript | 1 | 0 | 5 | 1 |
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 code | 0.33 |
Average class complexity | 10.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 36 | 87.80% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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