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.01MB] [CPU: ▼6.16ms] Passed 4 tests
Analyzing server-side resources used by Easy Digital Downloads - Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.24 ▼3.09 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.34 ▼2.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.29 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.40 ▼16.14 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.59 ▲5.07 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Digital Downloads - Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 14.74 ▲0.46 | 1.47 ▼0.31 | 36.66 ▼14.10 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.06 | 107.41 ▲4.75 | 38.33 ▼4.10 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▲0.01 | 42.56 ▲1.12 | 36.30 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.11 ▲5.55 | 637.71 ▼15.31 | 65.72 ▼3.77 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.09 | 92.22 ▼7.30 | 42.98 ▼2.05 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-blocks/includes/class-taxonomies.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-blocks/includes/functions.php:455
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/edd-blocks/includes/class-shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-blocks/includes/blocks/downloads/index.php:151
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-blocks/includes/class-assets.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: edd-blocks, easy digital downloads blocks, easy digital downloads, edd blocks, editor...
edd-blocks/edd-blocks.php Passed 13 tests
"Easy Digital Downloads - Blocks" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Display Downloads, Categories and Tags using the new WordPress editor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,390 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 11,840 |
PHP | 9 | 361 | 666 | 1,103 |
JavaScript | 15 | 201 | 107 | 894 |
CSS | 3 | 59 | 0 | 280 |
Sass | 6 | 38 | 37 | 261 |
Markdown | 1 | 10 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 2 | 28.57% |
Methods | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 46 | 79.31% |
▷ Protected methods | 7 | 12.07% |
▷ Private methods | 5 | 8.62% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG files were detected