89% wpwh-contact-form-7

Code Review | WP Webhooks - Contact Form 7 Integration

WordPress plugin WP Webhooks - Contact Form 7 Integration scored89%from 54 tests.

About plugin

  • Plugin page: wpwh-contact-form-7
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: May 2, 2021
  • Number of updates: 11
  • Update frequency: every 64.9 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,002 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.01MB] [CPU: ▼4.25ms] Passed 4 tests

A check of server-side resources used by WP Webhooks - Contact Form 7 Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.35 ▲0.54
Dashboard /wp-admin3.31 ▲0.0155.78 ▲2.11
Posts /wp-admin/edit.php3.43 ▲0.0750.93 ▼11.17
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.68 ▼1.31
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▼5.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Webhooks - Contact Form 7 Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.72 ▲0.371.85 ▲0.3241.80 ▲0.22
Dashboard /wp-admin2,208 ▲285.56 ▼0.0791.30 ▼4.3340.93 ▲0.37
Posts /wp-admin/edit.php2,120 ▲202.00 ▼0.0133.08 ▼8.6835.13 ▼4.74
Add New Post /wp-admin/post-new.php1,554 ▲2018.32 ▼4.60622.93 ▼28.5072.96 ▲8.88
Media Library /wp-admin/upload.php1,422 ▲284.27 ▲0.0599.43 ▼13.0045.09 ▲1.86

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #1 in wpwh-contact-form-7/assets to your readme.txt
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wpwh-contact-form-7/wpwh-cf7.php 92% from 13 tests

The principal PHP file in "WP Webhooks - Contact Form 7 Integration" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpwh-contact-form-7.php" instead of "wpwh-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin528 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112988528

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity99.00
▷ Minimum class complexity99.00
▷ Maximum class complexity99.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1890.00%
▷ Protected methods00.00%
▷ Private methods210.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected