Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼31.81ms] Passed 4 tests
An overview of server-side resources used by SWS responsive slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 79.98 ▼2.64 |
Dashboard /wp-admin | 3.35 ▲0.05 | 141.89 ▲14.06 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 134.49 ▼7.71 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 69.43 ▼122.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 85.35 ▲5.48 |
Add New /wp-admin/post-new.php?post_type=sliders | 3.11 | 71.89 |
All Sliders /wp-admin/edit.php?post_type=sliders | 3.32 | 73.81 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SWS responsive slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲239 | 14.55 ▲0.50 | 4.42 ▼0.14 | 90.23 ▼7.77 |
Dashboard /wp-admin | 2,371 ▲186 | 6.50 ▲1.56 | 250.26 ▼5.60 | 91.92 ▼1.45 |
Posts /wp-admin/edit.php | 2,288 ▲196 | 3.42 ▲1.37 | 112.20 ▼124.57 | 111.16 ▼61.46 |
Add New Post /wp-admin/post-new.php | 1,393 ▲33 | 16.61 ▼0.95 | 1,186.01 ▼321.17 | 79.91 ▼13.21 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.25 ▲0.09 | 168.18 ▼39.01 | 109.10 ▼6.81 |
Add New /wp-admin/post-new.php?post_type=sliders | 1,849 | 3.61 | 168.70 | 104.62 |
All Sliders /wp-admin/edit.php?post_type=sliders | 1,261 | 3.35 | 84.58 | 64.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=sliders
- > Notice in wp-content/plugins/sws-responsive-sliders/sws-responsive-sliders.php+238
Undefined index: noncename_so_14445904
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sws-responsive-sliders/sws-responsive-sliders.php:56
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: slider, sliders, wordpress responsive slider, wordpress slider, easy slider...
sws-responsive-sliders/sws-responsive-sliders.php 92% from 13 tests
The main PHP file in "SWS responsive slider" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,367 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 85 | 481 | 906 |
PHP | 3 | 37 | 38 | 269 |
CSS | 2 | 41 | 22 | 192 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |