90% hoo-contact-form

Code Review | Hoo Contact Form

WordPress plugin Hoo Contact Form scored90%from 54 tests.

About plugin

  • Plugin page: hoo-contact-form
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Sep 25, 2017
  • Latest release: Dec 28, 2020
  • Number of updates: 5
  • Update frequency: every 238.2 days
  • Top authors: hoosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /11,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Hoo Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.38 ▲4.24
Dashboard /wp-admin3.39 ▲0.0947.75 ▼4.22
Posts /wp-admin/edit.php3.44 ▲0.0953.02 ▼0.76
Add New Post /wp-admin/post-new.php5.99 ▲0.1187.89 ▼13.23
Media Library /wp-admin/upload.php3.32 ▲0.0938.68 ▲5.07
Hoo Contact Form /wp-admin/options-general.php?page=hoo-contact-form3.2835.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hoo Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.08 ▼0.0814.82 ▲13.1759.17 ▲16.42
Dashboard /wp-admin2,206 ▲325.64 ▲0.0289.06 ▼17.9339.71 ▼2.34
Posts /wp-admin/edit.php2,108 ▲82.04 ▲0.0334.99 ▼6.1233.90 ▼2.29
Add New Post /wp-admin/post-new.php1,533 ▲523.19 ▲0.17669.00 ▼26.3262.35 ▼0.62
Media Library /wp-admin/upload.php1,408 ▲54.41 ▲0.23102.05 ▲0.3248.10 ▲6.20
Hoo Contact Form /wp-admin/options-general.php?page=hoo-contact-form9702.0527.7826.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

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
1 plugin tags: contact form

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

The entry point to "Hoo Contact Form" version 1.0.1 is a PHP file that has certain tags in its header comment area
21 characters long description:
Hoosoft Contact Form.

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
Success! There were no dangerous files found in this plugin31,982 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript411,3202,30819,556
CSS1011549,154
SVG2002,900
PHP17514372

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected