Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲6.79MB] [CPU: ▲74.30ms] 50% from 4 tests
An overview of server-side resources used by Ultimate Blocks - WordPress Blocks Plugin
Please have a look at the following items
- RAM: Total memory usage should be kept under 10MB (currently 10.34MB on /wp-admin/admin.php?page=ultimate-blocks-help)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.79MB on /wp-admin/admin.php?page=ultimate-blocks-help)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.26 ▲9.79 | 110.62 ▲71.41 |
Dashboard /wp-admin | 10.34 ▲7.04 | 117.35 ▲69.43 |
Posts /wp-admin/edit.php | 10.34 ▲6.98 | 128.77 ▲82.72 |
Add New Post /wp-admin/post-new.php | 11.91 ▲6.03 | 160.78 ▲73.62 |
Media Library /wp-admin/upload.php | 10.34 ▲7.11 | 134.59 ▲103.48 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 10.34 | 105.43 |
Help /wp-admin/admin.php?page=ultimate-blocks-help | 10.34 | 95.04 |
Server storage [IO: ▲13.84MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 554 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
UltimateBlocks_installDate |
ultimate_blocks_css_version |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
fs_accounts |
can_compress_scripts |
UltimateBlocks_review_notify |
... |
Browser metrics Passed 4 tests
Ultimate Blocks - WordPress Blocks Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲61 | 14.70 ▲0.27 | 1.60 ▼0.27 | 31.74 ▼12.57 |
Dashboard /wp-admin | 2,239 ▲59 | 5.57 ▼0.06 | 99.14 ▲11.47 | 64.63 ▲24.77 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 1.94 ▼0.18 | 39.62 ▲2.67 | 38.18 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,724 ▲198 | 32.72 ▲9.77 | 849.49 ▲210.06 | 88.49 ▲34.10 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.19 ▼0.02 | 99.92 ▼5.38 | 75.78 ▲31.69 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,111 | 1.65 | 29.14 | 29.45 |
Help /wp-admin/admin.php?page=ultimate-blocks-help | 1,475 | 8.92 | 297.15 | 99.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ultimate-blocks/library/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- fs_debug_mode
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_active_plugins
- UltimateBlocks_review_notify
- db_upgraded
- fs_accounts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/ultimate-blocks/admin/templates/menus/main-menu.php
- > /wp-content/plugins/ultimate-blocks/admin/partials/ultimate-blocks-admin-display.php
- > /wp-content/plugins/ultimate-blocks/public/partials/ultimate-blocks-public-display.php
- 83× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-blocks/src/blocks/review/block.php:198
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/ultimate-blocks/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-blocks/src/blocks/image-slider/block.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-blocks/src/blocks/divider/block.php:18
- > PHP Fatal error
Uncaught Error: Class 'Ultimate_Blocks\\includes\\pro_manager\\base\\Pro_Extension_Upsell' not found in wp-content/plugins/ultimate-blocks/includes/pro_manager/extensions/Expand_Extension.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Ultimate_Blocks\\includes\\common\\interfaces\\I_Plugin_Data' not found in wp-content/plugins/ultimate-blocks/admin/data/Block_Menu_Info_Data.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/ultimate-blocks/vendor/vlucas/phpdotenv/src/Store/StringStore.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/ultimate-blocks/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/ultimate-blocks/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-blocks/src/blocks/notification-box/block.php:22
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=ultimate-blocks-help
- > Other (warning) in unknown
/wp-admin/admin.php?page=ultimate-blocks-help 169 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in ultimate-blocks/assets to your readme.txt
ultimate-blocks/ultimate-blocks.php Passed 13 tests
The principal PHP file in "Ultimate Blocks - WordPress Blocks Plugin" v. 3.0.8 is loaded by WordPress automatically on each request
79 characters long description:
Custom Blocks for Bloggers and Marketers. Create Better Content With Gutenberg.
Code Analysis 97% 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
Good job! No executable or dangerous file extensions detected79,476 lines of code in 476 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 288 | 10,854 | 23,097 | 61,099 |
JavaScript | 25 | 1,645 | 1,548 | 10,520 |
JSON | 83 | 0 | 0 | 7,165 |
CSS | 73 | 66 | 15 | 410 |
Markdown | 4 | 81 | 0 | 251 |
SVG | 2 | 0 | 0 | 22 |
HTML | 1 | 0 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 33.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 30 | |
Interfaces | 11 | |
Traits | 3 | |
Classes | 154 | |
▷ Abstract classes | 7 | 4.55% |
▷ Concrete classes | 147 | 95.45% |
▷ Final classes | 40 | 27.21% |
Methods | 1,949 | |
▷ Static methods | 390 | 20.01% |
▷ Public methods | 1,427 | 73.22% |
▷ Protected methods | 55 | 2.82% |
▷ Private methods | 467 | 23.96% |
Functions | 440 | |
▷ Named functions | 347 | 78.86% |
▷ Anonymous functions | 93 | 21.14% |
Constants | 217 | |
▷ Global constants | 133 | 61.29% |
▷ Class constants | 84 | 38.71% |
▷ Public constants | 72 | 85.71% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 1.00MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/pro_manager/blocks/coupon/assets/coupon-ss.png | 16.46KB | 17.08KB | 0.00% |
admin/images/banners/help-bg.png | 3.31KB | 0.13KB | ▼ 96.02% |
library/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/pro_manager/assets/img/content-toggle-panel-block/searchSummary.png | 15.20KB | 4.01KB | ▼ 73.61% |
includes/pro_manager/assets/img/content-toggle-block/highlightColor.png | 18.78KB | 5.47KB | ▼ 70.89% |