94% html-entifier

Code Review | HTML Entifier

WordPress plugin HTML Entifier scored 94% from 53 tests.

About plugin

  • Plugin page: html-entifier
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-4.1
  • WordPress version: 5.8.1
  • First release: Dec 11, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 17
  • Update frequency: every 0.5 days
  • Top authors: timsamoff (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

10+ active / 2,039 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by HTML Entifier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.23 ▲15.09
Dashboard /wp-admin3.06 ▲0.0148.19 ▲5.76
Posts /wp-admin/edit.php3.11 ▲0.0142.23 ▼8.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.96 ▼1,032.25
Media Library /wp-admin/upload.php3.01 ▼0.0031.39 ▼6.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HTML Entifier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6915.93 ▲0.418.86 ▲0.4048.43 ▲1.85
Dashboard /wp-admin2,923 ▲705.90 ▼0.09139.66 ▼0.04103.59 ▲6.09
Posts /wp-admin/edit.php2,703 ▼32.69 ▼0.0064.16 ▼1.9387.49 ▼1.23
Add New Post /wp-admin/post-new.php3,670 ▲1,81715.04 ▼4.06405.63 ▲36.43102.96 ▼7.93
Media Library /wp-admin/upload.php1,769 ▼35.02 ▲0.00154.39 ▲13.75115.12 ▼1.28

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/html-entifier/html-entifier.php:38

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

html-entifier/html-entifier.php Passed 13 tests

This is the main PHP file of "HTML Entifier" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Plugin that converts smart quotes and other symbols to HTML entities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161815

PHP code Passed 2 tests

Analyzing 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.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin