Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.80MB] [CPU: ▼10.13ms] Passed 4 tests
An overview of server-side resources used by Enhanced Blocks - Page Builder Blocks for Gutenberg
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 49.98 ▲5.24 |
Dashboard /wp-admin | 4.38 ▲1.03 | 56.74 ▼7.50 |
Posts /wp-admin/edit.php | 4.49 ▲1.14 | 56.50 ▲5.76 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 59.13 ▼37.81 |
Media Library /wp-admin/upload.php | 4.30 ▲1.07 | 44.33 ▼0.46 |
Server storage [IO: ▲7.78MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/enhanced-blocks/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Enhanced Blocks - Page Builder Blocks for Gutenberg
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,038 ▲277 | 13.86 ▼0.77 | 10.04 ▲8.26 | 46.41 ▲1.90 |
Dashboard /wp-admin | 2,274 ▲74 | 5.89 ▲0.06 | 101.37 ▼17.73 | 38.02 ▼8.29 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.04 ▼0.13 | 37.16 ▲0.27 | 36.35 ▼1.32 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 21.27 ▲3.83 | 920.87 ▲213.99 | 36.72 ▼21.33 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.19 ▼0.03 | 99.00 ▼17.16 | 41.76 ▼8.60 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enhanced-blocks/src/social-share.php:188
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enhanced-blocks/src/post-grid.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
enhanced-blocks/enhanced-blocks.php 92% from 13 tests
This is the main PHP file of "Enhanced Blocks - Page Builder Blocks for Gutenberg" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 204 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin25,570 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 1 | 12 | 8,801 |
JSON | 2 | 0 | 0 | 7,588 |
PHP | 6 | 532 | 212 | 5,158 |
CSS | 17 | 1,532 | 60 | 3,747 |
Markdown | 1 | 52 | 0 | 191 |
JavaScript | 7 | 5 | 7 | 85 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,799)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 286)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.06 |
Average class complexity | 902.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 1,799.00 |
Average method complexity | 43.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 286.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 2 | 4.76% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 1.04MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon.png | 3.34KB | 2.25KB | ▼ 32.63% |
admin/img/heading.png | 2.19KB | 1.20KB | ▼ 45.19% |
src/assets/img/invers.png | 44.78KB | 15.49KB | ▼ 65.41% |
src/assets/img/bg-transparent.png | 3.01KB | 2.46KB | ▼ 18.28% |
admin/img/testimonial.png | 2.53KB | 1.71KB | ▼ 32.46% |