94% import-from-shopify

Code Review | Import From Shopify

WordPress plugin Import From Shopify scored 94% from 54 tests.

About plugin

  • Plugin page: import-from-shopify
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 5.8.1
  • First release: Sep 22, 2019
  • Latest release: Mar 7, 2021
  • Number of updates: 6
  • Update frequency: every 89.0 days
  • Top authors: cubydev (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active / 4,131 total downloads

Benchmarks

Plugin footprint Passed 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.13MB] [CPU: ▼142.91ms] Passed 4 tests

A check of server-side resources used by Import From Shopify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2336.19 ▲18.07
Dashboard /wp-admin3.17 ▲0.1245.27 ▼2.53
Posts /wp-admin/edit.php3.28 ▲0.1846.90 ▲0.56
Add New Post /wp-admin/post-new.php5.54 ▲0.1197.22 ▼562.62
Media Library /wp-admin/upload.php3.12 ▲0.1134.67 ▼7.06
Import from Shopify /wp-admin/tools.php?page=import-from-shopify3.0828.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Import From Shopify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.83 ▲0.2112.83 ▲4.5551.04 ▲2.26
Dashboard /wp-admin2,976 ▲405.92 ▼0.11147.18 ▲1.94115.32 ▲2.74
Posts /wp-admin/edit.php2,746 ▲72.72 ▼0.0066.22 ▼1.0584.37 ▼0.52
Add New Post /wp-admin/post-new.php1,505 ▲118.56 ▲0.07384.74 ▼60.63106.57 ▼4.94
Media Library /wp-admin/upload.php1,814 ▲635.05 ▲0.04159.92 ▼1.35118.42 ▼2.25
Import from Shopify /wp-admin/tools.php?page=import-from-shopify1,2712.1058.1091.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-from-shopify/inc/CDShopifyPluginSettings.class.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ShopifyGeneral' not found in wp-content/plugins/import-from-shopify/inc/ShopifyCustomer.class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ShopifyGeneral' not found in wp-content/plugins/import-from-shopify/inc/ShopifyProduct.class.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: migration, csv, import shopify to woo, excel, woo...

import-from-shopify/import-from-shopify.php 92% from 13 tests

"Import From Shopify" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin761 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP78326752
CSS1109

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity30.50
▷ Minimum class complexity8.00
▷ Maximum class complexity60.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin