77% wc-zoho-inventory

Code Review | Integration of WooCommerce and Zoho Inventory

WordPress plugin Integration of WooCommerce and Zoho Inventory scored77%from 54 tests.

About plugin

  • Plugin page: wc-zoho-inventory
  • Plugin version: 2.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2020
  • Latest release: Aug 31, 2023
  • Number of updates: 31
  • Update frequency: every 31.7 days
  • Top authors: bitpressadmin (87.1%)formsintegrations (16.13%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.60ms] Passed 4 tests

A check of server-side resources used by Integration of WooCommerce and Zoho Inventory
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1543.00 ▼1.58
Dashboard /wp-admin3.67 ▲0.3657.42 ▲3.21
Posts /wp-admin/edit.php3.72 ▲0.3652.51 ▼1.39
Add New Post /wp-admin/post-new.php6.20 ▲0.3288.30 ▼15.63
Media Library /wp-admin/upload.php3.53 ▲0.3042.06 ▲0.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: 2 new tables, 8 new options
New tables
wp_bit_wc_zoho_inventory_integration
wp_bit_wc_zoho_inventory_log
New WordPress options
bit_wc_zoho_inventory_version
theysaidso_admin_options
widget_recent-comments
bit_wc_zoho_inventory_installed
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Integration of WooCommerce and Zoho Inventory
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.39 ▼0.161.60 ▼0.0139.74 ▼0.17
Dashboard /wp-admin2,235 ▲585.66 ▼0.0489.16 ▲1.5243.94 ▲1.30
Posts /wp-admin/edit.php2,144 ▲441.99 ▲0.0236.22 ▼4.0237.51 ▲3.02
Add New Post /wp-admin/post-new.php1,536 ▲1023.67 ▲0.44694.63 ▼6.1457.01 ▲1.56
Media Library /wp-admin/upload.php1,440 ▲374.15 ▲0.0299.31 ▼17.3345.08 ▼6.25

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

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

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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wc-zoho-inventory/views/view-root.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wc-zoho-inventory/includes/API/Routes/Routes.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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 15 tag instead of maximum 10
The official readme.txt is a good inspiration

wc-zoho-inventory/bit_wc_zoho_inventory.php 77% from 13 tests

Analyzing the main PHP file in "Integration of WooCommerce and Zoho Inventory" version 2.6
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-zoho-inventory.php" instead of "bit_wc_zoho_inventory.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 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 plugin2,286 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP213056012,268
JSON20016
JavaScript2032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.07
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes642.86%
Methods89
▷ Static methods2730.34%
▷ Public methods8292.13%
▷ Protected methods00.00%
▷ Private methods77.87%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin