79% cf7-zendesk

Code Review | Contact Form 7 Zendesk

WordPress plugin Contact Form 7 Zendesk scored 79% from 54 tests.

About plugin

  • Plugin page: cf7-zendesk
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.8.1
  • First release: Oct 12, 2018
  • Latest release: Aug 29, 2021
  • Number of updates: 16
  • Update frequency: every 70.9 days
  • Top authors: CRMPerks (87.5%)asif876 (18.75%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active / 4,028 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.62MB] [CPU: ▼138.58ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form 7 Zendesk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.08 ▲0.2437.44 ▲2.66
Dashboard /wp-admin3.83 ▲0.7853.68 ▲9.89
Posts /wp-admin/edit.php3.88 ▲0.7850.64 ▲3.26
Add New Post /wp-admin/post-new.php6.13 ▲0.7097.31 ▼566.16
Media Library /wp-admin/upload.php3.78 ▲0.7838.16 ▲5.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: 3 new tables, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

Contact Form 7 Zendesk: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.91 ▲0.368.79 ▼0.6944.85 ▼2.69
Dashboard /wp-admin2,993 ▲565.92 ▼0.07137.09 ▼14.06106.59 ▼2.23
Posts /wp-admin/edit.php2,756 ▲172.71 ▼0.0065.78 ▼0.9887.32 ▼3.03
Add New Post /wp-admin/post-new.php1,696 ▲2618.70 ▼0.56392.28 ▲0.68102.86 ▼3.65
Media Library /wp-admin/upload.php1,830 ▲235.03 ▲0.02153.78 ▼5.33117.57 ▼14.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_vxcf_zendesk_log
    • wp_vxcf_zendesk_accounts
    • wp_vxcf_zendesk
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • vxcf_zendesk_version

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)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: contact form zendesk, zendesk form, contact form 7, zendesk, contact form 7 zendesk

cf7-zendesk/cf7-zendesk.php 85% from 13 tests

The principal PHP file in "Contact Form 7 Zendesk" v. 1.0.8 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,629 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 107)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity129.57
▷ Minimum class complexity6.00
▷ Maximum class complexity343.00
Average method complexity5.98
▷ Minimum method complexity1.00
▷ Maximum method complexity107.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods73.91%
▷ Public methods17396.65%
▷ Protected methods00.00%
▷ Private methods63.35%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants1100.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
48 PNG files occupy 0.23MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
images/premium/export-entries.png11.42KB11.33KB▼ 0.77%