Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.34ms] Passed 4 tests
An overview of server-side resources used by MaxiBlocks Free Page Builder & Template Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.65 ▼3.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.96 ▼10.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.37 ▲5.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.61 ▼2.77 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.88 ▲3.20 |
Server storage [IO: ▲15.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 469 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by MaxiBlocks Free Page Builder & Template Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.10 ▼0.64 | 1.51 ▼0.28 | 35.59 ▼5.89 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.08 | 90.47 ▼2.72 | 40.32 ▲1.35 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.06 | 38.73 ▲4.17 | 35.61 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,526 ▼13 | 23.77 ▲0.59 | 641.91 ▲53.55 | 45.97 ▼2.49 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▲0.03 | 98.55 ▼0.39 | 40.96 ▼1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'MAXI_PLUGIN_DIR_PATHcore/utils/get-last-breakpoint-attribute.php' (include_path='.:/usr/share/php') in wp-content/plugins/maxi-blocks/core/class-maxi-style-cards.php on line 2
- > PHP Warning
Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_size_styles.php on line 3
- > PHP Warning
require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_palette_color.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/utils/get_color_rgba_string.php on line 3
- > PHP Warning
Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/class-maxi-local-fonts.php on line 2
- > PHP Warning
Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_transition_styles.php on line 3
- > PHP Warning
require_once(MAXI_PLUGIN_DIR_PATHcore/utils/get-last-breakpoint-attribute.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/class-maxi-style-cards.php on line 2
- > PHP Warning
require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_last_breakpoint_attribute.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_size_styles.php on line 3
- > PHP Warning
Use of undefined constant MAXI_PLUGIN_DIR_PATH - assumed 'MAXI_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maxi-blocks/core/blocks/utils/get_default_attribute.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'MAXI_PLUGIN_DIR_PATHcore/blocks/utils/convert_aspect_ratio_to_decimal.php' (include_path='.:/usr/share/php') in wp-content/plugins/maxi-blocks/core/blocks/style-helpers/get_aspect_ratio.php on line 3
- > PHP Warning
require_once(MAXI_PLUGIN_DIR_PATHcore/blocks/utils/get_attribute_key.php): failed to open stream: No such file or directory in wp-content/plugins/maxi-blocks/core/blocks/utils/get_attributes_value.php on line 3
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
maxi-blocks/plugin.php 85% from 13 tests
The main file in "MaxiBlocks Free Page Builder & Template Library" v. 1.5.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 389 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("maxi-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin256,270 lines of code in 437 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 164 | 0 | 0 | 236,361 |
PHP | 95 | 2,940 | 1,778 | 15,857 |
JavaScript | 127 | 530 | 156 | 3,111 |
Sass | 1 | 17 | 0 | 636 |
SVG | 4 | 0 | 3 | 259 |
CSS | 46 | 0 | 0 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 37.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 307.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 327 | |
▷ Static methods | 159 | 48.62% |
▷ Public methods | 315 | 96.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 3.67% |
Functions | 239 | |
▷ Named functions | 127 | 53.14% |
▷ Anonymous functions | 112 | 46.86% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.59MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/block-preview/slider.png | 10.21KB | 3.68KB | ▼ 63.92% |
img/block-preview/divider.png | 4.23KB | 0.86KB | ▼ 79.58% |
img/block-preview/search.png | 9.43KB | 2.52KB | ▼ 73.24% |
img/block-preview/button.png | 20.74KB | 7.53KB | ▼ 63.70% |
img/block-preview/group.png | 9.65KB | 2.73KB | ▼ 71.68% |