83% channelunity-woocommerce-integration

Code Review | Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity

WordPress plugin Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity scored83%from 54 tests.

About plugin

  • Plugin page: channelunity-wooc...
  • Plugin version: 2.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Jan 16, 2023
  • Number of updates: 100
  • Update frequency: every 24.2 days
  • Top authors: channelunity (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /6,879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.51ms] Passed 4 tests

A check of server-side resources used by Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1440.50 ▲2.63
Dashboard /wp-admin3.42 ▲0.0847.48 ▼8.89
Posts /wp-admin/edit.php3.54 ▲0.1853.65 ▼12.65
Add New Post /wp-admin/post-new.php6.00 ▲0.1282.73 ▼15.11
Media Library /wp-admin/upload.php3.35 ▲0.1240.01 ▲5.65

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options
channelunity_extrafields
can_compress_scripts
channelunity_version
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
channelunity_date

Browser metrics Passed 4 tests

Checking browser requirements for Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.24 ▼1.084.60 ▲2.9943.68 ▲1.99
Dashboard /wp-admin2,209 ▲215.80 ▲0.9498.45 ▼1.8740.82 ▼3.02
Posts /wp-admin/edit.php2,094 ▲22.00 ▼0.0035.23 ▼5.2734.33 ▼2.23
Add New Post /wp-admin/post-new.php1,536 ▲1723.21 ▼0.15666.33 ▲32.1555.11 ▲1.40
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0295.33 ▼3.2240.39 ▼1.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • channelunity_extrafields
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • channelunity_date
    • channelunity_version

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_API_Resource' not found in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_api.php:8
    • > PHP Notice
      Undefined index: username in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity_fn.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/channelunity-woocommerce-integration/woo_cu.php:29
    • > PHP Notice
      Undefined index: password in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity_fn.php on line 7
    • > PHP Notice
      Undefined index: merchantname in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity.php on line 30
    • > PHP Notice
      Undefined index: request in wp-content/plugins/channelunity-woocommerce-integration/classes/woo_cu_channelunity.php on line 15

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

channelunity-woocommerce-integration/woo_cu.php 85% from 13 tests

The principal PHP file in "Amazon, eBay, NewEgg, Walmart and more. WooCommerce Multichannel Integration by ChannelUnity" v. 2.14 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Plugin Name: Please shorten the plugin name (currently 92 characters long instead of max. 70)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("channelunity-woocommerce-integration.php" instead of "woo_cu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,785 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP133963422,155
JavaScript81241521,107
HTML12446279
CSS33310244

PHP code Passed 2 tests

Analyzing 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.27
Average class complexity24.36
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods142
▷ Static methods1510.56%
▷ Public methods10372.54%
▷ Protected methods00.00%
▷ Private methods3927.46%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/cumenu.png0.46KB0.75KB0.00%