62% essential-blocks

Code Review | Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates

WordPress plugin Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates scored62%from 54 tests.

About plugin

  • Plugin page: essential-blocks
  • Plugin version: 4.3.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Dec 9, 2018
  • Latest release: Nov 30, 2023
  • Number of updates: 134
  • Update frequency: every 14.4 days
  • Top authors: wpdevteam (57.46%)priyomukul (20.15%)re_enter_rupok (19.4%)alam789 (3.73%)Asif2BD (2.24%)

Code review

54 tests

User reviews

115 reviews

Install metrics

100,000+ active /1,831,424 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.32MB] [CPU: ▲17.79ms] Passed 4 tests

A check of server-side resources used by Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.86 ▲2.4057.40 ▲12.71
Dashboard /wp-admin5.62 ▲2.3169.23 ▲17.08
Posts /wp-admin/edit.php5.67 ▲2.3174.36 ▲29.84
Add New Post /wp-admin/post-new.php8.70 ▲2.81107.68 ▲15.34
Media Library /wp-admin/upload.php5.48 ▲2.2559.86 ▲26.01
Welcome Page /wp-admin/admin.php?page=welcome-essential-blocks5.4655.24

Server storage [IO: ▲23.02MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,359 new files
Database: 1 new table, 8 new options
New tables
wp_eb_form_settings
New WordPress options
can_compress_scripts
essential_blocks_version
db_upgraded
widget_recent-posts
widget_theysaidso_widget
essential_all_blocks
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8214.25 ▼0.491.78 ▼0.0841.84 ▼3.15
Dashboard /wp-admin2,338 ▲1585.62 ▲0.0693.90 ▲3.93113.53 ▲74.80
Posts /wp-admin/edit.php2,316 ▲2162.13 ▲0.0237.67 ▼3.2154.10 ▲15.21
Add New Post /wp-admin/post-new.php7,286 ▲5,76060.15 ▲37.081,713.57 ▲1,033.6599.38 ▲45.68
Media Library /wp-admin/upload.php1,543 ▲1434.09 ▼0.1096.00 ▼0.2884.92 ▲44.66
Welcome Page /wp-admin/admin.php?page=welcome-essential-blocks1,7068.98314.66140.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_eb_form_settings
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • essential_blocks_version
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • essential_all_blocks

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/essential-blocks/views/insta-partials/author.php
  • 208× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: allMeta in wp-content/plugins/essential-blocks/views/post-partials/meta/categories.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialBlocks\\Core\\Block' not found in wp-content/plugins/essential-blocks/blocks/ToggleContent.php:7
    • > PHP Notice
      Undefined variable: formLayout in wp-content/plugins/essential-blocks/views/form-block.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialBlocks\\Core\\Block' not found in wp-content/plugins/essential-blocks/blocks/Button.php:6
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/essential-blocks/views/post-partials/meta/avatar.php on line 3
    • > PHP Fatal error
      Trait 'EssentialBlocks\\Traits\\HasSingletone' not found in wp-content/plugins/essential-blocks/includes/Core/Scripts.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialBlocks\\Core\\Block' not found in wp-content/plugins/essential-blocks/blocks/Column.php:6
    • > PHP Notice
      Undefined variable: headerMeta in wp-content/plugins/essential-blocks/views/post-partials/carousel-markup.php on line 3
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/essential-blocks/views/post-partials/meta/date.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'EssentialBlocks\\Core\\Block' not found in wp-content/plugins/essential-blocks/blocks/AdvancedTabs.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=welcome-essential-blocks
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=welcome-essential-blocks 178 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (37 tag instead of maximum 10)
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in essential-blocks/assets to your readme.txt
You can look at the official readme.txt

essential-blocks/essential-blocks.php 92% from 13 tests

The main PHP file in "Essential Blocks – Page Builder Gutenberg Blocks, Patterns & Templates" ver. 4.3.10 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected213,113 lines of code in 1,231 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript78611,8427,452165,495
SVG102153914,051
CSS551,07720113,888
Sass581,1862839,873
PHP1751,6061,9859,080
JSON5500726

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity13.09
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces11
Interfaces0
Traits2
Classes98
▷ Abstract classes55.10%
▷ Concrete classes9394.90%
▷ Final classes33.23%
Methods412
▷ Static methods5814.08%
▷ Public methods37490.78%
▷ Protected methods81.94%
▷ Private methods307.28%
Functions37
▷ Named functions12.70%
▷ Anonymous functions3697.30%
Constants23
▷ Global constants1878.26%
▷ Class constants521.74%
▷ Public constants5100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 PNG files occupy 3.41MB with 1.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/adv-video-placeholder.png35.40KB38.63KB0.00%
admin/src/icons/pro-teaser.png20.94KB11.05KB▼ 47.22%
assets/images/welcome/setting-img3.png99.19KB28.23KB▼ 71.54%
blocks/google-map/image/screenshot.png255.72KB97.96KB▼ 61.69%
images/logo-openverse.55b5bad6.png0.68KB0.98KB0.00%