Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/blockons/blockons.php+82
Trying to get property 'blocks' of non-object
Server metrics [RAM: ▲0.89MB] [CPU: ▲2.75ms] Passed 4 tests
Server-side resources used by Blockons - Gutenberg blocks for WordPress and WooCommerce websites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲1.01 | 43.67 ▲2.69 |
Dashboard /wp-admin | 4.20 ▲0.90 | 49.80 ▲1.17 |
Posts /wp-admin/edit.php | 4.25 ▲0.90 | 54.68 ▲7.81 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 92.98 ▼0.69 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 40.76 ▲9.79 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.33 | 38.00 |
Blockons Settings /wp-admin/options-general.php?page=blockons-settings | 4.20 | 43.31 |
Server storage [IO: ▲7.87MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 349 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
blockons_options |
widget_recent-comments |
widget_recent-posts |
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_debug_mode |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Blockons - Gutenberg blocks for WordPress and WooCommerce websites
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲249 | 13.75 ▼0.88 | 17.34 ▲15.36 | 19.74 ▼30.19 |
Dashboard /wp-admin | 2,253 ▲65 | 4.81 ▼1.07 | 107.50 ▼1.96 | 47.28 ▲2.39 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.05 ▲0.01 | 37.15 ▼0.25 | 37.23 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6,752 ▲5,231 | 27.54 ▲4.02 | 917.18 ▲309.75 | 39.82 ▼9.93 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.24 ▲0.02 | 95.62 ▼5.81 | 44.45 ▲0.04 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,079 | 1.84 | 23.89 | 28.15 |
Blockons Settings /wp-admin/options-general.php?page=blockons-settings | 1,003 | 2.72 | 81.80 | 61.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/blockons/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 12 options
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
- can_compress_scripts
- fs_active_plugins
- blockons_plugin_version
- blockons_default_options
- db_upgraded
- widget_recent-posts
- fs_accounts
- ...
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
Good news, no errors were detected
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
- 61× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/blockons/build/video-slider/template.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blockons/build/image-carousel/template.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/blockons/build/image-carousel/template.php:32
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/blockons/build/testimonials/template.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blockons/build/image-carousel/template.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/blockons/build/slider/template.php:30
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/blockons/build/testimonials/template.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/blockons/build/testimonials/template.php on line 11
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/blockons/build/image-carousel/template.php on line 17
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/blockons/build/image-carousel/template.php on line 15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gutenberg, page builder, editor blocks, woocommerce, slider
blockons/blockons.php Passed 13 tests
"Blockons - Gutenberg blocks for WordPress and WooCommerce websites" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
WordPress & WooCommerce editor blocks for you to use when building your website
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin62,705 lines of code in 289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 166 | 8,193 | 17,841 | 34,495 |
JavaScript | 46 | 4,601 | 6,755 | 17,186 |
CSS | 59 | 2,524 | 185 | 8,975 |
JSON | 17 | 0 | 0 | 2,033 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 85.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,301 | |
▷ Static methods | 201 | 15.45% |
▷ Public methods | 908 | 69.79% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 376 | 28.90% |
Functions | 129 | |
▷ Named functions | 127 | 98.45% |
▷ Anonymous functions | 2 | 1.55% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/square.png | 0.92KB | 0.09KB | ▼ 89.75% |
assets/images/43rectangle.png | 0.91KB | 0.09KB | ▼ 89.73% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/169panoramic.png | 1.19KB | 0.11KB | ▼ 90.83% |
assets/images/placeholder.png | 25.58KB | 11.78KB | ▼ 53.95% |