67% integration-for-gravity-forms-and-zoho

Code Review | Integration for Gravity Forms with Zoho CRM

WordPress plugin Integration for Gravity Forms with Zoho CRM scored67%from 54 tests.

About plugin

  • Plugin page: integration-for-g...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Oct 15, 2021
  • Number of updates: 30
  • Update frequency: every 0.3 days
  • Top authors: crmwpcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /376 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.57ms] Passed 4 tests

Analyzing server-side resources used by Integration for Gravity Forms with Zoho CRM
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.06 ▼6.73
Dashboard /wp-admin3.32 ▲0.0250.56 ▼0.71
Posts /wp-admin/edit.php3.37 ▲0.0253.51 ▲1.04
Add New Post /wp-admin/post-new.php5.92 ▲0.04104.50 ▲0.11
Media Library /wp-admin/upload.php3.24 ▲0.0242.44 ▲5.81
Authentication /wp-admin/admin.php?page=igzf_zoho_configuration3.2137.10
Integration /wp-admin/admin.php?page=igzf_zoho_integration3.2438.40
API Error Logs /wp-admin/admin.php?page=igzf_zoho_log3.2134.08

Server storage [IO: ▲0.85MB] [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: 18 new files
Database: 1 new table, 6 new options
New tables
wp_igzfformdata
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for Gravity Forms with Zoho CRM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.62 ▼0.961.66 ▼0.2042.91 ▼2.51
Dashboard /wp-admin2,244 ▲534.85 ▼0.05113.18 ▼5.6940.51 ▼3.46
Posts /wp-admin/edit.php2,130 ▲411.99 ▲0.0039.52 ▲4.3135.36 ▼0.51
Add New Post /wp-admin/post-new.php1,546 ▲423.13 ▲4.76640.14 ▼23.5653.26 ▼6.12
Media Library /wp-admin/upload.php1,429 ▲444.23 ▼0.0299.77 ▼8.6448.97 ▲2.77
Authentication /wp-admin/admin.php?page=igzf_zoho_configuration9012.0525.7325.86
Integration /wp-admin/admin.php?page=igzf_zoho_integration9512.0323.9927.21
API Error Logs /wp-admin/admin.php?page=igzf_zoho_log7882.0624.5324.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_igzfformdata
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/integration-for-gravity-forms-and-zoho/gravityforms-zoho.php
    • > /wp-content/plugins/integration-for-gravity-forms-and-zoho/uninstall.php
    • > /wp-content/plugins/integration-for-gravity-forms-and-zoho/admin/admin.php
    • > /wp-content/plugins/integration-for-gravity-forms-and-zoho/admin/class-zoho-api.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/integration-for-gravity-forms-and-zoho/admin/createtable.php:3
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/integration-for-gravity-forms-and-zoho/admin/form-create-popup.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/integration-for-gravity-forms-and-zoho/admin/form-create-popup.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/integration-for-gravity-forms-and-zoho/function.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Zoho CRM Authendication), #2 (Create a form using Gravity forms), #3 (Mapping fields with Zoho CRM), #4 (Configuring Gravity forms), #5 (Mapping fields with Gravity forms), #6 (Api Failure log)
The official readme.txt is a good inspiration

integration-for-gravity-forms-and-zoho/gravityforms-zoho.php 69% from 13 tests

The main file in "Integration for Gravity Forms with Zoho CRM" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 329 characters long)
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-for-gravity-forms-and-zoho.php" instead of "gravityforms-zoho.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,131 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP791151,021
JavaScript115382
CSS11328

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin