79% woo-alidropship

Code Review | ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce

WordPress plugin ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: woo-alidropship
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2019
  • Latest release: Sep 25, 2023
  • Number of updates: 79
  • Update frequency: every 17.8 days
  • Top authors: kimvt1991 (70.89%)thanhtd (22.78%)mrt3vn (5.06%)villatheme (5.06%)

Code review

54 tests

User reviews

122 reviews

Install metrics

10,000+ active /389,563 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2840.82 ▲0.83
Dashboard /wp-admin3.58 ▲0.2747.27 ▲1.15
Posts /wp-admin/edit.php3.69 ▲0.3352.87 ▲6.16
Add New Post /wp-admin/post-new.php6.16 ▲0.2793.59 ▼10.30
Media Library /wp-admin/upload.php3.50 ▲0.2740.70 ▲8.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 159 new files
Database: 1 new table, 7 new options
New tables
wp_vi_wad_ali_orders_info
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
wooaliexpressdropship_params

Browser metrics Passed 4 tests

This is an overview of browser requirements for ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.66 ▼0.954.61 ▲2.8340.25 ▲2.37
Dashboard /wp-admin2,212 ▲275.80 ▼0.1197.80 ▼5.5942.72 ▼2.99
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0339.58 ▲1.0334.88 ▼1.62
Add New Post /wp-admin/post-new.php1,523 ▼1017.34 ▼5.85653.12 ▲0.2552.29 ▼1.94
Media Library /wp-admin/upload.php1,397 ▲64.34 ▲0.0999.63 ▲0.4842.42 ▼0.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_vi_wad_ali_orders_info
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • wooaliexpressdropship_params
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 94% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-alidropship/woo-alidropship.php Passed 13 tests

"ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
126 characters long description:
Transfer data from AliExpress products to WooCommerce effortlessly and fulfill WooCommerce orders to AliExpress automatically.

Code Analysis 97% from 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
There were no executable files found in this plugin34,952 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
PHP371,6461,69718,851
JavaScript201,50849610,425
CSS314952402,372
PO File15348181,707
SVG2171,556
JSON410041

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 344)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity96.59
▷ Minimum class complexity2.00
▷ Maximum class complexity837.00
Average method complexity7.96
▷ Minimum method complexity1.00
▷ Maximum method complexity344.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes13.12%
Methods469
▷ Static methods16936.03%
▷ Public methods40185.50%
▷ Protected methods367.68%
▷ Private methods326.82%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.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
3 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/price-format-rules.png44.02KB17.88KB▼ 59.38%
assets/images/icon-256x256.png4.28KB1.41KB▼ 67.02%
assets/images/icon.png15.64KB0.67KB▼ 95.72%