90% vanilla-contact-form

Code Review | Vanilla Contact Form

WordPress plugin Vanilla Contact Form scored90%from 54 tests.

About plugin

  • Plugin page: vanilla-contact-form
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2020
  • Latest release: Jan 22, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: dominiquethedeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Vanilla Contact Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.32 ▼0.62
Dashboard /wp-admin3.31 ▲0.0043.18 ▼7.27
Posts /wp-admin/edit.php3.36 ▲0.0046.65 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.39 ▼8.69
Media Library /wp-admin/upload.php3.23 ▲0.0034.90 ▲2.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vanilla Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.32 ▼1.111.89 ▼0.0547.52 ▼0.86
Dashboard /wp-admin2,206 ▲215.79 ▲0.9094.86 ▼19.8641.54 ▼3.34
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0038.72 ▲4.0135.19 ▼2.51
Add New Post /wp-admin/post-new.php1,514 ▼317.77 ▲0.24655.15 ▼7.7370.97 ▼8.39
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0694.06 ▼5.0642.57 ▼0.07

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: contact form, vanilla, simple

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

The main PHP script in "Vanilla Contact Form" version 1.0 is automatically included on every request by WordPress
93 characters long description:
A bare-bones WordPress contact form with Bootstrap 4 styling. Simple and sweet, like Vanilla!

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
No dangerous file extensions were detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141556
CSS1061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin