77% easy-woocommerce-zoho-crm-integration

Code Review | Easy Woocommerce ZOHO CRM Integration

WordPress plugin Easy Woocommerce ZOHO CRM Integration scored77%from 54 tests.

About plugin

  • Plugin page: easy-woocommerce-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2018
  • Latest release: Aug 10, 2018
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: smartkcoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /722 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼4.60ms] Passed 4 tests

Server-side resources used by Easy Woocommerce ZOHO CRM Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.76 ▼12.32
Dashboard /wp-admin3.32 ▲0.0244.03 ▼0.79
Posts /wp-admin/edit.php3.37 ▲0.0247.28 ▲4.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.23 ▼8.83
Media Library /wp-admin/upload.php3.24 ▲0.0236.90 ▲3.54
Bulk Integration /wp-admin/admin.php?page=easy_wc_zohocrm_integration3.1828.43
Configuration /wp-admin/admin.php?page=easy_wc_zohocrm_configuration3.1827.68
Integration Settings /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings3.1824.85

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
easy_wc_zohocrm_modules_fields
can_compress_scripts
easy_wc_zohocrm_modules
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy Woocommerce ZOHO CRM Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.62 ▼0.764.52 ▲2.7141.35 ▼4.39
Dashboard /wp-admin2,228 ▲405.84 ▲0.03101.23 ▼17.2039.54 ▼3.09
Posts /wp-admin/edit.php2,120 ▲342.05 ▼0.0134.87 ▲1.4132.86 ▼4.51
Add New Post /wp-admin/post-new.php1,559 ▲2623.07 ▼0.36664.62 ▼3.3453.77 ▼8.65
Media Library /wp-admin/upload.php1,419 ▲284.19 ▼0.10100.40 ▼0.5444.03 ▲0.91
Bulk Integration /wp-admin/admin.php?page=easy_wc_zohocrm_integration8952.0529.7829.55
Configuration /wp-admin/admin.php?page=easy_wc_zohocrm_configuration8702.2024.1121.94
Integration Settings /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings8512.0325.2125.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • easy_wc_zohocrm_modules
    • easy_wc_zohocrm_modules_fields
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-bulk-integration.php+12
    Undefined index: paged
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-bulk-integration.php+13
    Undefined index: easy_wc_zohocrm_type
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-bulk-integration.php+14
    Undefined index: easy_wc_zohocrm_record_per_page
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_configuration
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-zohocrm-config.php+12
    Undefined index: submit
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_configuration
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-zohocrm-config.php+30
    Undefined index: code
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-integration-settings.php+18
    Undefined index: wc
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/class/class-zoho.php+53
    Trying to get property 'api_domain' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/class/class-zoho.php+60
    Trying to get property 'access_token' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/class/class-zoho.php+40
    Trying to get property 'refresh_token' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy_wc_zohocrm_integration_settings
    • > Notice in wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/class/class-zoho.php+40
    Undefined variable: domain_setup

SRP 50% 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
Please take a closer look at the following
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/class/class-zoho.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/includes.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-bulk-integration.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-zohocrm-config.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-core.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/uninstall.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/admin/admin-integration-settings.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/includes/functions.php
    • > /wp-content/plugins/easy-woocommerce-zoho-crm-integration/easy-woocommerce-zoho-integration.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Integrating Zoho CRM with Wordpress), #2 (Screenshot 1), #3 (Screenshot 2), #4 (Screenshot 3)
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

easy-woocommerce-zoho-crm-integration/easy-woocommerce-zoho-integration.php 92% from 13 tests

The main PHP file in "Easy Woocommerce ZOHO CRM Integration" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-woocommerce-zoho-crm-integration.php" instead of "easy-woocommerce-zoho-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,120 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9105711,120

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.78MB with 0.58MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png183.71KB45.57KB▼ 75.19%
screenshot-1.png214.92KB57.03KB▼ 73.47%
screenshot-4.png260.80KB66.78KB▼ 74.39%
screenshot-3.png142.13KB35.66KB▼ 74.91%