90% very-simple-contact-form

Code Review | VS Contact Form

WordPress plugin VS Contact Form scored90%from 54 tests.

About plugin

  • Plugin page: very-simple-conta...
  • Plugin version: 14.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2013
  • Latest release: Oct 8, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

47 reviews

Install metrics

10,000+ active /518,822 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.47ms] Passed 4 tests

A check of server-side resources used by VS Contact Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2446.48 ▲6.79
Dashboard /wp-admin3.61 ▲0.2653.56 ▼5.64
Posts /wp-admin/edit.php3.72 ▲0.3651.79 ▲3.38
Add New Post /wp-admin/post-new.php6.19 ▲0.3087.72 ▼8.65
Media Library /wp-admin/upload.php3.53 ▲0.3041.66 ▲5.05
VS Contact Form /wp-admin/options-general.php?page=vscf3.5036.80

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_vscf_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for VS Contact Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▲0.011.74 ▲0.0643.28 ▲0.55
Dashboard /wp-admin2,196 ▲195.58 ▼0.1083.35 ▼3.7837.79 ▼3.42
Posts /wp-admin/edit.php2,104 ▲222.01 ▼0.0342.92 ▲7.1436.47 ▲2.01
Add New Post /wp-admin/post-new.php1,531 ▲520.95 ▼2.46657.59 ▼22.1743.32 ▼17.07
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0292.82 ▼13.9743.85 ▼3.45
VS Contact Form /wp-admin/options-general.php?page=vscf1,0732.1223.1431.79

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 detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: email, form, contact, simple, contact form

very-simple-contact-form/vscf.php 92% from 13 tests

The main PHP script in "VS Contact Form" version 14.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("very-simple-contact-form.php" instead of "vscf.php")

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
Good job! No executable or dangerous file extensions detected1,584 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP91731441,553
CSS2101128
JavaScript1113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions58
▷ Named functions58100.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
No PNG files were detected