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: ▲3.00MB] [CPU: ▲11.35ms] Passed 4 tests
A check of server-side resources used by Magical Blocks – Premium Gutenberg Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.41 ▲1.95 | 52.23 ▲6.82 |
Dashboard /wp-admin | 6.76 ▲3.46 | 68.98 ▲19.30 |
Posts /wp-admin/edit.php | 6.84 ▲3.49 | 68.73 ▲19.79 |
Add New Post /wp-admin/post-new.php | 9.07 ▲3.18 | 106.83 ▼0.51 |
Media Library /wp-admin/upload.php | 6.65 ▲3.42 | 57.08 ▲22.27 |
Server storage [IO: ▲14.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 555 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Magical Blocks – Premium Gutenberg Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,094 ▲337 | 20.39 ▲6.02 | 10.70 ▲8.40 | 39.86 ▼6.36 |
Dashboard /wp-admin | 2,381 ▲193 | 9.91 ▲5.04 | 231.90 ▲131.92 | 42.67 ▼2.13 |
Posts /wp-admin/edit.php | 2,339 ▲247 | 6.81 ▲4.76 | 84.01 ▲44.53 | 29.36 ▼9.36 |
Add New Post /wp-admin/post-new.php | 6,652 ▲5,117 | 30.06 ▲6.74 | 940.82 ▲265.29 | 46.76 ▼8.35 |
Media Library /wp-admin/upload.php | 1,442 ▲57 | 7.21 ▲3.03 | 117.29 ▲5.00 | 50.53 ▲4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 132× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magical-blocks/includes/block-hvr-card.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magical-blocks/includes/block-carousel.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Field/Field.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Field_Icon\\Providers\\Icon_Provider_Interface' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-field-icon/core/Providers/Dashicons_Provider.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Field/Scripts_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/magical-blocks/vendor/htmlburger/carbon-fields/core/Datastore/Term_Meta_Datastore.php:10
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please a description for screenshot #3 in magical-blocks/assets to your readme.txt
- Tags: There are too many tags (12 tag instead of maximum 10)
magical-blocks/magical-blocks.php Passed 13 tests
The main file in "Magical Blocks – Premium Gutenberg Blocks" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
140 characters long description:
One of the best block addons for Gutenberg editor. Now you can add carousel, slider, card, banner and many more blocks in pages and widgets.
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 detected44,888 lines of code in 473 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 188 | 7,259 | 11,258 | 16,842 |
PHP | 170 | 2,977 | 7,430 | 10,809 |
SVG | 3 | 0 | 12 | 9,299 |
CSS | 17 | 277 | 1,205 | 2,629 |
PO File | 29 | 902 | 1,115 | 2,432 |
Sass | 51 | 397 | 3 | 2,052 |
JSON | 10 | 0 | 0 | 674 |
Markdown | 5 | 46 | 0 | 151 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 140 | |
▷ Abstract classes | 11 | 7.86% |
▷ Concrete classes | 129 | 92.14% |
▷ Final classes | 3 | 2.33% |
Methods | 983 | |
▷ Static methods | 114 | 11.60% |
▷ Public methods | 810 | 82.40% |
▷ Protected methods | 166 | 16.89% |
▷ Private methods | 7 | 0.71% |
Functions | 116 | |
▷ Named functions | 21 | 18.10% |
▷ Anonymous functions | 95 | 81.90% |
Constants | 42 | |
▷ Global constants | 13 | 30.95% |
▷ Class constants | 29 | 69.05% |
▷ Public constants | 29 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/img_148071.png | 26.19KB | 9.98KB | ▼ 61.91% |