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
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/blockmeister/includes/Activator.php+10
Undefined index: plugin
Server metrics [RAM: ▲0.73MB] [CPU: ▲15.77ms] Passed 4 tests
Server-side resources used by BlockMeister - Block Pattern Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 66.52 ▲23.61 |
Dashboard /wp-admin | 4.03 ▲0.73 | 70.66 ▲14.11 |
Posts /wp-admin/edit.php | 4.09 ▲0.74 | 82.27 ▲32.96 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.85 | 107.23 ▼1.43 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 64.57 ▲26.78 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.17 | 65.42 |
Server storage [IO: ▲3.35MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 218 new files
Database: no new tables, 13 new options
New WordPress options |
---|
fs_debug_mode |
can_compress_scripts |
default_term_pattern_category |
widget_theysaidso_widget |
pattern_category_children |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
fs_active_plugins |
blockmeister_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for BlockMeister - Block Pattern Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.05 ▼0.24 | 1.68 ▼0.19 | 38.08 ▼3.92 |
Dashboard /wp-admin | 2,215 ▲38 | 5.65 ▲0.04 | 91.65 ▲4.22 | 43.31 ▼0.03 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▼0.02 | 39.72 ▲3.92 | 36.43 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,548 ▲10 | 22.28 ▼0.78 | 674.73 ▼6.68 | 53.40 ▲2.44 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.22 ▼0.05 | 108.40 ▼10.28 | 45.93 ▼3.44 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 1.66 | 26.87 | 29.45 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/blockmeister/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 13 options in the database
- fs_active_plugins
- fs_debug_mode
- can_compress_scripts
- theysaidso_admin_options
- default_term_pattern_category
- pattern_category_children
- db_upgraded
- blockmeister_version
- widget_theysaidso_widget
- blockmeister_installed
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: block patterns, patterns, pattern builder, gutenberg
blockmeister/blockmeister.php Passed 13 tests
The main PHP file in "BlockMeister - Block Pattern Builder" ver. 3.1.10 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Block pattern builder. Lets you easily and visually create custom block patterns.
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
Success! There were no dangerous files found in this plugin35,501 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 8,446 | 18,002 | 35,009 |
PO File | 1 | 104 | 139 | 275 |
JavaScript | 4 | 34 | 60 | 196 |
CSS | 14 | 0 | 0 | 14 |
JSON | 7 | 0 | 0 | 7 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 69.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 2 | 2.90% |
▷ Concrete classes | 67 | 97.10% |
▷ Final classes | 2 | 2.99% |
Methods | 1,397 | |
▷ Static methods | 231 | 16.54% |
▷ Public methods | 978 | 70.01% |
▷ Protected methods | 17 | 1.22% |
▷ Private methods | 402 | 28.78% |
Functions | 116 | |
▷ Named functions | 99 | 85.34% |
▷ Anonymous functions | 17 | 14.66% |
Constants | 155 | |
▷ Global constants | 99 | 63.87% |
▷ Class constants | 56 | 36.13% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 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/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |