83% blockart-blocks

Code Review | Gutenberg Blocks by BlockArt – Gutenberg Editor, Website Builder, Page Builder with Sections, Template Library & Starter Sites

WordPress plugin Gutenberg Blocks by BlockArt – Gutenberg Editor, Website Builder, Page Builder with Sections, Template Library & Starter Sites scored83%from 54 tests.

About plugin

  • Plugin page: blockart-blocks
  • Plugin version: 2.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Nov 23, 2023
  • Number of updates: 36
  • Update frequency: every 20.1 days
  • Top authors: wpblockart (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

8,000+ active /105,002 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 gracefully, with no errors

Server metrics [RAM: ▲4.96MB] [CPU: ▲10.12ms] Passed 4 tests

A check of server-side resources used by Gutenberg Blocks by BlockArt – Gutenberg Editor, Website Builder, Page Builder with Sections, Template Library & Starter Sites
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.63 ▲2.1649.17 ▲8.19
Dashboard /wp-admin9.14 ▲5.8355.48 ▲7.58
Posts /wp-admin/edit.php9.28 ▲5.9261.71 ▲10.53
Add New Post /wp-admin/post-new.php12.17 ▲6.29875.98 ▲795.67
Media Library /wp-admin/upload.php9.15 ▲5.9246.44 ▲14.19

Server storage [IO: ▲10.46MB] [DB: ▲0.12MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 320 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
_blockart_activation_time
db_upgraded
_blockart_activation_redirect
widget_recent-posts
_blockart_version

Browser metrics Passed 4 tests

Gutenberg Blocks by BlockArt – Gutenberg Editor, Website Builder, Page Builder with Sections, Template Library & Starter Sites: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8614.67 ▲0.391.56 ▼0.2536.90 ▼6.84
Dashboard /wp-admin2,249 ▲755.61 ▼0.04100.37 ▲7.6642.17 ▲0.92
Posts /wp-admin/edit.php2,154 ▲542.01 ▲0.0537.84 ▼6.1736.04 ▼3.32
Add New Post /wp-admin/post-new.php6,326 ▲4,78521.48 ▼1.45970.07 ▲369.2341.40 ▼11.43
Media Library /wp-admin/upload.php1,458 ▲644.27 ▲0.0996.25 ▼2.9240.62 ▼2.61
Settings /wp-admin/admin.php?page=blockart#/settings1,47710.94367.2994.23
Products /wp-admin/admin.php?page=blockart#/products1,2156.81246.7152.48
Help /wp-admin/admin.php?page=blockart#/help1,1976.56133.2161.93
Blocks /wp-admin/admin.php?page=blockart#/blocks1,56910.57254.9864.18
Dashboard /wp-admin/admin.php?page=blockart#/dashboard1,2206.61136.6660.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • _blockart_version
    • can_compress_scripts
    • _blockart_activation_time
    • db_upgraded
    • widget_theysaidso_widget
    • _blockart_activation_redirect

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 130× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/blockart-blocks/vendor/sabberworm/php-css-parser/src/Property/Charset.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/blockart-blocks/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/blockart-blocks/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in blockart-blocks/assets to your readme.txt
The official readme.txt might help

blockart-blocks/blockart.php 77% from 13 tests

"Gutenberg Blocks by BlockArt – Gutenberg Editor, Website Builder, Page Builder with Sections, Template Library & Starter Sites" version 2.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blockart-blocks.php" instead of "blockart.php")
  • Description: The description should be shorter than 140 characters (currently 205 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin146,945 lines of code in 299 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4110,62211,68093,365
JSON330042,134
PHP2211,8935,31610,680
Markdown21660707
CSS28059

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.46
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces16
Interfaces3
Traits1
Classes193
▷ Abstract classes84.15%
▷ Concrete classes18595.85%
▷ Final classes10.54%
Methods639
▷ Static methods487.51%
▷ Public methods48075.12%
▷ Protected methods7912.36%
▷ Private methods8012.52%
Functions80
▷ Named functions5872.50%
▷ Anonymous functions2227.50%
Constants35
▷ Global constants1234.29%
▷ Class constants2365.71%
▷ Public constants23100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/f7346e9b478a5ef6043bcfd5a5e04922.png2.41KB1.42KB▼ 41.05%
dist/013a9830e30a4609108d32425ebc776b.png4.00KB2.40KB▼ 40.01%