89% aino-blocks

Code Review | AinoBlocks - Gutenberg Website Builder Blocks

WordPress plugin AinoBlocks - Gutenberg Website Builder Blocks scored89%from 54 tests.

About plugin

  • Plugin page: aino-blocks
  • Plugin version: 1.13.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9+
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Nov 9, 2022
  • Number of updates: 73
  • Update frequency: every 12.3 days
  • Top authors: elmastudio (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /24,665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.19ms] Passed 4 tests

An overview of server-side resources used by AinoBlocks - Gutenberg Website Builder Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3253.01 ▲9.04
Dashboard /wp-admin3.57 ▲0.2249.91 ▼1.90
Posts /wp-admin/edit.php3.62 ▲0.2250.93 ▼1.36
Add New Post /wp-admin/post-new.php6.51 ▲0.5892.74 ▼17.33
Media Library /wp-admin/upload.php3.49 ▲0.2239.04 ▲3.82

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

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

Browser metrics Passed 4 tests

AinoBlocks - Gutenberg Website Builder Blocks: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13113.21 ▼1.328.45 ▲6.9042.59 ▲1.56
Dashboard /wp-admin2,198 ▲215.61 ▲0.0189.19 ▼0.9742.22 ▼2.90
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0233.77 ▼4.1435.47 ▼6.15
Add New Post /wp-admin/post-new.php7,123 ▲5,59520.60 ▼2.561,052.25 ▲388.4638.62 ▼19.57
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0398.79 ▼7.1342.88 ▼2.86

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
Please take inspiration from this readme.txt

aino-blocks/ainoblocks.php 85% from 13 tests

The entry point to "AinoBlocks - Gutenberg Website Builder Blocks" version 1.13.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aino-blocks.php" instead of "ainoblocks.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin1,323 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
JSON16001,183
PHP18173790
CSS271028
JavaScript182322

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin