84% html-code-comments

Code Review | HTML Code Comments

WordPress plugin HTML Code Comments scored 84% from 54 tests.

About plugin

  • Plugin page: html-code-comments
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.2-4.7
  • WordPress version: 6.3.1
  • First release: Sep 15, 2016
  • Latest release: Sep 23, 2016
  • Number of updates: 14
  • Update frequency: every 6.4 days
  • Top authors: ludovicscribe (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,290 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.91ms] Passed 4 tests

Analyzing server-side resources used by HTML Code Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.47 ▼1.15
Dashboard /wp-admin3.33 ▲0.0245.09 ▼4.51
Posts /wp-admin/edit.php3.38 ▲0.0245.12 ▼3.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.38 ▼18.97
Media Library /wp-admin/upload.php3.25 ▲0.0234.56 ▼0.47
HTML code in comments /wp-admin/options-general.php?page=html-code-comments3.3131.50

Server storage [IO: ▲0.03MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
hcc_encode_html
hcc_force_links_target
db_upgraded
hcc_allowed_tags
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
hcc_warning_message
...

Browser metrics Passed 4 tests

A check of browser resources used by HTML Code Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.121.69 ▼0.0343.26 ▼0.79
Dashboard /wp-admin2,210 ▲194.87 ▼0.03103.63 ▼1.1937.78 ▼5.80
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0235.19 ▼0.2031.49 ▼3.83
Add New Post /wp-admin/post-new.php1,538 ▲2423.22 ▲5.73673.17 ▲8.0556.94 ▲1.13
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0593.57 ▼2.0542.30 ▼3.04
HTML code in comments /wp-admin/options-general.php?page=html-code-comments1,3452.1822.9634.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/html-code-comments/templates/config.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html-code-comments/html-code-comments.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: html, tag, code, comment

html-code-comments/html-code-comments.php Passed 13 tests

Analyzing the main PHP file in "HTML Code Comments" version 1.1.1
77 characters long description:
This plugin allows to take control of the HTML code allowed in your comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin495 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210045325
PO File13435109
CSS110038
JavaScript17023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1770.83%
▷ Protected methods00.00%
▷ Private methods729.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin