10% blockmeister

Code Review | BlockMeister - Block Pattern Builder

WordPress plugin BlockMeister - Block Pattern Builder scored10%from 54 tests.

About plugin

  • Plugin page: blockmeister
  • Plugin version: 3.1.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2020
  • Latest release: Oct 10, 2023
  • Number of updates: 120
  • Update frequency: every 9.5 days
  • Top authors: blockmeister (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /22,350 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7366.52 ▲23.61
Dashboard /wp-admin4.03 ▲0.7370.66 ▲14.11
Posts /wp-admin/edit.php4.09 ▲0.7482.27 ▲32.96
Add New Post /wp-admin/post-new.php6.73 ▲0.85107.23 ▼1.43
Media Library /wp-admin/upload.php3.97 ▲0.7464.57 ▲26.78
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.1765.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.05 ▼0.241.68 ▼0.1938.08 ▼3.92
Dashboard /wp-admin2,215 ▲385.65 ▲0.0491.65 ▲4.2243.31 ▼0.03
Posts /wp-admin/edit.php2,123 ▲232.00 ▼0.0239.72 ▲3.9236.43 ▼0.38
Add New Post /wp-admin/post-new.php1,548 ▲1022.28 ▼0.78674.73 ▼6.6853.40 ▲2.44
Media Library /wp-admin/upload.php1,423 ▲234.22 ▼0.05108.40 ▼10.2845.93 ▼3.44
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0971.6626.8729.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:
LanguageFilesBlank linesComment linesLines of code
PHP1418,44618,00235,009
PO File1104139275
JavaScript43460196
CSS140014
JSON7007

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 code0.63
Average class complexity69.42
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.46
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes69
▷ Abstract classes22.90%
▷ Concrete classes6797.10%
▷ Final classes22.99%
Methods1,397
▷ Static methods23116.54%
▷ Public methods97870.01%
▷ Protected methods171.22%
▷ Private methods40228.78%
Functions116
▷ Named functions9985.34%
▷ Anonymous functions1714.66%
Constants155
▷ Global constants9963.87%
▷ Class constants5636.13%
▷ Public constants56100.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
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%