90% jetpack-contact-form-auto-reply

Code Review | Jetpack Contact Form Auto Reply

WordPress plugin Jetpack Contact Form Auto Reply scored90%from 54 tests.

About plugin

  • Plugin page: jetpack-contact-f...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 7, 2014
  • Latest release: Dec 4, 2018
  • Number of updates: 10
  • Update frequency: every 145.9 days
  • Top authors: hlashbrooke (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

500+ active /12,310 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.65ms] Passed 4 tests

A check of server-side resources used by Jetpack Contact Form Auto Reply
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.03 ▲5.65
Dashboard /wp-admin3.33 ▼0.0244.79 ▼14.16
Posts /wp-admin/edit.php3.38 ▲0.0242.88 ▼1.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.54 ▼9.26
Media Library /wp-admin/upload.php3.25 ▲0.0234.04 ▲2.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
jetpack_contact_form_auto_reply_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Jetpack Contact Form Auto Reply: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.441.72 ▲0.1044.03 ▲5.43
Dashboard /wp-admin2,195 ▲215.64 ▼0.0285.83 ▼3.3538.03 ▼3.70
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0235.01 ▲0.9732.06 ▼4.17
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.15609.85 ▼51.6253.22 ▼3.88
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0092.18 ▼16.2442.73 ▼4.09

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • jetpack_contact_form_auto_reply_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 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
5 plugin tags: jetpack, email, contact, form, auto reply

jetpack-contact-form-auto-reply/jetpack-contact-form-auto-reply.php Passed 13 tests

The main file in "Jetpack Contact Form Auto Reply" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
Send an automatic reply to anyone who fills in your Jetpack contact form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected250 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4121192250

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin