78% bstd-wc-zcrm

Code Review | Inventory Connector for Zoho and WooCommerce

WordPress plugin Inventory Connector for Zoho and WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: bstd-wc-zcrm
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 13, 2023
  • Latest release: Apr 13, 2023
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: boostedcrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /110 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.26MB] [CPU: ▼4.91ms] Passed 4 tests

This is a short check of server-side resources used by Inventory Connector for Zoho and WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.60 ▲2.65
Dashboard /wp-admin3.65 ▲0.3452.03 ▼3.72
Posts /wp-admin/edit.php3.70 ▲0.3450.11 ▼0.65
Add New Post /wp-admin/post-new.php6.18 ▲0.2986.28 ▼15.39
Media Library /wp-admin/upload.php3.51 ▲0.2740.05 ▲0.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: 2 new tables, 8 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Inventory Connector for Zoho and WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.35 ▼0.231.87 ▲0.0642.81 ▼1.12
Dashboard /wp-admin2,239 ▲595.63 ▼0.0591.56 ▼1.8540.07 ▼2.52
Posts /wp-admin/edit.php2,141 ▲412.03 ▲0.0436.72 ▼0.4233.53 ▼1.58
Add New Post /wp-admin/post-new.php1,536 ▼123.68 ▲5.19677.31 ▲5.6354.04 ▼7.57
Media Library /wp-admin/upload.php1,441 ▲444.16 ▼0.0196.79 ▼16.5547.03 ▲2.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • can_compress_scripts
    • bc_inventory_connector_version
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • bc_inventory_connector_installed

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bstd-wc-zcrm/views/view-root.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bstd-wc-zcrm/includes/API/Routes/Routes.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

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

bstd-wc-zcrm/bc_inventory_connector.php 77% from 13 tests

This is the main PHP file of "Inventory Connector for Zoho and WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("bstd-wc-zcrm.php" instead of "bc_inventory_connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,616 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code

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.48
Average class complexity17.92
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes538.46%
▷ Static methods2731.03%
▷ Public methods8091.95%
▷ Protected methods00.00%
▷ Private methods78.05%
▷ Named functions444.44%
▷ Anonymous functions555.56%
▷ 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
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/wooCommece_inventory.png66.04KB28.51KB▼ 56.83%
assets/img/boosted_crm_logo.png22.87KB13.27KB▼ 41.96%