79% gf-zoho

Code Review | WP Gravity Forms Zoho CRM and Bigin

WordPress plugin WP Gravity Forms Zoho CRM and Bigin scored79%from 54 tests.

About plugin

  • Plugin page: gf-zoho
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2018
  • Latest release: Jul 25, 2023
  • Number of updates: 33
  • Update frequency: every 50.9 days
  • Top authors: CRMPerks (78.79%)asif876 (24.24%)

Code review

54 tests

User reviews

22 reviews

Install metrics

500+ active /9,988 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by WP Gravity Forms Zoho CRM and Bigin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3945.67 ▲5.58
Dashboard /wp-admin3.75 ▲0.4550.18 ▼1.30
Posts /wp-admin/edit.php3.81 ▲0.4546.90 ▼2.49
Add New Post /wp-admin/post-new.php6.27 ▲0.3882.57 ▼20.99
Media Library /wp-admin/upload.php3.61 ▲0.3837.58 ▲2.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_zoho_accounts
wp_vxg_zoho
wp_vxg_zoho_log
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
vxg_zoho_pro_version
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Gravity Forms Zoho CRM and Bigin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.66 ▼0.741.77 ▲0.0843.78 ▲1.53
Dashboard /wp-admin2,228 ▲434.85 ▼0.0398.49 ▼15.1041.78 ▼2.74
Posts /wp-admin/edit.php2,114 ▲252.07 ▲0.0740.08 ▼1.0132.84 ▼5.09
Add New Post /wp-admin/post-new.php1,532 ▼1117.65 ▼0.45683.16 ▲27.2751.15 ▼0.40
Media Library /wp-admin/upload.php1,413 ▲254.31 ▲0.1096.03 ▼8.9643.23 ▼0.77

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxg_zoho_log
    • wp_vxg_zoho_accounts
    • wp_vxg_zoho
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • vxg_zoho_pro_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: zoho addon, zoho, zoho leads, gravity forms, zoho plugin...

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

The main PHP script in "WP Gravity Forms Zoho CRM and Bigin" version 1.2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected7,323 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP207849337,317
JavaScript2105
CSS1001

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity127.50
▷ Minimum class complexity6.00
▷ Maximum class complexity343.00
Average method complexity6.56
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods182
▷ Static methods31.65%
▷ Public methods17294.51%
▷ Protected methods00.00%
▷ Private methods105.49%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
9 PNG files occupy 0.02MB 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/Android.png0.56KB0.62KB0.00%
images/created.png1.52KB0.50KB▼ 67.24%
images/filtered.png1.47KB0.48KB▼ 67.40%
images/zoho-crm-logo.png14.86KB5.03KB▼ 66.16%