84% allow-html-in-category-descriptions

Code Review | Allow HTML in Category Descriptions

WordPress plugin Allow HTML in Category Descriptions scored84%from 54 tests.

About plugin

  • Plugin page: allow-html-in-cat...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.8
  • WordPress version: 6.3.1
  • First release: Jun 11, 2008
  • Latest release: Mar 15, 2021
  • Number of updates: 42
  • Update frequency: every 111.1 days
  • Top authors: arno.esterhuizen (54.76%)arno_esterhuizen (47.62%)

Code review

54 tests

User reviews

41 reviews

Install metrics

10,000+ active /97,134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.33ms] Passed 4 tests

Server-side resources used by Allow HTML in Category Descriptions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.61 ▲4.87
Dashboard /wp-admin3.31 ▲0.0147.01 ▼1.54
Posts /wp-admin/edit.php3.36 ▲0.0050.31 ▲2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.37 ▼11.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.66 ▲0.59

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Allow HTML in Category Descriptions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.38 ▼1.001.83 ▲0.1240.27 ▼0.26
Dashboard /wp-admin2,206 ▲185.90 ▲0.02107.96 ▼0.5843.26 ▼0.56
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0439.75 ▼3.3536.14 ▼1.17
Add New Post /wp-admin/post-new.php1,522 ▼1223.13 ▲0.06683.40 ▲56.8259.88 ▲9.94
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0198.63 ▼5.6945.22 ▲0.71

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/allow-html-in-category-descriptions/html-in-category-descriptions.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

allow-html-in-category-descriptions/html-in-category-descriptions.php 92% from 13 tests

"Allow HTML in Category Descriptions" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("allow-html-in-category-descriptions.php" instead of "html-in-category-descriptions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151220

PHP code Passed 2 tests

This is a short overview 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.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected