90% confirm-mode-for-contact-form-7

Code Review | Confirm Mode for Contact Form 7

WordPress plugin Confirm Mode for Contact Form 7 scored 90% from 54 tests.

About plugin

  • Plugin page: confirm-mode-for-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: Apr 16, 2022
  • Latest release: Apr 18, 2022
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: cmiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.56ms] Passed 4 tests

Server-side resources used by Confirm Mode for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.55 ▼0.39
Dashboard /wp-admin3.35 ▲0.0547.55 ▲0.44
Posts /wp-admin/edit.php3.40 ▲0.0450.08 ▲1.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.26 ▼7.40
Media Library /wp-admin/upload.php3.27 ▲0.0439.40 ▲5.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Confirm Mode for Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.71 ▼0.722.12 ▲0.3243.35 ▲2.89
Dashboard /wp-admin2,206 ▲184.86 ▼0.02107.57 ▼10.0840.87 ▼2.92
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.1238.67 ▼3.1136.04 ▼0.60
Add New Post /wp-admin/post-new.php1,533 ▼123.19 ▼0.11694.22 ▲65.4656.34 ▼3.04
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0398.25 ▼14.3640.96 ▼4.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

confirm-mode-for-contact-form-7/confirm-mode-for-contact-form-7.php Passed 13 tests

"Confirm Mode for Contact Form 7" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
This is an add-on to introduce confirmation mode into Contact Form 7.

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 detected467 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP46172236
JavaScript22032209
CSS14017
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin