83% contact-form-7-modules

Code Review | Contact Form 7 Modules

WordPress plugin Contact Form 7 Modules scored83%from 54 tests.

About plugin

  • Plugin page: contact-form-7-mo...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2010
  • Latest release: Feb 2, 2017
  • Number of updates: 44
  • Update frequency: every 51.6 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

8,000+ active /241,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Contact Form 7 Modules
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.43 ▼3.01
Dashboard /wp-admin3.36 ▲0.0647.23 ▼6.22
Posts /wp-admin/edit.php3.41 ▲0.0550.78 ▼1.59
Add New Post /wp-admin/post-new.php5.94 ▲0.05100.83 ▼3.57
Media Library /wp-admin/upload.php3.28 ▲0.0536.91 ▲1.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Modules
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.052.17 ▲0.4745.19 ▲0.54
Dashboard /wp-admin2,192 ▲145.63 ▼0.0980.78 ▼53.0338.93 ▼8.58
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0041.60 ▲6.4438.26 ▲3.00
Add New Post /wp-admin/post-new.php1,531 ▲520.90 ▼2.11677.66 ▲2.0454.35 ▲2.43
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.00104.95 ▲7.6447.66 ▲4.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-modules/hidden.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-modules/send-all-fields.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: hidden fields, contact form 7, contact forms 7, cf7, all fields

contact-form-7-modules/send-all-fields.php 69% from 13 tests

This is the main PHP file of "Contact Form 7 Modules" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("contact-form-7-modules.php" instead of "send-all-fields.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected404 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28572321
PO File1252583

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin