89% ultimate-block-patterns-builder

Code Review | Gutenberg Blocks Pattern builder

WordPress plugin Gutenberg Blocks Pattern builder scored89%from 54 tests.

About plugin

  • Plugin page: ultimate-block-pa...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2022
  • Latest release: Sep 26, 2022
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.72ms] Passed 4 tests

An overview of server-side resources used by Gutenberg Blocks Pattern builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.05 ▲0.69
Dashboard /wp-admin3.39 ▲0.0945.13 ▼7.29
Posts /wp-admin/edit.php3.44 ▲0.0944.45 ▼3.60
Add New Post /wp-admin/post-new.php6.03 ▲0.1492.65 ▲5.34
Media Library /wp-admin/upload.php3.31 ▲0.0835.54 ▲3.34
Help /wp-admin/edit.php?post_type=upbp_pattern&page=upbp_help3.2840.26
Patterns /wp-admin/edit.php?post_type=upbp_pattern3.3549.55
New Pattern /wp-admin/post-new.php?post_type=upbp_pattern6.0276.37

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Gutenberg Blocks Pattern builder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.25 ▼1.344.37 ▲2.7242.93 ▲1.57
Dashboard /wp-admin2,237 ▲484.85 ▼1.07111.22 ▼0.7642.44 ▲2.38
Posts /wp-admin/edit.php2,120 ▲341.98 ▼0.0439.46 ▲3.2334.76 ▲2.23
Add New Post /wp-admin/post-new.php1,545 ▲322.92 ▲4.68594.87 ▼41.7952.01 ▼4.34
Media Library /wp-admin/upload.php1,422 ▲344.25 ▲0.0198.70 ▲0.7643.98 ▲0.10
Help /wp-admin/edit.php?post_type=upbp_pattern&page=upbp_help1,2889.55255.3660.79
Patterns /wp-admin/edit.php?post_type=upbp_pattern1,0812.0031.2432.44
New Pattern /wp-admin/post-new.php?post_type=upbp_pattern6,19421.82808.5830.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

ultimate-block-patterns-builder/ubpb.php 92% from 13 tests

"Gutenberg Blocks Pattern builder" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ultimate-block-patterns-builder.php" instead of "ubpb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33543216
CSS110055

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin