84% import-shopify-to-woocommerce

Code Review | S2W - Import Shopify to WooCommerce

WordPress plugin S2W - Import Shopify to WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: import-shopify-to...
  • Plugin version: 1.1.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: Jul 15, 2023
  • Number of updates: 51
  • Update frequency: every 30.9 days
  • Top authors: kimvt1991 (80.39%)mrt3vn (19.61%)dragonlord47 (3.92%)

Code review

54 tests

User reviews

37 reviews

Install metrics

4,000+ active / 66,923 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.61MB] [CPU: ▼0.44ms] Passed 4 tests

Server-side resources used by S2W - Import Shopify to WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6139.27 ▼3.60
Dashboard /wp-admin3.91 ▲0.6148.37 ▼4.71
Posts /wp-admin/edit.php4.02 ▲0.6752.57 ▲4.91
Add New Post /wp-admin/post-new.php6.49 ▲0.6099.35 ▲1.64
Media Library /wp-admin/upload.php3.83 ▲0.6043.25 ▲7.98

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for S2W - Import Shopify to WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.13 ▼1.164.95 ▲2.7838.77 ▼8.52
Dashboard /wp-admin2,214 ▲264.86 ▲0.00109.78 ▼5.6542.71 ▼4.50
Posts /wp-admin/edit.php2,097 ▲112.05 ▲0.0340.34 ▲6.2437.54 ▲2.12
Add New Post /wp-admin/post-new.php1,536 ▲2223.29 ▲5.73655.08 ▼21.3254.07 ▲5.19
Media Library /wp-admin/upload.php1,390 ▼14.27 ▲0.0895.52 ▼13.4543.06 ▼6.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/import-shopify-to-woocommerce/includes/wp-background-process.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/import-shopify-to-woocommerce/includes/class-s2w-process-new.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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 need to be fixed: The official readme.txt might help

import-shopify-to-woocommerce/import-shopify-to-woocommerce.php Passed 13 tests

The main file in "S2W - Import Shopify to WooCommerce" v. 1.1.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Easily migrate all Shopify products and their collections(categories) to WooCommerce after several clicks

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin11,640 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP144365835,576
JavaScript121,1493135,035
SVG100565
CSS2085112464

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 226)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity59.00
▷ Minimum class complexity4.00
▷ Maximum class complexity410.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity226.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods163
▷ Static methods3923.93%
▷ Public methods13381.60%
▷ Protected methods2716.56%
▷ Private methods31.84%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/fs-sprite.png0.22KB0.18KB▼ 15.63%