10% wetech-contact-forms-webhook

Code Review | WeTech Contact Forms Webhook

WordPress plugin WeTech Contact Forms Webhook scored10%from 54 tests.

About plugin

  • Plugin page: wetech-contact-fo...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Feb 15, 2022
  • Number of updates: 4
  • Update frequency: every 33.3 days
  • Top authors: liorlotan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /768 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/wetech-contact-forms-webhook/wetech-contact-forms-webhook.php+40
    Use of undefined constant WPCF7_VERSION - assumed 'WPCF7_VERSION' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.97MB] [CPU: ▼60.98ms] Passed 4 tests

This is a short check of server-side resources used by WeTech Contact Forms Webhook
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.39 ▼32.35
Dashboard /wp-admin2.05 ▼1.305.83 ▼66.47
Posts /wp-admin/edit.php2.05 ▼1.314.85 ▼45.98
Add New Post /wp-admin/post-new.php2.05 ▼3.845.76 ▼99.13
Media Library /wp-admin/upload.php2.05 ▼1.185.97 ▼27.70
WeTech Webhooks /wp-admin/options-general.php?page=wetech_webhooks2.055.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WeTech Contact Forms Webhook
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.22 ▼0.051.72 ▲0.0744.31 ▲2.53
Dashboard /wp-admin2,211 ▲345.62 ▲0.0896.16 ▼7.4643.83 ▼1.24
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0635.33 ▼4.9832.63 ▼6.57
Add New Post /wp-admin/post-new.php1,546 ▲2023.28 ▼0.02671.80 ▼22.2952.34 ▼9.56
Media Library /wp-admin/upload.php1,419 ▲194.25 ▼0.0297.84 ▼0.8342.20 ▼6.07
WeTech Webhooks /wp-admin/options-general.php?page=wetech_webhooks8002.0324.9225.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wetech-contact-forms-webhook/wetech-contact-forms-webhook.php+40
    Use of undefined constant WPCF7_VERSION - assumed 'WPCF7_VERSION' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wetech_webhooks
    • > Warning in wp-content/plugins/wetech-contact-forms-webhook/wetech-contact-forms-webhook.php+40
    Use of undefined constant WPCF7_VERSION - assumed 'WPCF7_VERSION' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wetech_webhooks
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wetech-contact-forms-webhook/wetech-contact-forms-webhook.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
6 plugin tags: contact form webhook, webhook, wetech crm webhook, form webhook, wetech crm...

wetech-contact-forms-webhook/wetech-contact-forms-webhook.php Passed 13 tests

The main PHP script in "WeTech Contact Forms Webhook" version 1.2 is automatically included on every request by WordPress
65 characters long description:
Compatible with Contact Form 7, Elementor forms and Gravity Forms

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
Success! There were no dangerous files found in this plugin1,102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1178581,102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.72
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%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin