78% html-contact-form

Code Review | HTML Contact Form

WordPress plugin HTML Contact Form scored78%from 54 tests.

About plugin

  • Plugin page: html-contact-form
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Mar 24, 2019
  • Number of updates: 82
  • Update frequency: every 13.6 days
  • Top authors: arshidkv12 (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

500+ active /21,830 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.08ms] Passed 4 tests

A check of server-side resources used by HTML Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.74 ▼2.03
Dashboard /wp-admin3.35 ▲0.0550.80 ▼0.67
Posts /wp-admin/edit.php3.40 ▲0.0552.85 ▲0.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0599.19 ▲2.55
Media Library /wp-admin/upload.php3.28 ▲0.0540.51 ▲6.46
HTML Contact Form /wp-admin/options-general.php?page=html-contact-form3.2540.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HTML Contact Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.36 ▲0.191.60 ▼0.4747.26 ▲5.27
Dashboard /wp-admin2,199 ▲255.63 ▲0.0585.61 ▼19.9439.17 ▼13.93
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0341.25 ▲3.2136.80 ▲2.89
Add New Post /wp-admin/post-new.php1,532 ▲423.32 ▲0.01625.91 ▼94.4455.14 ▼11.24
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.10100.45 ▼12.8145.40 ▼4.37
HTML Contact Form /wp-admin/options-general.php?page=html-contact-form1,2842.4648.9033.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/html-contact-form/captcha.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/html-contact-form/html-contact-form.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
You can look at the official readme.txt

html-contact-form/html-contact-form.php Passed 13 tests

"HTML Contact Form" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Contact Form: Simple but flexible contact form. Easy to add CSS styling or input fields (HTML5)

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 plugin10,477 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/warn.png0.44KB0.36KB▼ 19.65%
img/lines.png0.75KB0.55KB▼ 27.40%