79% gf-zendesk

Code Review | WP Gravity Forms Zendesk

WordPress plugin WP Gravity Forms Zendesk scored79%from 54 tests.

About plugin

  • Plugin page: gf-zendesk
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Aug 10, 2023
  • Number of updates: 22
  • Update frequency: every 71.3 days
  • Top authors: CRMPerks (90.91%)asif876 (13.64%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /7,761 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.39MB] [CPU: ▼8.13ms] Passed 4 tests

A check of server-side resources used by WP Gravity Forms Zendesk
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3943.20 ▲0.23
Dashboard /wp-admin3.75 ▲0.4151.69 ▼15.82
Posts /wp-admin/edit.php3.81 ▲0.4553.63 ▲1.28
Add New Post /wp-admin/post-new.php6.27 ▲0.3989.44 ▼16.35
Media Library /wp-admin/upload.php3.61 ▲0.3838.91 ▼0.57

Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/gf-zendesk/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_zendesk_accounts
wp_vxg_zendesk
wp_vxg_zendesk_log
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
vxg_zendesk_pro_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Gravity Forms Zendesk
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.63 ▼0.671.72 ▲0.1240.60 ▼0.16
Dashboard /wp-admin2,246 ▲404.87 ▼0.02108.77 ▼1.3739.02 ▼2.65
Posts /wp-admin/edit.php2,126 ▲262.01 ▼0.0143.30 ▲5.9738.87 ▲2.35
Add New Post /wp-admin/post-new.php1,567 ▲3123.33 ▲0.25669.68 ▼7.0854.65 ▲0.06
Media Library /wp-admin/upload.php1,422 ▲224.19 ▼0.0998.69 ▼9.0542.71 ▼2.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables detected upon uninstall: 3 tables
    • wp_vxg_zendesk
    • wp_vxg_zendesk_log
    • wp_vxg_zendesk_accounts
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • vxg_zendesk_pro_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: zendesk gravity forms, zendesk, zendesk gravity forms integration, gravity forms, gravity forms zendesk

gf-zendesk/gf-zendesk.php 92% from 13 tests

"WP Gravity Forms Zendesk" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected6,874 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP207648716,868
JavaScript2105
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity111.25
▷ Minimum class complexity6.00
▷ Maximum class complexity329.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods171
▷ Static methods31.75%
▷ Public methods16194.15%
▷ Protected methods00.00%
▷ Private methods105.85%
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
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/updated.png1.53KB0.50KB▼ 67.37%
images/failed.png1.54KB0.48KB▼ 68.88%
images/deleted.png0.48KB0.33KB▼ 31.03%
images/zendesk-crm-logo.png6.24KB2.93KB▼ 52.97%
images/created.png1.52KB0.50KB▼ 67.24%