78% w2s-migrate-woo-to-shopify

Code Review | W2S - Migrate WooCommerce to Shopify

WordPress plugin W2S - Migrate WooCommerce to Shopify scored 78% from 54 tests.

About plugin

  • Plugin page: w2s-migrate-woo-t...
  • Plugin version: 1.0.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Jul 15, 2023
  • Number of updates: 17
  • Update frequency: every 33.9 days
  • Top authors: dragonlord47 (94.12%)villatheme (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 5,597 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.59MB] [CPU: ▼8.35ms] Passed 4 tests

This is a short check of server-side resources used by W2S - Migrate WooCommerce to Shopify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6343.99 ▼5.70
Dashboard /wp-admin3.92 ▲0.6247.16 ▼1.83
Posts /wp-admin/edit.php3.97 ▲0.6248.67 ▼0.51
Add New Post /wp-admin/post-new.php6.44 ▲0.5685.44 ▼25.37
Media Library /wp-admin/upload.php3.78 ▲0.5642.32 ▲9.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
viw2s_params

Browser metrics Passed 4 tests

This is an overview of browser requirements for W2S - Migrate WooCommerce to Shopify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.26 ▼1.101.67 ▼0.1537.16 ▼6.27
Dashboard /wp-admin2,214 ▲295.77 ▼0.13103.31 ▼9.1739.87 ▼3.14
Posts /wp-admin/edit.php2,097 ▲82.06 ▲0.0233.35 ▼7.5732.47 ▼2.52
Add New Post /wp-admin/post-new.php1,522 ▲817.65 ▲0.10658.23 ▼16.2855.89 ▼2.71
Media Library /wp-admin/upload.php1,399 ▲174.23 ▼0.0594.91 ▼3.9942.95 ▲0.55

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • viw2s_params
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/w2s-migrate-woo-to-shopify/public/partials/vi-w2s-public-display.php
  • 65× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/SmartCollection.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/Comment.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/ProductImage.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/Webhook.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/w2s-migrate-woo-to-shopify/admin/partials/vi-w2s-admin-logs.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/CarrierService.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/GraphQL.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/ProductVariant.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/ShopifyPayment.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PHPShopify\\ShopifyResource' not found in wp-content/plugins/w2s-migrate-woo-to-shopify/sdk/DiscountCode.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: woocommerce to shopify migration, ecommerce, transfer woocommerce to shopify, wordpress, woocommerce to shopify...

w2s-migrate-woo-to-shopify/w2s-import-woo-to-shopify.php 92% from 13 tests

The primary PHP file in "W2S - Migrate WooCommerce to Shopify" version 1.0.11 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("w2s-migrate-woo-to-shopify.php" instead of "w2s-import-woo-to-shopify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12,453 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,2613805,734
PHP971,1233,0135,326
SVG100565
CSS2170150389
PO File1114151273
Sass1320161
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.93
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes86
▷ Abstract classes11.16%
▷ Concrete classes8598.84%
▷ Final classes00.00%
Methods214
▷ Static methods6128.50%
▷ Public methods18586.45%
▷ Protected methods198.88%
▷ Private methods104.67%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin