90% blocks-builder

Code Review | Blocks – Ultimate Page Building Blocks for Gutenberg

WordPress plugin Blocks – Ultimate Page Building Blocks for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: blocks-builder
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.0.2
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Dec 27, 2018
  • Number of updates: 32
  • Update frequency: every 3.0 days
  • Top authors: rbhavesh (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼11.67ms] Passed 4 tests

This is a short check of server-side resources used by Blocks – Ultimate Page Building Blocks for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.08 ▼1.74
Dashboard /wp-admin3.40 ▲0.1051.73 ▼4.02
Posts /wp-admin/edit.php3.52 ▲0.1649.75 ▲2.82
Add New Post /wp-admin/post-new.php4.90 ▼0.9956.54 ▼39.78
Media Library /wp-admin/upload.php3.33 ▲0.1036.24 ▼1.15

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Blocks – Ultimate Page Building Blocks for Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13316.09 ▲1.767.56 ▲5.6843.37 ▼2.42
Dashboard /wp-admin2,210 ▲336.55 ▲0.9298.64 ▲5.6440.96 ▼1.39
Posts /wp-admin/edit.php2,112 ▲103.54 ▲1.5641.57 ▲3.5632.28 ▼4.12
Add New Post /wp-admin/post-new.php6,274 ▲4,74620.46 ▼2.76961.91 ▲286.1342.16 ▼19.10
Media Library /wp-admin/upload.php1,406 ▲66.11 ▲1.83103.12 ▼8.4342.01 ▼5.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: customizable block, gutenberg editor, addon, block, page builder...

blocks-builder/class-blocks-builder.php 92% from 13 tests

The main PHP script in "Blocks – Ultimate Page Building Blocks for Gutenberg" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blocks-builder.php" instead of "class-blocks-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin14,117 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13574786,965
SVG3003,927
CSS261,18862,832
PHP219114393

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin