79% blocks-editor-customizer

Code Review | Gutenberg Customizer

WordPress plugin Gutenberg Customizer scored79%from 54 tests.

About plugin

  • Plugin page: blocks-editor-cus...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Apr 21, 2021
  • Number of updates: 15
  • Update frequency: every 2.4 days
  • Top authors: belovdigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.04ms] Passed 4 tests

This is a short check of server-side resources used by Gutenberg Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.36 ▲0.01
Dashboard /wp-admin3.38 ▲0.0747.09 ▲0.32
Posts /wp-admin/edit.php3.49 ▲0.1445.02 ▼0.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.12 ▼7.72
Media Library /wp-admin/upload.php3.30 ▲0.0735.44 ▲0.15
Gutenberg Customizer /wp-admin/options-general.php?page=iris_color_pick3.2731.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gutenberg Customizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.72 ▼0.585.02 ▲3.2342.71 ▼2.89
Dashboard /wp-admin2,237 ▲525.12 ▼0.72115.62 ▲15.6642.58 ▼3.21
Posts /wp-admin/edit.php2,125 ▲362.36 ▲0.3239.98 ▼1.0734.36 ▲1.31
Add New Post /wp-admin/post-new.php1,539 ▲623.24 ▲0.30671.77 ▼10.3936.23 ▼23.86
Media Library /wp-admin/upload.php1,413 ▲224.40 ▲0.23100.14 ▼4.4340.85 ▼3.04
Gutenberg Customizer /wp-admin/options-general.php?page=iris_color_pick1,0352.5841.6962.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/blocks-editor-customizer/admin/partials/gutenberg-customizer-admin-display.php
    • > /wp-content/plugins/blocks-editor-customizer/public/partials/gutenberg-customizer-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-editor-customizer/admin/class-gutenberg-customizer-admin.php:120

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
7 plugin tags: gutenberg, blocks, style, appearance, customize...

blocks-editor-customizer/blocks-editor-customizer.php Passed 13 tests

This is the main PHP file of "Gutenberg Customizer" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
Plugin for changing the default style values ​​of the gutenberg block editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected471 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12140582397
JavaScript2162773
CSS2041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected