82% create-block-patterns

Code Review | Block Pattern Builder For WordPress - Boost Up Gutenberg Patterns

WordPress plugin Block Pattern Builder For WordPress - Boost Up Gutenberg Patterns scored82%from 54 tests.

About plugin

  • Plugin page: create-block-patt...
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2022
  • Latest release: Aug 6, 2023
  • Number of updates: 13
  • Update frequency: every 30.5 days
  • Top authors: multanisadik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /677 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.13ms] 75% from 4 tests

Server-side resources used by Block Pattern Builder For WordPress - Boost Up Gutenberg Patterns
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 2,480.09ms on /wp-admin/edit.php?post_type=ssbp-block-pattern&page=ssbp-browse-patterns)
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0946.08 ▲2.42
Dashboard /wp-admin3.39 ▲0.0554.14 ▼15.63
Posts /wp-admin/edit.php3.45 ▲0.0951.62 ▼0.07
Add New Post /wp-admin/post-new.php6.13 ▲0.2498.53 ▼8.73
Media Library /wp-admin/upload.php3.32 ▲0.0940.14 ▼0.07
Keywords /wp-admin/edit-tags.php?taxonomy=ssbp-keywords&post_type=ssbp-block-pattern3.3136.07
Browse Patterns /wp-admin/edit.php?post_type=ssbp-block-pattern&page=ssbp-browse-patterns3.322,480.09
All Block Patterns /wp-admin/edit.php?post_type=ssbp-block-pattern3.3642.39
Add New /wp-admin/post-new.php?post_type=ssbp-block-pattern6.1385.99
Categories /wp-admin/edit-tags.php?taxonomy=ssbp-categories&post_type=ssbp-block-pattern3.3135.52

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Block Pattern Builder For WordPress - Boost Up Gutenberg Patterns
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.50 ▲0.471.64 ▼0.0439.82 ▼2.15
Dashboard /wp-admin2,237 ▲605.65 ▲0.0592.73 ▼0.6941.77 ▼1.57
Posts /wp-admin/edit.php2,139 ▲392.02 ▲0.0339.54 ▲2.3836.70 ▼0.44
Add New Post /wp-admin/post-new.php1,558 ▲3222.93 ▼0.33614.96 ▼50.1054.43 ▼6.53
Media Library /wp-admin/upload.php1,442 ▲424.22 ▲0.0197.82 ▼18.3243.65 ▼6.28
Keywords /wp-admin/edit-tags.php?taxonomy=ssbp-keywords&post_type=ssbp-block-pattern1,2822.1228.1031.64
Browse Patterns /wp-admin/edit.php?post_type=ssbp-block-pattern&page=ssbp-browse-patterns1,1352.0425.6233.55
All Block Patterns /wp-admin/edit.php?post_type=ssbp-block-pattern1,1791.9535.4831.68
Add New /wp-admin/post-new.php?post_type=ssbp-block-pattern1,59417.05826.1932.74
Categories /wp-admin/edit-tags.php?taxonomy=ssbp-categories&post_type=ssbp-block-pattern1,2852.1229.6632.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-block-patterns/inc/patterns-settings.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-block-patterns/inc/load-pattern.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_remote_get() in wp-content/plugins/create-block-patterns/inc/filter-tabs/latest-patterns.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/create-block-patterns/inc/browse-patterns.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-block-patterns/inc/custom-post-type.php:135
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/create-block-patterns/inc/filter-tabs/author-patterns.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Block patterns list table screen.), #2 (Categories list table screen.), #3 (Block pattern settings sidebar.)
You can look at the official readme.txt

create-block-patterns/block-pattern.php 62% from 13 tests

The primary PHP file in "Block Pattern Builder For WordPress - Boost Up Gutenberg Patterns" version 3.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("5.9.3" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("create-block-patterns.php" instead of "block-pattern.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin473 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP74163362
JavaScript18393
CSS10118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin