83% wsw-import-export-ecommerce-integration

Code Review | WSW - Shopify WooCommerce / WordPress Integration and Migration

WordPress plugin WSW - Shopify WooCommerce / WordPress Integration and Migration scored83%from 54 tests.

About plugin

  • Plugin page: wsw-import-export...
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: May 6, 2022
  • Latest release: Dec 3, 2023
  • Number of updates: 50
  • Update frequency: every 11.5 days
  • Top authors: momothemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.05ms] Passed 4 tests

A check of server-side resources used by WSW - Shopify WooCommerce / WordPress Integration and Migration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.76 ▼3.31
Dashboard /wp-admin3.32 ▼0.0347.07 ▼19.38
Posts /wp-admin/edit.php3.37 ▲0.0149.16 ▼7.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.21 ▼9.87
Media Library /wp-admin/upload.php3.25 ▲0.0132.74 ▲0.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WSW - Shopify WooCommerce / WordPress Integration and Migration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.67 ▲0.321.76 ▲0.0540.94 ▼3.26
Dashboard /wp-admin2,204 ▲245.61 ▼0.0690.10 ▼1.4443.48 ▲4.41
Posts /wp-admin/edit.php2,110 ▲102.00 ▲0.0240.67 ▲0.5238.58 ▲3.98
Add New Post /wp-admin/post-new.php1,541 ▲1323.09 ▲0.14667.62 ▼8.6355.73 ▲2.14
Media Library /wp-admin/upload.php1,406 ▲64.18 ▼0.0395.95 ▼2.3642.42 ▲0.75

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 9× 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/wsw-import-export-ecommerce-integration/class-momo-wsw-import-export.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/class-momo-wsw-export-shopify.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/class-momo-wsw-background-process.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/pages/page-momo-wsw-export-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/pages/page-momo-wsw-import.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/class-momo-wsw-admin-ajax.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/pages/momo-wsw-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/class-momo-wsw-admin-init.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wsw-import-export-ecommerce-integration/includes/admin/pages/page-momo-wsw-settings.php:10

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Shopify products imported successfully), #2 (import tags & categories)
The official readme.txt might help

wsw-import-export-ecommerce-integration/class-momo-wsw-import-export.php 85% from 13 tests

The main file in "WSW - Shopify WooCommerce / WordPress Integration and Migration" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • 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 ("wsw-import-export-ecommerce-integration.php" instead of "class-momo-wsw-import-export.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin10,212 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS5102216,345
PHP11503501,794
SVG1001,626
JavaScript1138447

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity38.00
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity6.29
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods24.08%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin