78% integration-of-zoho-books-and-wc

Code Review | Integration of Zoho Books and WooCommerce

WordPress plugin Integration of Zoho Books and WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: integration-of-zo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: formsintegrations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼4.04ms] Passed 4 tests

Analyzing server-side resources used by Integration of Zoho Books and WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.57 ▼2.12
Dashboard /wp-admin3.69 ▲0.3846.60 ▼1.51
Posts /wp-admin/edit.php3.74 ▲0.3850.89 ▲1.11
Add New Post /wp-admin/post-new.php6.22 ▲0.3387.44 ▼8.26
Media Library /wp-admin/upload.php3.55 ▲0.3237.44 ▼4.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: 2 new tables, 8 new options
New tables
wp_bit_wc_zoho_books_log
wp_bit_wc_zoho_books_integration
New WordPress options
widget_theysaidso_widget
bit_wc_zoho_books_installed
theysaidso_admin_options
bit_wc_zoho_books_version
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Integration of Zoho Books and WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲12513.19 ▼1.111.60 ▼0.0639.94 ▼8.62
Dashboard /wp-admin2,260 ▲695.83 ▲0.92109.50 ▲10.5042.23 ▼0.85
Posts /wp-admin/edit.php2,149 ▲602.06 ▲0.0640.59 ▲3.4535.77 ▲0.30
Add New Post /wp-admin/post-new.php1,543 ▲823.17 ▼0.09661.92 ▼24.2954.69 ▼1.44
Media Library /wp-admin/upload.php1,448 ▲604.18 ▼0.0295.47 ▼3.7440.08 ▼6.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • bit_wc_zoho_books_version
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • bit_wc_zoho_books_installed

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/integration-of-zoho-books-and-wc/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/integration-of-zoho-books-and-wc/includes/API/Routes/Routes.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: woocommerce order, zoho, woocommerce integration, connector, books...

integration-of-zoho-books-and-wc/bit_wc_zoho_books.php 77% from 13 tests

The main PHP file in "Integration of Zoho Books and WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("integration-of-zoho-books-and-wc.php" instead of "bit_wc_zoho_books.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,291 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP223566142,272
JSON20016
JavaScript3043

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity26.40
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes746.67%
Methods104
▷ Static methods3432.69%
▷ Public methods9692.31%
▷ Protected methods00.00%
▷ Private methods87.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin