89% contact-me-very-simple-contact-form

Code Review | Contact Me - Very Simple Contact Form

WordPress plugin Contact Me - Very Simple Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: contact-me-very-s...
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jun 2, 2018
  • Latest release: Jun 3, 2018
  • Number of updates: 34
  • Update frequency: every 8.6 days
  • Top authors: rorinka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.32ms] Passed 4 tests

Analyzing server-side resources used by Contact Me - Very Simple Contact Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.48 ▼1.85
Dashboard /wp-admin3.34 ▼0.0045.62 ▼18.73
Posts /wp-admin/edit.php3.40 ▲0.0449.13 ▼2.79
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.23 ▼17.91
Media Library /wp-admin/upload.php3.27 ▲0.0336.83 ▼1.03
Contact Me /wp-admin/options-general.php?page=vvcf-contact-me3.2335.52

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Contact Me - Very Simple Contact Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.23 ▼1.161.76 ▼0.2644.34 ▲1.12
Dashboard /wp-admin2,210 ▲194.89 ▲0.05100.56 ▼8.6341.47 ▼1.56
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0141.39 ▲0.4435.83 ▲5.12
Add New Post /wp-admin/post-new.php1,549 ▲2123.34 ▼0.01632.98 ▲0.0548.83 ▼2.78
Media Library /wp-admin/upload.php1,395 ▲44.26 ▲0.09100.19 ▼0.5542.15 ▼1.21
Contact Me /wp-admin/options-general.php?page=vvcf-contact-me7782.0325.2728.73

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

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

The main PHP file in "Contact Me - Very Simple Contact Form" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("contact-me-very-simple-contact-form.php" instead of "vvcf-contact-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34930213
CSS20028

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin