89% block-editor-taxonomy-description

Code Review | Term description by means of block editor

WordPress plugin Term description by means of block editor scored89%from 54 tests.

About plugin

  • Plugin page: block-editor-taxo...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2021
  • Latest release: Dec 1, 2021
  • Number of updates: 13
  • Update frequency: every 9.7 days
  • Top authors: chomovva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.22ms] Passed 4 tests

A check of server-side resources used by Term description by means of block editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.64 ▼2.83
Dashboard /wp-admin3.47 ▲0.1249.00 ▼7.25
Posts /wp-admin/edit.php3.58 ▲0.2248.08 ▲8.53
Add New Post /wp-admin/post-new.php6.11 ▲0.2380.81 ▼18.18
Media Library /wp-admin/upload.php3.39 ▲0.1632.05 ▼0.61
Description of categories /wp-admin/options-general.php?page=betdpl3.5936.17

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
betdpl

Browser metrics Passed 4 tests

Term description by means of block editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.35 ▼0.032.12 ▲0.1541.56 ▼2.25
Dashboard /wp-admin2,199 ▲255.62 ▲0.0494.12 ▲3.9842.77 ▲4.51
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0234.42 ▼4.8132.64 ▼5.92
Add New Post /wp-admin/post-new.php1,529 ▼823.69 ▲5.45681.66 ▲71.9757.04 ▼9.39
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.04103.26 ▲6.3845.44 ▲1.11
Description of categories /wp-admin/options-general.php?page=betdpl9632.0428.6127.20

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: The official readme.txt is a good inspiration

block-editor-taxonomy-description/betdpl.php 92% from 13 tests

The main PHP script in "Term description by means of block editor" version 1.0.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("block-editor-taxonomy-description.php" instead of "betdpl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,984 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP224878371,572
PO File3264432412

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity23.38
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods83
▷ Static methods33.61%
▷ Public methods5363.86%
▷ Protected methods2226.51%
▷ Private methods89.64%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants6
▷ Global constants6100.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