Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.76ms] Passed 4 tests
Server-side resources used by Gutenberg Blocks by WordPress Download Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.08 ▼4.89 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.68 ▼1.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 41.31 ▼5.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 103.82 ▲11.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 32.06 ▲1.41 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Gutenberg Blocks by WordPress Download Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.04 ▼0.31 | 1.75 ▲0.08 | 38.31 ▼0.05 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.03 | 87.21 ▼7.22 | 40.48 ▼3.83 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▲0.01 | 37.03 ▲0.98 | 32.25 ▼6.05 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▲0.16 | 617.95 ▼37.55 | 61.52 ▲14.94 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.16 ▼0.02 | 95.55 ▼2.18 | 41.80 ▼1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/tpls/card-slider.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: colorrgb in wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/tpls/card-slider.php on line 36
- > PHP Notice
Undefined variable: color in wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/tpls/card-slider.php on line 35
- > PHP Notice
Undefined variable: slides in wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/tpls/card-slider.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wpdm-gutenberg-blocks/libs/blocks/tpls/card-slider.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDM\\Block\\libs\\add_action() in wp-content/plugins/wpdm-gutenberg-blocks/libs/RestAPI.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDM\\Block\\plugins_url() in wp-content/plugins/wpdm-gutenberg-blocks/wpdm-gutenberg-blocks.php:20
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires at least: Version not formatted correctly
- Donate link: Please fix this invalid URI: ""
wpdm-gutenberg-blocks/wpdm-gutenberg-blocks.php Passed 13 tests
The main PHP script in "Gutenberg Blocks by WordPress Download Manager" version 2.2.3 is automatically included on every request by WordPress
47 characters long description:
Gutenberg Blocks for WordPress Download Manager
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,342 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 394 | 162 | 2,339 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 73 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin