90% unlimited-blocks

Code Review | Gutenberg Blocks - Unlimited blocks For Gutenberg

WordPress plugin Gutenberg Blocks - Unlimited blocks For Gutenberg scored 90% from 54 tests.

About plugin

  • Plugin page: unlimited-blocks
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Apr 4, 2023
  • Number of updates: 11
  • Update frequency: every 67.1 days
  • Top authors: themehunk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active / 24,587 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.97MB] [CPU: ▲0.52ms] Passed 4 tests

Analyzing server-side resources used by Gutenberg Blocks - Unlimited blocks For Gutenberg
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0244.24 ▲5.19
Dashboard /wp-admin4.24 ▲0.9448.51 ▲2.40
Posts /wp-admin/edit.php4.35 ▲1.0053.36 ▲7.18
Add New Post /wp-admin/post-new.php6.98 ▲1.0990.14 ▼11.55
Media Library /wp-admin/upload.php4.16 ▲0.9340.82 ▲6.05

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Gutenberg Blocks - Unlimited blocks For Gutenberg
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,068 ▲33314.19 ▼0.4015.25 ▲13.4134.03 ▼13.68
Dashboard /wp-admin2,231 ▲404.92 ▲0.09110.85 ▲2.9459.30 ▲14.37
Posts /wp-admin/edit.php2,121 ▲322.06 ▲0.0133.73 ▼1.7337.76 ▲1.99
Add New Post /wp-admin/post-new.php6,718 ▲5,18525.23 ▲2.17919.20 ▲264.7242.74 ▼7.10
Media Library /wp-admin/upload.php1,413 ▲224.19 ▲0.1497.13 ▼0.2551.05 ▲7.46

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: blocks, block, gutenberg blocks, gutenberg, editor

unlimited-blocks/unlimited-blocks.php Passed 13 tests

Analyzing the main PHP file in "Gutenberg Blocks - Unlimited blocks For Gutenberg" version 1.2.4
93 characters long description:
Extra Unlimited blocks Library for building aesthetic websites in the WordPress block editor.

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
There were no executable files found in this plugin9,380 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP471805046,232
JavaScript54771,0892,918
CSS5016230

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity8.57
▷ Minimum method complexity3.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions46
▷ Named functions4597.83%
▷ Anonymous functions12.17%
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
12 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/image-layout-3.png34.63KB13.96KB▼ 59.70%
assets/img/post-layout-1.png30.52KB14.04KB▼ 54.00%
assets/img/post-layout-5.png26.83KB9.75KB▼ 63.66%
assets/img/blocks-image/ubl-transparent-img.png8.40KB0.67KB▼ 91.99%
assets/img/post-grid-layout.png17.27KB6.48KB▼ 62.48%