74% woo-zoho

Code Review | Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin

WordPress plugin Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin scored74%from 54 tests.

About plugin

  • Plugin page: woo-zoho
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 50
  • Update frequency: every 36.5 days
  • Top authors: CRMPerks (86%)asif876 (16%)

Code review

54 tests

User reviews

78 reviews

Install metrics

2,000+ active /63,930 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼8.95ms] Passed 4 tests

Server-side resources used by Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3338.03 ▼0.91
Dashboard /wp-admin3.64 ▲0.2946.32 ▼16.53
Posts /wp-admin/edit.php3.75 ▲0.3944.90 ▲2.96
Add New Post /wp-admin/post-new.php6.22 ▲0.3382.92 ▼19.07
Media Library /wp-admin/upload.php3.55 ▲0.3336.14 ▲0.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 67 new files
Database: 2 new tables, 7 new options
New tables
wp_vxc_zoho_accounts
wp_vxc_zoho_log
New WordPress options
can_compress_scripts
vxc_zoho_pro_version
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9314.33 ▼0.101.88 ▲0.0637.89 ▼7.59
Dashboard /wp-admin2,220 ▲425.52 ▼0.3284.31 ▼32.3440.17 ▼6.38
Posts /wp-admin/edit.php2,126 ▲262.03 ▲0.0838.44 ▼2.8534.44 ▼1.87
Add New Post /wp-admin/post-new.php1,544 ▲1323.57 ▲0.87693.38 ▲70.8868.00 ▲12.90
Media Library /wp-admin/upload.php1,428 ▲284.19 ▼0.0699.21 ▲4.7743.65 ▲3.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_vxc_zoho_log
    • wp_vxc_zoho_accounts
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • vxc_zoho_pro_version
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-zoho/templates/crm-order-box.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: woocommerce zoho integration, zoho, woocommerce zoho, zoho books, zoho inventory...

woo-zoho/woo-zoho.php Passed 13 tests

The principal PHP file in "Integration for WooCommerce and Zoho CRM, Books, Invoice, Inventory, Bigin" v. 1.3.9 is loaded by WordPress automatically on each request
99 characters long description:
Integrates WooCommerce with Zoho allowing new orders to be automatically sent to your Zoho account.

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
Success! There were no dangerous files found in this plugin8,928 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP188219388,096
SVG100640
CSS43712186
JavaScript31206

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 205)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity250.33
▷ Minimum class complexity9.00
▷ Maximum class complexity581.00
Average method complexity9.34
▷ Minimum method complexity1.00
▷ Maximum method complexity205.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods166
▷ Static methods31.81%
▷ Public methods16498.80%
▷ Protected methods00.00%
▷ Private methods21.20%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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
32 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_75_ba9217_40x100.png0.20KB0.08KB▼ 57.77%
images/failed.png1.54KB0.48KB▼ 68.88%
images/zoho-crm-logo.png14.86KB5.03KB▼ 66.16%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_diagonals-small_75_ccd232_40x40.png0.33KB0.10KB▼ 69.97%