88% cart2cart-wp-e-commerce-to-woocommerce-migration

Code Review | Cart2Cart: WP e-Commerce Shopsoftware to WooCommerce Migration

WordPress plugin Cart2Cart: WP e-Commerce Shopsoftware to WooCommerce Migration scored 88% from 54 tests.

About plugin

  • Plugin page: cart2cart-wp-e-co...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.2-5.8
  • WordPress version: 5.9.2
  • First release: Mar 12, 2014
  • Latest release: Jan 12, 2022
  • Number of updates: 41
  • Update frequency: every 69.8 days
  • Top authors: Cart2Cart (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,631 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼285.88ms] Passed 4 tests

Server-side resources used by Cart2Cart: WP e-Commerce Shopsoftware to WooCommerce Migration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2361.43 ▲10.00
Dashboard /wp-admin3.59 ▲0.1894.38 ▲60.68
Posts /wp-admin/edit.php3.82 ▲0.1846.28 ▲10.38
Add New Post /wp-admin/post-new.php7.06 ▲0.09109.81 ▼1,163.34
Media Library /wp-admin/upload.php3.47 ▲0.1726.96 ▼0.57
Cart2Cart Migration /wp-admin/admin.php?page=cart2cart-migration3.4623.58
Settings /wp-admin/admin.php?page=cart2cart-migration-settings3.4524.98
Live Chat & Help /wp-admin/admin.php?page=cart2cart-migration-help3.4622.37
Additional Services /wp-admin/admin.php?page=cart2cart-additional-services3.4623.53
How it works /wp-admin/admin.php?page=cart2cart-how-it-works3.4622.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: 1 new table, no new options
New tables
wp_c2c_config

Browser metrics Passed 4 tests

A check of browser resources used by Cart2Cart: WP e-Commerce Shopsoftware to WooCommerce Migration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲8615.77 ▲0.105.54 ▼0.221.98 ▼0.10
Dashboard /wp-admin2,935 ▲746.15 ▼0.03144.91 ▲17.89179.23 ▲19.73
Posts /wp-admin/edit.php2,736 ▲453.13 ▼0.0963.83 ▲0.58143.12 ▲0.32
Add New Post /wp-admin/post-new.php1,739 ▲7820.89 ▲4.72408.37 ▼4.69196.65 ▲40.08
Media Library /wp-admin/upload.php1,741 ▲435.47 ▼0.03124.55 ▼20.17206.24 ▲20.51
Cart2Cart Migration /wp-admin/admin.php?page=cart2cart-migration1,7638.28220.68184.09
Settings /wp-admin/admin.php?page=cart2cart-migration-settings1,0292.4050.9489.05
Live Chat & Help /wp-admin/admin.php?page=cart2cart-migration-help1,3697.16214.00141.07
Additional Services /wp-admin/admin.php?page=cart2cart-additional-services1,4676.90141.85135.70
How it works /wp-admin/admin.php?page=cart2cart-how-it-works1,3926.94136.68135.81

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
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cart2cart-wp-e-commerce-to-woocommerce-migration/bridge2cart/bridge.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cart2cart-wp-e-commerce-to-woocommerce-migration/passwords/cart2cart-password-migration.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cart2cart-wp-e-commerce-to-woocommerce-migration/passwords/cart2cart-password-migration.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

cart2cart-wp-e-commerce-to-woocommerce-migration/index.php 85% from 13 tests

The principal PHP file in "Cart2Cart: WP e-Commerce Shopsoftware to WooCommerce Migration" v. 2.0.0 is loaded by WordPress automatically on each request
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 ("cart2cart-wp-e-commerce-to-woocommerce-migration.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,646 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP151,2671,2995,628
CSS14018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.07
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity4.92
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes83
▷ Abstract classes00.00%
▷ Concrete classes83100.00%
▷ Final classes00.00%
Methods257
▷ Static methods145.45%
▷ Public methods20479.38%
▷ Protected methods4617.90%
▷ Private methods72.72%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants85
▷ Global constants4047.06%
▷ Class constants4552.94%
▷ Public constants45100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
img/icon.png4.28KB1.39KB▼ 67.49%