79% html-special-characters-helper

Code Review | HTML Special Characters Helper

WordPress plugin HTML Special Characters Helper scored79%from 54 tests.

About plugin

  • Plugin page: html-special-char...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2009
  • Latest release: Feb 22, 2017
  • Number of updates: 20
  • Update frequency: every 166.0 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /36,856 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.68ms] Passed 4 tests

Server-side resources used by HTML Special Characters Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.30 ▼1.78
Dashboard /wp-admin3.40 ▲0.1050.42 ▼1.87
Posts /wp-admin/edit.php3.45 ▲0.0947.28 ▼4.64
Add New Post /wp-admin/post-new.php6.02 ▲0.13102.69 ▲6.77
Media Library /wp-admin/upload.php3.32 ▲0.0934.53 ▼2.41

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

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

Browser metrics Passed 4 tests

HTML Special Characters Helper: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.21 ▼1.191.76 ▼0.2538.99 ▼2.37
Dashboard /wp-admin2,206 ▲155.90 ▲0.04108.99 ▼8.3640.95 ▼1.24
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.51 ▼2.3634.93 ▼0.84
Add New Post /wp-admin/post-new.php6,780 ▲5,23826.12 ▲7.80914.62 ▲273.0481.73 ▲22.31
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0296.53 ▼1.2540.95 ▼3.92

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/html-special-characters-helper/tests/bootstrap.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/html-special-characters-helper/tests/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/html-special-characters-helper/tests/bootstrap.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: coffee2code, entity codes, write post, dbx, post...

html-special-characters-helper/html-special-characters-helper.php Passed 13 tests

The main PHP script in "HTML Special Characters Helper" version 2.2 is automatically included on every request by WordPress
101 characters long description:
Admin widget on the Write Post page for inserting HTML encodings of special characters into the post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin494 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP493178444
Bourne Shell17322
XML10014
JavaScript1008
CSS1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods1441.18%
▷ Public methods3191.18%
▷ Protected methods38.82%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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