84% block-engine

Code Review | Gutenberg Blocks & Template Library - Block Engine

WordPress plugin Gutenberg Blocks & Template Library - Block Engine scored84%from 54 tests.

About plugin

  • Plugin page: block-engine
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: May 6, 2020
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: blockengine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.76MB] [CPU: ▼0.95ms] Passed 4 tests

An overview of server-side resources used by Gutenberg Blocks & Template Library - Block Engine
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /7.42 ▲3.9657.00 ▲21.45
Dashboard /wp-admin4.34 ▲0.9961.04 ▲4.22
Posts /wp-admin/edit.php4.39 ▲1.0356.14 ▲6.72
Add New Post /wp-admin/post-new.php5.86 ▼0.0362.84 ▼30.52
Media Library /wp-admin/upload.php4.26 ▲1.0350.90 ▲15.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
block_engine_plugin_db_version
block_engine_plugin_version
db_upgraded
block_engine_install_date
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Gutenberg Blocks & Template Library - Block Engine: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.35 ▼0.001.63 ▼0.4138.32 ▼6.37
Dashboard /wp-admin2,197 ▲235.64 ▲0.0192.07 ▼1.7839.86 ▼3.46
Posts /wp-admin/edit.php2,084 ▼192.03 ▲0.0235.21 ▼7.5133.86 ▼3.24
Add New Post /wp-admin/post-new.php6,206 ▲4,67021.81 ▼1.32961.56 ▲333.3163.86 ▲15.93
Media Library /wp-admin/upload.php1,405 ▲24.18 ▲0.0295.16 ▼3.8441.29 ▼3.37

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • block_engine_plugin_version
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • block_engine_plugin_db_version
    • block_engine_install_date

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include_once(BLOCK_ENGINE_ABSPATHincludes/hooks/class-block-engine-blocks-hooks.php): failed to open stream: No such file or directory in wp-content/plugins/block-engine/includes/class-block-engine-hooks.php on line 50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/star-rating/index.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/number-box/index.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/post-grid/index.php:254
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-engine/includes/hooks/class-block-engine-blocks-hooks.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/tabbed-content/index.php:120
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/social-share/index.php:282
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/block-engine/includes/guten/defaults.php:460
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/call-to-action/index.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-engine/includes/guten/blocks/content-toggle/index.php:85

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gutenberg, blocks, gutenberg blocks, editor

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

"Gutenberg Blocks & Template Library - Block Engine" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
35 characters long description:
Gutenberg Blocks & Template Library

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 plugin65,514 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript235,5115,72943,396
PHP4394399910,235
SVG30128,882
CSS41,426123,001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity30.43
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes428.57%
Methods132
▷ Static methods75.30%
▷ Public methods10982.58%
▷ Protected methods1511.36%
▷ Private methods86.06%
Functions115
▷ Named functions10187.83%
▷ Anonymous functions1412.17%
Constants31
▷ Global constants31100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/block-engine-logo.png5.36KB5.26KB▼ 1.77%