84% confirm-plus-contact-form-7

Code Review | Confirm Plus Contact Form 7

WordPress plugin Confirm Plus Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: confirm-plus-cont...
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.2-6.0
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Sep 8, 2023
  • Number of updates: 29
  • Update frequency: every 24.0 days
  • Top authors: trustring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

4,000+ active /22,784 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼11.15ms] Passed 4 tests

An overview of server-side resources used by Confirm Plus Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.77 ▼1.02
Dashboard /wp-admin3.36 ▲0.0550.77 ▲0.72
Posts /wp-admin/edit.php3.41 ▲0.0552.22 ▼9.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.42 ▼34.23
Media Library /wp-admin/upload.php3.28 ▲0.0536.08 ▲0.01

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

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

Browser metrics Passed 4 tests

Confirm Plus Contact Form 7: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.50 ▲0.321.93 ▲0.1739.86 ▼1.33
Dashboard /wp-admin2,203 ▲265.61 ▲0.0592.23 ▼2.6843.43 ▼3.27
Posts /wp-admin/edit.php2,105 ▲12.01 ▲0.0341.11 ▼4.2436.69 ▼2.89
Add New Post /wp-admin/post-new.php1,555 ▲1023.02 ▼0.24610.71 ▼55.6864.19 ▲12.17
Media Library /wp-admin/upload.php1,408 ▲84.24 ▲0.01104.98 ▼1.4045.56 ▲1.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/confirm-plus-contact-form-7/include/contact-form-7-cfm-pls-class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: contact, contact form confirm, form

confirm-plus-contact-form-7/contact-form-7-cfm-pls.php 92% from 13 tests

This is the main PHP file of "Confirm Plus Contact Form 7" version 1.1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("confirm-plus-contact-form-7.php" instead of "contact-form-7-cfm-pls.php")

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
No dangerous file extensions were detected536 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript17056293
PHP24849140
CSS19066
PO File171437

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin