79% gf-freshdesk

Code Review | WP Gravity Forms FreshDesk Plugin

WordPress plugin WP Gravity Forms FreshDesk Plugin scored79%from 54 tests.

About plugin

  • Plugin page: gf-freshdesk
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 27, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 28
  • Update frequency: every 70.5 days
  • Top authors: CRMPerks (82.14%)asif876 (21.43%)

Code review

54 tests

User reviews

18 reviews

Install metrics

200+ active /5,324 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.40MB] [CPU: ▲1.39ms] Passed 4 tests

A check of server-side resources used by WP Gravity Forms FreshDesk Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3948.24 ▲7.71
Dashboard /wp-admin3.75 ▲0.4553.60 ▲5.52
Posts /wp-admin/edit.php3.80 ▲0.4445.87 ▼0.71
Add New Post /wp-admin/post-new.php6.27 ▲0.3881.61 ▼6.96
Media Library /wp-admin/upload.php3.60 ▲0.3740.92 ▲8.21

Server storage [IO: ▲0.59MB] [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: 49 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_freshdesk_log
wp_vxg_freshdesk
wp_vxg_freshdesk_accounts
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
vxg_freshdesk_pro_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP Gravity Forms FreshDesk Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.33 ▲0.001.81 ▲0.2244.12 ▲4.60
Dashboard /wp-admin2,217 ▲375.53 ▼0.1284.35 ▼5.3438.90 ▼2.98
Posts /wp-admin/edit.php2,126 ▲262.01 ▲0.0033.85 ▼1.3534.46 ▼0.70
Add New Post /wp-admin/post-new.php1,544 ▲1623.02 ▲0.16682.11 ▲23.9670.59 ▲21.20
Media Library /wp-admin/upload.php1,428 ▲254.17 ▼0.0196.21 ▼2.1144.03 ▼0.04

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_vxg_freshdesk
    • wp_vxg_freshdesk_log
    • wp_vxg_freshdesk_accounts
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • vxg_freshdesk_pro_version
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: support, freshdesk extension, tickets, gravity forms, freshdesk

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

The main PHP file in "WP Gravity Forms FreshDesk Plugin" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,889 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP207729096,883
JavaScript2105
CSS1001

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 117)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity118.00
▷ Minimum class complexity6.00
▷ Maximum class complexity367.00
Average method complexity6.67
▷ Minimum method complexity1.00
▷ Maximum method complexity117.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods166
▷ Static methods31.81%
▷ Public methods15693.98%
▷ Protected methods00.00%
▷ Private methods106.02%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
24 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/premium/export-entries.png11.42KB11.33KB▼ 0.77%
images/deleted.png0.48KB0.33KB▼ 31.03%
images/active1.png0.21KB0.18KB▼ 16.89%
images/premium/browsing-history.png22.90KB8.62KB▼ 62.34%
images/freshdesk-crm-logo.png26.57KB26.56KB0.01%