Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.18MB] [CPU: ▼285.20ms] Passed 4 tests
This is a short check of server-side resources used by Ultimate Gutenberg - Custom Block Templates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.26 ▲4.74 | 73.12 ▲23.50 |
Dashboard /wp-admin | 8.28 ▲4.87 | 56.65 ▲23.65 |
Posts /wp-admin/edit.php | 8.28 ▲4.63 | 57.16 ▲17.14 |
Add New Post /wp-admin/post-new.php | 9.46 ▲2.48 | 77.06 ▼1,198.38 |
Media Library /wp-admin/upload.php | 8.28 ▲4.98 | 41.78 ▲16.93 |
Freemius Debug [v.2.3.1] /wp-admin/admin.php?page=freemius | 8.28 | 41.24 |
Server storage [IO: ▲19.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 1,895 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_gdpr |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ultimate Gutenberg - Custom Block Templates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,996 ▲274 | 16.83 ▲0.85 | 9.72 ▲3.91 | 2.85 ▲0.30 |
Dashboard /wp-admin | 2,969 ▲111 | 6.42 ▲0.03 | 122.00 ▼11.86 | 174.02 ▲12.55 |
Posts /wp-admin/edit.php | 2,767 ▲76 | 3.47 ▲0.04 | 66.77 ▲4.95 | 159.43 ▲16.91 |
Add New Post /wp-admin/post-new.php | 1,701 ▲11 | 17.13 ▼3.66 | 438.31 ▼5.15 | 159.74 ▲0.18 |
Media Library /wp-admin/upload.php | 1,771 ▲73 | 5.80 ▲0.06 | 137.83 ▲10.70 | 211.98 ▲24.24 |
Freemius Debug [v.2.3.1] /wp-admin/admin.php?page=freemius | 1,494 | 2.70 | 56.84 | 132.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_active_plugins
- fs_gdpr
- fs_debug_mode
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/ultimate-gutenberg/freemius/templates/ajax-loader.php
- > /wp-content/plugins/ultimate-gutenberg/admin/partials/ultimate-gutenberg-admin-display.php
- > /wp-content/plugins/ultimate-gutenberg/public/partials/ultimate-gutenberg-public-display.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ultimate-gutenberg/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ultimate-gutenberg/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
require(): Failed opening required 'ULTIMATE_GUTENBERG_PATH/admin/plugin-info.php' (include_path='.:/usr/share/php') in wp-content/plugins/ultimate-gutenberg/admin/class-ultimate-gutenberg-admin.php on line 255
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-gutenberg/freemius/templates/account/partials/addon.php on line 7
- > PHP Warning
require(ULTIMATE_GUTENBERG_PATH/admin/plugin-info.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-gutenberg/admin/class-ultimate-gutenberg-admin.php on line 255
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/ultimate-gutenberg/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-gutenberg/admin/plugin-info.php:8
- > PHP Warning
Use of undefined constant ULTIMATE_GUTENBERG_PATH - assumed 'ULTIMATE_GUTENBERG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-gutenberg/admin/class-ultimate-gutenberg-admin.php on line 255
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/ultimate-gutenberg/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ultimate-gutenberg/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
3 plugin tags: classic editor, gutenberg, custom block
ultimate-gutenberg/ultimate-gutenberg.php Passed 13 tests
The main PHP file in "Ultimate Gutenberg - Custom Block Templates" ver. 2.5.1 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
Improve defalut Gutenberg Blocks and add tons of beatiful custom blocks.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin167,682 lines of code in 1,827 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 57,600 |
PHP | 119 | 6,984 | 16,269 | 29,599 |
YAML | 4 | 0 | 0 | 23,764 |
PO File | 13 | 7,168 | 10,952 | 15,785 |
SVG | 1,602 | 0 | 24 | 15,346 |
JavaScript | 20 | 972 | 549 | 8,596 |
CSS | 31 | 3,511 | 62 | 7,781 |
Sass | 18 | 505 | 34 | 4,626 |
LESS | 18 | 502 | 55 | 4,585 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,710)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,710.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.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,145 | |
▷ Static methods | 180 | 15.72% |
▷ Public methods | 803 | 70.13% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 327 | 28.56% |
Functions | 101 | |
▷ Named functions | 100 | 99.01% |
▷ Anonymous functions | 1 | 0.99% |
Constants | 128 | |
▷ Global constants | 101 | 78.91% |
▷ Class constants | 27 | 21.09% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/imgs/blocks/speak/ug-speak-sample.png | 118.64KB | 48.00KB | ▼ 59.54% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |