99% block-editor-taxonomy-description

Code Review | Term description by means of block editor

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

About plugin

  • Plugin page: block-editor-taxo...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 29, 2021
  • Latest release: Aug 30, 2021
  • Number of updates: 12
  • Update frequency: every 2.8 days
  • Top authors: chomovva (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 161 total downloads

Benchmarks

Plugin footprint Passed 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.18MB] [CPU: ▼140.02ms] 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 /2.92 ▲0.2038.19 ▲18.24
Dashboard /wp-admin3.22 ▲0.1648.29 ▲0.59
Posts /wp-admin/edit.php3.33 ▲0.2245.70 ▼0.09
Add New Post /wp-admin/post-new.php5.67 ▲0.2490.31 ▼559.22
Media Library /wp-admin/upload.php3.16 ▲0.1631.86 ▼1.35
Description of categories /wp-admin/options-general.php?page=betdpl3.3733.05

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options
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 /3,708 ▲10215.89 ▲0.319.87 ▼1.9245.53 ▼5.13
Dashboard /wp-admin2,978 ▲506.00 ▼0.25143.12 ▼18.72110.67 ▲1.07
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0165.29 ▼4.0081.43 ▼6.48
Add New Post /wp-admin/post-new.php1,503 ▼18018.50 ▼0.28370.92 ▼47.04109.71 ▲7.12
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.02152.46 ▼2.20111.43 ▼9.22
Description of categories /wp-admin/options-general.php?page=betdpl1,3042.0654.7166.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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.4 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,842 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP224878371,572
PO File2160245270

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