83% antdiy

Code Review | Antdiy Dropshipping Solution: Find products on AliExpress for WooCommerce

WordPress plugin Antdiy Dropshipping Solution: Find products on AliExpress for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: antdiy
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: Mar 1, 2022
  • Number of updates: 5
  • Update frequency: every 73.6 days
  • Top authors: antdiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,673 total downloads


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.01MB] [CPU: ▼10.47ms] Passed 4 tests

An overview of server-side resources used by Antdiy Dropshipping Solution: Find products on AliExpress for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.94 ▼3.78
Dashboard /wp-admin3.33 ▼0.0246.19 ▼15.38
Posts /wp-admin/edit.php3.38 ▲0.0243.97 ▼2.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.59 ▼20.09
Media Library /wp-admin/upload.php3.25 ▲0.0240.85 ▲8.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Antdiy Dropshipping Solution: Find products on AliExpress for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲11614.74 ▲0.492.15 ▲0.1545.43 ▲0.89
Dashboard /wp-admin2,243 ▲555.84 ▲0.95100.17 ▼16.2583.25 ▲40.24
Posts /wp-admin/edit.php2,129 ▲401.99 ▼0.0334.71 ▼1.7034.66 ▼0.10
Add New Post /wp-admin/post-new.php1,704 ▲19022.34 ▲4.84764.43 ▲16.1056.93 ▼2.94
Media Library /wp-admin/upload.php1,428 ▲434.23 ▼0.14102.50 ▼4.1878.46 ▲35.97

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/antdiy/antdiy-aliexpress-dropshipping.php:12

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

antdiy/antdiy-aliexpress-dropshipping.php 69% from 13 tests

"Antdiy Dropshipping Solution: Find products on AliExpress for WooCommerce" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 73 characters long)
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("antdiy.php" instead of "antdiy-aliexpress-dropshipping.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected216 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
5 PNG files occupy 0.88MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png65.11KB22.25KB▼ 65.82%
assets/icon-256x256.png9.28KB4.65KB▼ 49.88%