83% ali2woo-migration-tool

Code Review | Ali2Woo Migration Tool

WordPress plugin Ali2Woo Migration Tool scored83%from 54 tests.

About plugin

  • Plugin page: ali2woo-migration...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 17, 2022
  • Latest release: Sep 7, 2022
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: ali2woo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,077 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.00MB] [CPU: ▼7.74ms] Passed 4 tests

Server-side resources used by Ali2Woo Migration Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.13 ▼17.43
Dashboard /wp-admin3.31 ▲0.0044.77 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▲0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.14 ▼9.89
Media Library /wp-admin/upload.php3.23 ▲0.0036.36 ▲0.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Ali2Woo Migration Tool: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.81 ▲0.191.84 ▼0.5339.43 ▼5.46
Dashboard /wp-admin2,206 ▲215.89 ▲0.98110.77 ▲8.8943.63 ▲0.08
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0433.49 ▼2.5333.32 ▼1.06
Add New Post /wp-admin/post-new.php1,522 ▼2022.98 ▲4.80673.30 ▲65.9660.28 ▲6.02
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.0097.25 ▼2.1641.07 ▼0.88

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'A2WC_AbstractConverter' not found in wp-content/plugins/ali2woo-migration-tool/includes/converters/A2WC_AliDropshipConverter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'A2WC_AbstractConverter' not found in wp-content/plugins/ali2woo-migration-tool/includes/converters/A2WC_WoocommerceAliDropshipConverter.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function A2WC() in wp-content/plugins/ali2woo-migration-tool/view/dashboard.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ali2woo-migration-tool/ali2woo-converter.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (The Ali2Woo Converter link in the menu of Ali2Woo.), #2 (Choose past migration tool), #3 (Wait until converter finishes the job)
Please take inspiration from this readme.txt

ali2woo-migration-tool/ali2woo-converter.php 69% from 13 tests

"Ali2Woo Migration Tool" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("ali2woo-migration-tool.php" instead of "ali2woo-converter.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin346 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP76538245
JavaScript110083
CSS14018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.25
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods28
▷ Static methods13.57%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin