79% block-ui-kit

Code Review | Block UI Kit - Bootstrap Gutenberg Blocks - Bootstrap Blocks

WordPress plugin Block UI Kit - Bootstrap Gutenberg Blocks - Bootstrap Blocks scored79%from 54 tests.

About plugin

  • Plugin page: block-ui-kit
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 20
  • Update frequency: every 16.9 days
  • Top authors: gutenberglabcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.89MB] [CPU: ▼50.59ms] Passed 4 tests

Analyzing server-side resources used by Block UI Kit - Bootstrap Gutenberg Blocks - Bootstrap Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.376.38 ▼34.36
Dashboard /wp-admin2.11 ▼1.197.97 ▼46.11
Posts /wp-admin/edit.php2.12 ▼1.248.69 ▼37.33
Add New Post /wp-admin/post-new.php2.11 ▼3.778.05 ▼84.57
Media Library /wp-admin/upload.php2.12 ▼1.117.45 ▼28.47

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Block UI Kit - Bootstrap Gutenberg Blocks - Bootstrap Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,387 ▲62626.16 ▲11.8138.41 ▲36.8236.67 ▼3.46
Dashboard /wp-admin2,470 ▲29211.52 ▲5.88127.55 ▲26.5338.88 ▼2.51
Posts /wp-admin/edit.php2,349 ▲24910.45 ▲8.4675.14 ▲40.5930.91 ▼13.38
Add New Post /wp-admin/post-new.php6,202 ▲4,66518.89 ▲0.61794.78 ▲157.8439.31 ▼29.57
Media Library /wp-admin/upload.php1,782 ▲38510.96 ▲6.86145.29 ▲27.1641.34 ▼6.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ppath handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI ("gutenberglab.com")
You can take inspiration from this readme.txt

block-ui-kit/plugin.php 92% from 13 tests

The entry point to "Block UI Kit - Bootstrap Gutenberg Blocks - Bootstrap Blocks" version 1.0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-ui-kit.php" instead of "plugin.php")

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 plugin21,155 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,4734113,039
JavaScript72,0601,5277,820
PHP268119207
Markdown119053
SVG10019
Sass23117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/buik.png1.15KB1.16KB0.00%