90% wpcf7-custom-recipient

Code Review | Contact Form 7 Custom Recipient

WordPress plugin Contact Form 7 Custom Recipient scored90%from 54 tests.

About plugin

  • Plugin page: wpcf7-custom-reci...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: Jan 6, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jordif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /549 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.00MB] [CPU: ▼9.94ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form 7 Custom Recipient
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.90 ▲5.86
Dashboard /wp-admin3.32 ▼0.0351.08 ▼17.96
Posts /wp-admin/edit.php3.37 ▲0.0149.70 ▼2.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.49 ▼14.43
Media Library /wp-admin/upload.php3.24 ▲0.0138.85 ▼4.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Custom Recipient
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.311.89 ▼0.2146.12 ▲3.76
Dashboard /wp-admin2,195 ▲215.62 ▼0.0299.48 ▲6.7739.77 ▼4.41
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0533.69 ▼5.7034.31 ▼7.73
Add New Post /wp-admin/post-new.php6,223 ▲4,81925.99 ▲8.06941.62 ▲299.9757.36 ▲0.62
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.10102.77 ▼12.6045.86 ▼5.22

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output 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 uses markdown syntax to describe your plugin to the world
4 plugin tags: contact form 7, custom recipient, recipient, cf7

wpcf7-custom-recipient/wpcf7-custom-recipient.php Passed 13 tests

The main PHP file in "Contact Form 7 Custom Recipient" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Define the contact form recipient for each page, post or custom post type individually

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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
No PNG files were detected