74% woo-xcart-migration

Code Review | Migrate Xcart to WooCommerce

WordPress plugin Migrate Xcart to WooCommerce scored74%from 54 tests.

About plugin

  • Plugin page: woo-xcart-migration
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 25, 2018
  • Latest release: May 25, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: vgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /609 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.00ms] Passed 4 tests

A check of server-side resources used by Migrate Xcart to WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1541.20 ▼0.40
Dashboard /wp-admin3.75 ▲0.4561.05 ▲4.22
Posts /wp-admin/edit.php3.86 ▲0.5156.56 ▲3.57
Add New Post /wp-admin/post-new.php6.35 ▲0.4690.99 ▼11.39
Media Library /wp-admin/upload.php3.67 ▲0.4441.75 ▲7.95
X-Cart Migration /wp-admin/admin.php?page=xcart_migration3.6439.84
Settings /wp-admin/admin.php?page=wxm_db_conn3.6136.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 5 new tables, 6 new options
New tables
wp_xcart_lastSynced
wp_xcart_database
wp_xcart_cronjob
wp_xcart_operation_weight
wp_xcart_relation
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Migrate Xcart to WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.97 ▼0.416.94 ▲4.7550.63 ▲6.49
Dashboard /wp-admin2,239 ▲514.83 ▼0.01102.62 ▼19.4641.99 ▼0.32
Posts /wp-admin/edit.php2,122 ▲332.03 ▼0.0138.62 ▼2.4335.40 ▲0.41
Add New Post /wp-admin/post-new.php1,548 ▲2022.94 ▲4.55673.09 ▲31.2665.18 ▲10.92
Media Library /wp-admin/upload.php1,421 ▲334.24 ▲0.01104.02 ▲1.0645.39 ▼2.82
X-Cart Migration /wp-admin/admin.php?page=xcart_migration8521.7025.2926.75
Settings /wp-admin/admin.php?page=wxm_db_conn7711.557.2719.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 5 tables in the database
    • wp_xcart_lastSynced
    • wp_xcart_operation_weight
    • wp_xcart_database
    • wp_xcart_cronjob
    • wp_xcart_relation
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wxm_db_conn
    • > Error in wp-includes/plugin.php+847
    Uncaught ArgumentCountError: Too few arguments to function plugin_dir_url(), 0 passed in wp-content/plugins/woo-xcart-migration/woo-xcart-migration.php on line 599 and exactly 1 expected in wp-includes/plugin.php:847
    Stack trace:
    #0 wp-content/plugins/woo-xcart-migration/woo-xcart-migration.php(599): plugin_dir_url()
    #1 wp-includes/class-wp-hook.php(310): WXM_Admin->wxm_db_connect()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 {main}
    thrown

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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

woo-xcart-migration/woo-xcart-migration.php Passed 13 tests

"Migrate Xcart to WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
X-Cart to WooCommerce Migration Tool

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
There were no executable files found in this plugin2,989 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33599002,946
JavaScript12122
CSS14121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity204.50
▷ Minimum class complexity99.00
▷ Maximum class complexity310.00
Average method complexity7.07
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods67
▷ Static methods00.00%
▷ Public methods5683.58%
▷ Protected methods00.00%
▷ Private methods1116.42%
Functions14
▷ Named functions857.14%
▷ Anonymous functions642.86%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/screenshot/screenshot-1.png56.18KB24.18KB▼ 56.96%
inc/question-mark.png0.92KB0.65KB▼ 29.06%
inc/question-mark-16x16.png0.58KB0.38KB▼ 34.89%
inc/screenshot/screenshop-2.png65.72KB28.45KB▼ 56.71%
inc/shopping-cart.png1.19KB0.94KB▼ 21.35%