68% nextcart-woocommerce-migration

Code Review | Next-Cart Store to WooCommerce Migration

WordPress plugin Next-Cart Store to WooCommerce Migration scored68%from 54 tests.

About plugin

  • Plugin page: nextcart-woocomme...
  • Plugin version: 3.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 27, 2019
  • Latest release: Nov 29, 2023
  • Number of updates: 160
  • Update frequency: every 10.3 days
  • Top authors: martinnguyen1990 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /12,543 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.18MB] [CPU: ▼4.08ms] Passed 4 tests

Server-side resources used by Next-Cart Store to WooCommerce Migration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1736.16 ▼5.17
Dashboard /wp-admin3.48 ▲0.1847.78 ▼1.22
Posts /wp-admin/edit.php3.60 ▲0.2448.61 ▲0.30
Add New Post /wp-admin/post-new.php6.07 ▲0.1892.47 ▼10.21
Media Library /wp-admin/upload.php3.41 ▲0.1835.10 ▲1.82
How It Works /wp-admin/admin.php?page=nextcart-how-it-works3.3732.72
URL Redirects /wp-admin/admin.php?page=nextcart-seo-url3.4234.28
Settings /wp-admin/admin.php?page=nextcart-settings3.3730.00
Extra Services /wp-admin/admin.php?page=nextcart-extra-services3.3731.21
Pro License /wp-admin/admin.php?page=nextcart-unlimited-migration3.3730.66
Next-Cart Migration /wp-admin/admin.php?page=nextcart-migration3.4132.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 147 new files
Database: 1 new table, 7 new options
New tables
wp_nextcart_seo_url
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
nextcart_url_redirect
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Next-Cart Store to WooCommerce Migration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6614.05 ▼0.661.58 ▼0.1238.39 ▼7.28
Dashboard /wp-admin2,233 ▲535.56 ▼0.0995.49 ▼6.0378.49 ▲36.89
Posts /wp-admin/edit.php2,138 ▲382.03 ▲0.0838.55 ▼1.0837.44 ▲1.70
Add New Post /wp-admin/post-new.php1,576 ▲5022.98 ▼0.25571.50 ▼68.59152.81 ▲101.56
Media Library /wp-admin/upload.php1,438 ▲384.17 ▼0.0395.73 ▼2.6169.55 ▲27.03
How It Works /wp-admin/admin.php?page=nextcart-how-it-works8542.1327.1826.35
URL Redirects /wp-admin/admin.php?page=nextcart-seo-url1,0962.3225.5128.70
Settings /wp-admin/admin.php?page=nextcart-settings8312.1327.8226.98
Extra Services /wp-admin/admin.php?page=nextcart-extra-services8722.1225.5224.73
Pro License /wp-admin/admin.php?page=nextcart-unlimited-migration8282.1824.3424.72
Next-Cart Migration /wp-admin/admin.php?page=nextcart-migration2,9612.5650.37131.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_nextcart_seo_url
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • nextcart_url_redirect
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/nextcart-woocommerce-migration/templates/forms/file.php
    • > /wp-content/plugins/nextcart-woocommerce-migration/templates/extra-services.php
    • > /wp-content/plugins/nextcart-woocommerce-migration/templates/pro-license.php
    • > /wp-content/plugins/nextcart-woocommerce-migration/templates/how-it-works.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nextcart-woocommerce-migration/templates/forms/connector.php:2
    • > PHP Notice
      Undefined variable: cart_type in wp-content/plugins/nextcart-woocommerce-migration/templates/forms/api.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'NCWM_Define' not found in wp-content/plugins/nextcart-woocommerce-migration/templates/setup.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nextcart-woocommerce-migration/templates/forms/api.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ncwm_display_template() in wp-content/plugins/nextcart-woocommerce-migration/templates/index.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: woocommerce migration, store to wordpress, migration, migrate to woocommerce, wordpress migration...

nextcart-woocommerce-migration/nextcart-woocommerce-migration.php Passed 13 tests

The primary PHP file in "Next-Cart Store to WooCommerce Migration" version 3.6.6 is used by WordPress to initiate all plugin functionality
102 characters long description:
Migrate products, categories, customers, orders, reviews and other entities to your WooCommerce store.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin7,546 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP18577615,803
CSS42271,054
SVG100685
JavaScript4084

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.88
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes100
▷ Abstract classes66.00%
▷ Concrete classes9494.00%
▷ Final classes00.00%
Methods265
▷ Static methods3814.34%
▷ Public methods24692.83%
▷ Protected methods93.40%
▷ Private methods103.77%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants14
▷ Global constants1285.71%
▷ Class constants214.29%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
113 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/carts/prestashop.png4.29KB2.25KB▼ 47.46%
assets/images/carts/virtuemart1.png3.57KB3.24KB▼ 9.27%
assets/images/carts/xml.png1.15KB0.74KB▼ 35.68%
assets/images/carts/shopscript.png1.54KB1.58KB0.00%
assets/images/carts/printify.png2.75KB1.91KB▼ 30.80%