79% cf7-zendesk

Code Review | WP Zendesk for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms

WordPress plugin WP Zendesk for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: cf7-zendesk
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Oct 7, 2023
  • Number of updates: 25
  • Update frequency: every 73.1 days
  • Top authors: CRMPerks (92%)asif876 (12%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /7,811 total downloads

Benchmarks

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.71MB] [CPU: ▲2.18ms] Passed 4 tests

This is a short check of server-side resources used by WP Zendesk for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3440.48 ▲1.13
Dashboard /wp-admin4.18 ▲0.8848.00 ▼2.85
Posts /wp-admin/edit.php4.23 ▲0.8852.39 ▲5.74
Add New Post /wp-admin/post-new.php6.70 ▲0.8196.79 ▲4.71
Media Library /wp-admin/upload.php4.04 ▲0.8143.42 ▲12.48

Server storage [IO: ▲1.44MB] [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, 7 new options
New tables
wp_vxcf_zendesk
wp_vxcf_zendesk_log
wp_vxcf_zendesk_accounts
New WordPress options
vxcf_zendesk_version
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Zendesk for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.46 ▼0.211.66 ▲0.0241.05 ▼0.76
Dashboard /wp-admin2,214 ▲335.61 ▼0.1190.38 ▼5.9442.02 ▼0.07
Posts /wp-admin/edit.php2,116 ▲161.97 ▲0.0138.93 ▲5.2035.15 ▲0.12
Add New Post /wp-admin/post-new.php1,544 ▲1823.25 ▲0.10662.62 ▼25.2056.71 ▲3.04
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.0593.46 ▼2.2443.73 ▼1.73

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 7 options in the database
    • theysaidso_admin_options
    • vxcf_zendesk_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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

Optimizations

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: elementor forms zendesk, contact form 7 zendesk, ninja forms zendesk, zendesk form, wpforms zendesk

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

The principal PHP file in "WP Zendesk for Contact Form 7, WPForms, Elementor, Formidable and Ninja Forms" v. 1.1.2 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 229 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 plugin8,043 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP207827607,126
SVG100640
CSS52310271
JavaScript31206

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 108)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity150.86
▷ Minimum class complexity6.00
▷ Maximum class complexity463.00
Average method complexity6.60
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods186
▷ Static methods94.84%
▷ Public methods18096.77%
▷ Protected methods00.00%
▷ Private methods63.23%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ 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.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/premium/fields-mapping.png13.95KB14.01KB0.00%
css/images/ui-bg_white-lines_85_f7f7ba_40x100.png0.36KB0.09KB▼ 73.63%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_dots-small_35_35414f_2x2.png0.22KB0.08KB▼ 60.99%