68% integration-of-zoho-crm-and-gravity-forms

Code Review | Integration of Zoho CRM and Gravity Forms

WordPress plugin Integration of Zoho CRM and Gravity Forms scored68%from 54 tests.

About plugin

  • Plugin page: integration-of-zo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2021
  • Latest release: Mar 11, 2023
  • Number of updates: 12
  • Update frequency: every 46.8 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /476 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.69ms] Passed 4 tests

Analyzing server-side resources used by Integration of Zoho CRM and Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1052.15 ▲9.25
Dashboard /wp-admin3.40 ▲0.0551.44 ▼13.10
Posts /wp-admin/edit.php3.51 ▲0.1651.45 ▼2.18
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.96 ▼22.37
Media Library /wp-admin/upload.php3.32 ▲0.0938.63 ▲2.91

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 79 new files
Database: 3 new tables, 8 new options
New tables
wp_bitgfzc_gclid
wp_bitgfzc_integration
wp_bitgfzc_zoho_crm_log_details
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
bitgfzc_installed
can_compress_scripts
bitgfzc_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Integration of Zoho CRM and Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.64 ▼0.111.91 ▼0.2242.97 ▼0.22
Dashboard /wp-admin2,216 ▲285.87 ▲0.96102.15 ▼14.6441.24 ▼0.27
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0336.22 ▼4.0435.12 ▼0.91
Add New Post /wp-admin/post-new.php1,529 ▲123.25 ▲4.80676.36 ▲42.0349.69 ▼1.35
Media Library /wp-admin/upload.php1,404 ▲134.22 ▲0.0198.65 ▼10.7045.48 ▼1.95

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
  • Zombie tables were found after uninstall: 3 tables
    • wp_bitgfzc_gclid
    • wp_bitgfzc_integration
    • wp_bitgfzc_zoho_crm_log_details
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • bitgfzc_version
    • bitgfzc_installed
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/integration-of-zoho-crm-and-gravity-forms/assets/js/index.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITGFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-gravity-forms/includes/Core/Database/GclidModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITGFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-gravity-forms/includes/Core/Database/IntegrationModel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BitCode\\BITGFZC\\Core\\Database\\Model' not found in wp-content/plugins/integration-of-zoho-crm-and-gravity-forms/includes/Core/Database/LogModel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/integration-of-zoho-crm-and-gravity-forms/languages/generatedString.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 50 tag instead of maximum 10
You can look at the official readme.txt

integration-of-zoho-crm-and-gravity-forms/bitgfzc.php 85% from 13 tests

The principal PHP file in "Integration of Zoho CRM and Gravity Forms" v. 1.0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-of-zoho-crm-and-gravity-forms.php" instead of "bitgfzc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,404 lines of code in 71 files:
LanguageFilesBlank linesComment linesLines of code
PHP445407543,342
JSON30038
JavaScript200320
CSS2002
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity18.39
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes2060.61%
Methods160
▷ Static methods5333.12%
▷ Public methods14490.00%
▷ Protected methods95.62%
▷ Private methods74.38%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants7100.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
No PNG images were found in this plugin