68% crm-for-wc-in-zoho

Code Review | Integration of WooCommerce and Zoho CRM

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

About plugin

  • Plugin page: crm-for-wc-in-zoho
  • Plugin version: 2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2021
  • Latest release: Mar 20, 2023
  • Number of updates: 14
  • Update frequency: every 57.4 days
  • Top authors: bitpressadmin (85.71%)formsintegrations (21.43%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 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.31MB] [CPU: ▼5.64ms] Passed 4 tests

A check of server-side resources used by Integration of WooCommerce and Zoho CRM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.58 ▲4.70
Dashboard /wp-admin3.71 ▲0.4048.65 ▼2.47
Posts /wp-admin/edit.php3.76 ▲0.4045.03 ▼5.16
Add New Post /wp-admin/post-new.php6.24 ▲0.3682.42 ▼17.61
Media Library /wp-admin/upload.php3.57 ▲0.3438.65 ▲2.69

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 2 new tables, 8 new options
New tables
wp_bit_wc_zoho_crm_integration
wp_bit_wc_zoho_crm_log
New WordPress options
widget_recent-posts
widget_theysaidso_widget
bit_wc_zoho_crm_version
db_upgraded
widget_recent-comments
theysaidso_admin_options
bit_wc_zoho_crm_installed
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Integration of WooCommerce and Zoho CRM
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.36 ▲0.001.65 ▲0.1043.83 ▲5.14
Dashboard /wp-admin2,232 ▲555.63 ▲0.1091.58 ▲5.1141.51 ▲0.23
Posts /wp-admin/edit.php2,138 ▲352.03 ▲0.0835.53 ▼0.4932.86 ▲0.74
Add New Post /wp-admin/post-new.php1,541 ▲1523.30 ▲0.18649.21 ▼34.1654.25 ▲3.10
Media Library /wp-admin/upload.php1,434 ▲314.21 ▲0.0193.58 ▼9.6142.16 ▼1.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_bit_wc_zoho_crm_integration
    • wp_bit_wc_zoho_crm_log
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • bit_wc_zoho_crm_version
    • can_compress_scripts
    • bit_wc_zoho_crm_installed
    • 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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/crm-for-wc-in-zoho/views/view-root.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/crm-for-wc-in-zoho/includes/API/Routes/Routes.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
10 plugin tags: woocommerce with zoho, zoho with woocommerce, integration, woocommerce integration, woocommerce...

crm-for-wc-in-zoho/bit_wc_zoho_crm.php 77% from 13 tests

This is the main PHP file of "Integration of WooCommerce and Zoho CRM" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("crm-for-wc-in-zoho.php" instead of "bit_wc_zoho_crm.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,452 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP223646152,420
JSON20016
JavaScript45616

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity31.93
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes640.00%
Methods108
▷ Static methods4037.04%
▷ Public methods10294.44%
▷ Protected methods00.00%
▷ Private methods65.56%
Functions9
▷ Named functions444.44%
▷ Anonymous functions555.56%
Constants6
▷ Global constants6100.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
No PNG files were detected