84% block-builder

Code Review | Elementor Blocks for Gutenberg

WordPress plugin Elementor Blocks for Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: block-builder
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 15, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 35
  • Update frequency: every 53.3 days
  • Top authors: KingYes (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

10,000+ active /114,800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.60ms] Passed 4 tests

Server-side resources used by Elementor Blocks for Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.75 ▼7.59
Dashboard /wp-admin3.34 ▼0.0045.96 ▼16.70
Posts /wp-admin/edit.php3.39 ▲0.0446.10 ▲2.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.42 ▼24.56
Media Library /wp-admin/upload.php3.26 ▲0.0335.94 ▲4.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Elementor Blocks for Gutenberg
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9114.54 ▲0.411.79 ▲0.0840.82 ▼3.01
Dashboard /wp-admin2,215 ▲405.56 ▼0.1698.94 ▼16.7947.57 ▲2.80
Posts /wp-admin/edit.php2,148 ▲512.36 ▲0.3544.19 ▲8.8640.81 ▲4.58
Add New Post /wp-admin/post-new.php1,553 ▲2723.10 ▲0.32603.16 ▲5.9132.13 ▼28.56
Media Library /wp-admin/upload.php1,441 ▲414.41 ▲0.24103.46 ▲4.1546.62 ▲4.41

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ElementorBlockBuilder\\add_filter() in wp-content/plugins/block-builder/plugin.php:142

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: gutenberg, block, design, elementor, block builder

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

"Elementor Blocks for Gutenberg" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Embed Elementor templates inside Gutenberg

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
There were no executable files found in this plugin382 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP687135380
CSS1001
JavaScript1001

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.31
Average class complexity9.75
▷ Minimum class complexity6.00
▷ Maximum class complexity15.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods29
▷ Static methods26.90%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.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
There are no PNG files in this plugin