84% cf7-to-zapier

Code Review | CF7 to Webhook

WordPress plugin CF7 to Webhook scored84%from 54 tests.

About plugin

  • Plugin page: cf7-to-zapier
  • Plugin version: 2.4.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2017
  • Latest release: Oct 1, 2023
  • Number of updates: 39
  • Update frequency: every 56.4 days
  • Top authors: mariovalney (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

20,000+ active /166,051 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.10ms] Passed 4 tests

An overview of server-side resources used by CF7 to Webhook
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1037.94 ▼7.18
Dashboard /wp-admin3.40 ▲0.1049.00 ▼5.23
Posts /wp-admin/edit.php3.52 ▲0.1651.38 ▲0.86
Add New Post /wp-admin/post-new.php5.98 ▲0.1094.22 ▲4.09
Media Library /wp-admin/upload.php3.32 ▲0.1038.00 ▼0.84

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CF7 to Webhook
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.26 ▼0.301.82 ▼0.2441.25 ▼3.11
Dashboard /wp-admin2,214 ▲375.64 ▼0.0589.67 ▼9.7040.23 ▼3.70
Posts /wp-admin/edit.php2,119 ▲192.00 ▼0.1040.60 ▲2.1539.08 ▲5.55
Add New Post /wp-admin/post-new.php1,540 ▲1423.51 ▲0.37683.02 ▼14.2160.67 ▲9.76
Media Library /wp-admin/upload.php1,422 ▲194.11 ▼0.1199.78 ▼2.8144.38 ▼4.90

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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)
Good news, no errors were detected

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
Please fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cf7-to-zapier/modules/cf7/admin/webhook-panel-html.php
    • > /wp-content/plugins/cf7-to-zapier/includes/functions-debug.php
    • > /wp-content/plugins/cf7-to-zapier/cf7-to-zapier.php
    • > /wp-content/plugins/cf7-to-zapier/modules/cf7/class-module-cf7.php
    • > /wp-content/plugins/cf7-to-zapier/modules/zapier/class-module-zapier.php

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: contact form 7, contact form, webhook, zapier, cf7...

cf7-to-zapier/cf7-to-zapier.php 92% from 13 tests

The main file in "CF7 to Webhook" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin585 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7169391585

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity23.67
▷ Minimum class complexity6.00
▷ Maximum class complexity59.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2068.97%
▷ Protected methods00.00%
▷ Private methods931.03%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.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
There were not PNG files found in your plugin