Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼145.62ms] Passed 4 tests
Server-side resources used by WSM Downloader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.32 ▲0.60 | 36.44 ▲16.70 |
Dashboard /wp-admin | 3.59 ▲0.54 | 46.34 ▲1.08 |
Posts /wp-admin/edit.php | 3.67 ▲0.56 | 42.74 ▼1.07 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.74 | 77.12 ▼577.84 |
Media Library /wp-admin/upload.php | 3.55 ▲0.55 | 30.32 ▼4.63 |
WSM Downloader /wp-admin/options-general.php?page=wsm_downloader | 3.70 | 35.14 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wsmds_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WSM Downloader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.96 ▲0.72 | 10.44 ▲2.45 | 47.06 ▼2.16 |
Dashboard /wp-admin | 2,975 ▲41 | 5.84 ▼0.13 | 134.26 ▼13.38 | 116.79 ▲4.31 |
Posts /wp-admin/edit.php | 2,753 ▲14 | 2.94 ▲0.25 | 67.87 ▲1.69 | 86.95 ▼8.23 |
Add New Post /wp-admin/post-new.php | 1,519 ▼96 | 18.39 ▼2.86 | 353.09 ▲66.89 | 108.37 ▲0.62 |
Media Library /wp-admin/upload.php | 1,851 ▲41 | 5.16 ▲0.17 | 149.18 ▼14.12 | 116.40 ▼6.45 |
WSM Downloader /wp-admin/options-general.php?page=wsm_downloader | 11,523 | 13.01 | 562.01 | 192.27 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- wsmds_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/themes/darkred.css.php
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/themes/lightred.css.php
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/style-fixed.css.php
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/themes/lightblue.css.php
- > /wp-content/plugins/wsm-downloader/assets/css/frontend/themes/darkblue.css.php
- 525× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wsmds_admin_options in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 223
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 258
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 229
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 58
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 254
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 125
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 103
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 31
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wsm-downloader/assets/css/frontend/themes/custom_template.php on line 169
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wsm_downloader
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wsm_downloader
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wsm_downloader
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- 22 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wsm_downloader
- > Console-api (warning) in wp-admin/js/common.min.js?ver=5.8.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
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
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
wsm-downloader/wsm_downloader.php 92% from 13 tests
This is the main PHP file of "WSM Downloader" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wsm-downloader.php" instead of "wsm_downloader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin20,542 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,310 | 1,204 | 10,204 |
CSS | 9 | 884 | 132 | 6,263 |
PHP | 20 | 1,136 | 206 | 4,072 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 23 | 88.46% |
▷ Anonymous functions | 3 | 11.54% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
36 PNG files occupy 0.35MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/admin/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
assets/img/twitter.png | 0.48KB | 0.46KB | ▼ 3.69% |
(invalid) assets/img/liveleak.png | 1.12KB | 0.00KB | ▼ 100.00% |
assets/css/admin/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
assets/img/darkblue.png | 26.26KB | 9.72KB | ▼ 63.00% |