100% cf7-support-deprecated-settings

Code Review | Contact Form 7: Support Deprecated Settings

WordPress plugin Contact Form 7: Support Deprecated Settings scored 100% from 54 tests.

About plugin

  • Plugin page: cf7-support-depre...
  • Plugin version: 0.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.8.1
  • First release: Dec 14, 2017
  • Latest release: Feb 2, 2018
  • Number of updates: 5
  • Update frequency: every 10.2 days
  • Top authors: dmchale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 676 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Contact Form 7: Support Deprecated Settings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.04 ▲15.15
Dashboard /wp-admin3.08 ▲0.0345.23 ▲1.82
Posts /wp-admin/edit.php3.14 ▲0.0343.75 ▲0.22
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.90 ▼546.35
Media Library /wp-admin/upload.php3.03 ▲0.0232.33 ▼4.89

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form 7: Support Deprecated Settings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.30 ▲0.678.44 ▼1.3851.35 ▲1.30
Dashboard /wp-admin2,973 ▲425.91 ▼0.02134.53 ▼7.28117.03 ▲8.96
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0061.19 ▼3.9984.73 ▼13.27
Add New Post /wp-admin/post-new.php1,606 ▼27018.86 ▼0.37366.84 ▲9.02103.45 ▼9.86
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.00161.06 ▲11.51119.24 ▲0.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: javascript, email, contact form, contact, form

cf7-support-deprecated-settings/cf7-support-deprecated-settings.php Passed 13 tests

This is the main PHP file of "Contact Form 7: Support Deprecated Settings" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
102 characters long description:
Provide continued support for `on_sent_ok` and `on_submit` within Contact Form 7's Additional Settings

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
Everything looks great! No dangerous files found in this plugin114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP263112114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods436.36%
▷ Protected methods00.00%
▷ Private methods763.64%
Functions0
▷ Named functions00.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 are no PNG files in this plugin