89% block-enhancements

Code Review | Block Enhancements

WordPress plugin Block Enhancements scored89%from 54 tests.

About plugin

  • Plugin page: block-enhancements
  • Plugin version: 1.1.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 54
  • Update frequency: every 9.9 days
  • Top authors: Mr2P (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.36MB] [CPU: ▼3.33ms] Passed 4 tests

This is a short check of server-side resources used by Block Enhancements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3443.07 ▼5.53
Dashboard /wp-admin3.71 ▲0.3654.71 ▼1.21
Posts /wp-admin/edit.php3.76 ▲0.4047.12 ▼0.31
Add New Post /wp-admin/post-new.php6.50 ▲0.6182.55 ▼6.26
Media Library /wp-admin/upload.php3.57 ▲0.3435.79 ▲1.24
Block Enhancements /wp-admin/options-general.php?page=be-settings3.5534.84

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Block Enhancements: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.13 ▼1.164.66 ▲1.8843.43 ▼14.39
Dashboard /wp-admin2,210 ▲194.84 ▼1.02109.61 ▲9.3342.91 ▲1.12
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0333.31 ▼8.8934.71 ▼3.57
Add New Post /wp-admin/post-new.php1,526 ▼218.18 ▼5.02714.19 ▲120.1853.53 ▲9.30
Media Library /wp-admin/upload.php1,392 ▲14.15 ▼0.0395.82 ▼3.7143.40 ▼2.69
Block Enhancements /wp-admin/options-general.php?page=be-settings8679.38266.73120.54

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

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 everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: icon, gutenberg blocks, blocks, gutenberg, button

block-enhancements/block-enhancements.php 85% from 13 tests

The entry point to "Block Enhancements" version 1.1.19 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0.0" instead of "7.0")

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
There were no executable files found in this plugin49,668 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON20047,086
PHP143568321,613
JavaScript218622961
CSS8008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity45.80
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes125.00%
Methods83
▷ Static methods11.20%
▷ Public methods4756.63%
▷ Protected methods00.00%
▷ Private methods3643.37%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin