Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/sw-slider-responsive/sw-slider-widget.php+57
Methods with the same name as their class will not be constructors in a future version of PHP; sw_slider_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼50.42ms] Passed 4 tests
A check of server-side resources used by SW Slider Responsive
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 7.59 ▼34.47 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.11 ▼42.59 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.08 ▼39.14 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 11.47 ▼85.46 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.78 ▼21.69 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_sw-slider-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SW Slider Responsive
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.22 ▼1.40 | 5.37 ▲3.64 | 48.06 ▲6.86 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.92 | 101.70 ▼1.50 | 40.18 ▼0.76 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.01 | 42.10 ▲6.98 | 35.33 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.43 ▲0.41 | 650.58 ▲48.42 | 63.70 ▲13.90 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.25 ▲0.02 | 97.03 ▼9.65 | 49.47 ▲5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in sw_slider_Widget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_sw-slider-widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sw-slider-responsive/themes/default.php
- > /wp-content/plugins/sw-slider-responsive/themes/theme1.php
- > /wp-content/plugins/sw-slider-responsive/themes/theme2.php
- 19× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: list in wp-content/plugins/sw-slider-responsive/themes/default.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sw-slider-responsive/sw-slider-widget.php:13
- > PHP Notice
Undefined variable: include in wp-content/plugins/sw-slider-responsive/themes/theme2.php on line 3
- > PHP Notice
Undefined variable: include in wp-content/plugins/sw-slider-responsive/themes/theme1.php on line 3
- > PHP Notice
Undefined variable: list in wp-content/plugins/sw-slider-responsive/themes/theme1.php on line 5
- > PHP Notice
Undefined variable: hover in wp-content/plugins/sw-slider-responsive/themes/theme1.php on line 58
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/sw-slider-responsive/themes/default.php on line 5
- > PHP Notice
Undefined variable: interval in wp-content/plugins/sw-slider-responsive/themes/theme1.php on line 57
- > PHP Notice
Undefined variable: list in wp-content/plugins/sw-slider-responsive/themes/theme2.php on line 5
- > PHP Notice
Undefined variable: interval in wp-content/plugins/sw-slider-responsive/themes/theme2.php on line 64
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (33 tag instead of maximum 10)
sw-slider-responsive/sw-slider-widget.php 92% from 13 tests
The principal PHP file in "SW Slider Responsive" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sw-slider-responsive.php" instead of "sw-slider-widget.php")
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
Good job! No executable or dangerous file extensions detected2,308 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 551 | 326 | 1,417 |
PHP | 4 | 74 | 46 | 479 |
CSS | 3 | 20 | 16 | 412 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 10.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 1 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/img/bt-left.png | 1.00KB | 0.18KB | ▼ 81.91% |
themes/img/bt-right.png | 0.99KB | 0.18KB | ▼ 81.83% |