Benchmarks
Plugin footprint 58% 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
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/master-blocks/freemius/includes/class-freemius.php+9375
Trying to get property 'is_premium' of non-object
Server metrics [RAM: ▲0.51MB] [CPU: ▼291.18ms] Passed 4 tests
A check of server-side resources used by Master Blocks - Gutenberg Site Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.56 | 58.67 ▲3.67 |
Dashboard /wp-admin | 3.92 ▲0.51 | 36.76 ▲2.25 |
Posts /wp-admin/edit.php | 4.15 ▲0.51 | 43.35 ▲4.72 |
Add New Post /wp-admin/post-new.php | 7.41 ▲0.44 | 100.60 ▼1,173.66 |
Media Library /wp-admin/upload.php | 3.87 ▲0.57 | 27.43 ▲3.02 |
Freemius Debug [v.2.2.2] /wp-admin/admin.php?page=freemius | 4.21 | 25.18 |
Server storage [IO: ▲5.90MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 254 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_gdpr |
fs_debug_mode |
fs_api_cache |
fs_accounts |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for Master Blocks - Gutenberg Site Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,112 ▲370 | 17.98 ▲2.01 | 22.55 ▲15.83 | 4.50 ▲2.31 |
Dashboard /wp-admin | 2,956 ▲95 | 6.16 ▼0.00 | 118.91 ▼18.65 | 194.39 ▲28.90 |
Posts /wp-admin/edit.php | 2,753 ▲62 | 3.12 ▼0.24 | 67.51 ▲2.37 | 162.40 ▲15.31 |
Add New Post /wp-admin/post-new.php | 1,974 ▲278 | 25.67 ▲4.21 | 471.53 ▲24.65 | 208.36 ▲45.35 |
Media Library /wp-admin/upload.php | 1,834 ▲136 | 5.56 ▲0.08 | 123.45 ▼15.43 | 225.27 ▲39.68 |
Freemius Debug [v.2.2.2] /wp-admin/admin.php?page=freemius | 1,476 | 2.42 | 53.06 | 125.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 5 options in the database
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_api_cache
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/master-blocks/freemius/templates/ajax-loader.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/master-blocks/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/master-blocks/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/master-blocks/master-blocks-template.php:7
- > PHP Warning
Use of undefined constant PLUGIN_SLUG - assumed 'PLUGIN_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-blocks/core/Enqueue.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Master_Blocks\\core\\Plugin' not found in wp-content/plugins/master-blocks/core/Constants.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/master-blocks/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/master-blocks/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/master-blocks/freemius/templates/partials/network-activation.php:6
- > PHP Warning
Use of undefined constant PLUGIN_SLUG - assumed 'PLUGIN_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-blocks/core/Enqueue.php on line 9
- > PHP Warning
Use of undefined constant PLUGIN_SLUG - assumed 'PLUGIN_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-blocks/core/Enqueue.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Requires at least: Invalid version format
- Tested up to: Invalid version format
master-blocks/master-blocks.php Passed 13 tests
This is the main PHP file of "Master Blocks - Gutenberg Site Builder" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Next generation site builder for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected35,528 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 6,558 | 14,431 | 28,174 |
JavaScript | 16 | 1,758 | 1,369 | 6,316 |
CSS | 18 | 117 | 31 | 672 |
Markdown | 1 | 61 | 0 | 192 |
SVG | 45 | 2 | 1 | 136 |
JSON | 1 | 0 | 0 | 38 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,315)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 57.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,315.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 3 | 5.00% |
▷ Concrete classes | 57 | 95.00% |
▷ Final classes | 1 | 1.75% |
Methods | 1,106 | |
▷ Static methods | 165 | 14.92% |
▷ Public methods | 786 | 71.07% |
▷ Protected methods | 15 | 1.36% |
▷ Private methods | 305 | 27.58% |
Functions | 130 | |
▷ Named functions | 129 | 99.23% |
▷ Anonymous functions | 1 | 0.77% |
Constants | 149 | |
▷ Global constants | 117 | 78.52% |
▷ Class constants | 32 | 21.48% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/master-blocks.png | 6.91KB | 3.22KB | ▼ 53.31% |
sample/images/phone.png | 26.40KB | 26.38KB | 0.07% |
sample/images/phone2.png | 29.34KB | 29.33KB | 0.03% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |