90% block-designer

Code Review | Block Designer - Create Custom Blocks for Gutenberg Editor

WordPress plugin Block Designer - Create Custom Blocks for Gutenberg Editor scored90%from 54 tests.

About plugin

  • Plugin page: block-designer
  • Plugin version: 1.10.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 99
  • Update frequency: every 4.8 days
  • Top authors: ehtmlu (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,615 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼2.64ms] Passed 4 tests

Analyzing server-side resources used by Block Designer - Create Custom Blocks for Gutenberg Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2941.99 ▼1.27
Dashboard /wp-admin3.47 ▲0.1250.03 ▼9.05
Posts /wp-admin/edit.php3.58 ▲0.2248.24 ▼0.19
Add New Post /wp-admin/post-new.php6.36 ▲0.47104.88 ▼0.05
Media Library /wp-admin/upload.php3.39 ▲0.1637.35 ▲3.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Block Designer - Create Custom Blocks for Gutenberg Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.28 ▲0.122.48 ▲0.7443.10 ▼6.16
Dashboard /wp-admin2,227 ▲555.58 ▼0.1288.73 ▼17.0843.19 ▲1.36
Posts /wp-admin/edit.php2,129 ▲292.03 ▲0.0839.39 ▲1.7236.58 ▼0.62
Add New Post /wp-admin/post-new.php1,588 ▲6223.20 ▼0.06691.66 ▲33.0737.06 ▼25.06
Media Library /wp-admin/upload.php1,432 ▲294.21 ▲0.01102.43 ▼0.5943.07 ▼0.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • bd_db_version
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

block-designer/block-designer.php Passed 13 tests

"Block Designer - Create Custom Blocks for Gutenberg Editor" version 1.10.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Design individual blocks for the WordPress Block Editor without any line of code

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,276 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript385767646,418
PHP203472191,053
CSS1118256805

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.14
▷ Minimum class complexity2.00
▷ Maximum class complexity14.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods3081.08%
▷ Protected methods25.41%
▷ Private methods513.51%
Functions46
▷ Named functions1736.96%
▷ Anonymous functions2963.04%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.20MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/app.components/AppFeedback/developer-photo.png209.28KB228.28KB0.00%