78% fg-opencart-to-woocommerce

Code Review | FG OpenCart to WooCommerce

WordPress plugin FG OpenCart to WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: fg-opencart-to-wo...
  • Plugin version: 1.27.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 67
  • Update frequency: every 12.6 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /6,679 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.76MB] [CPU: ▼2.79ms] Passed 4 tests

This is a short check of server-side resources used by FG OpenCart to WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7644.70 ▲1.85
Dashboard /wp-admin4.07 ▲0.7648.34 ▼3.73
Posts /wp-admin/edit.php4.12 ▲0.7549.91 ▲1.69
Add New Post /wp-admin/post-new.php6.65 ▲0.7592.21 ▼10.98
Media Library /wp-admin/upload.php3.99 ▲0.7538.51 ▲4.81

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by FG OpenCart to WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.21 ▼0.111.82 ▼0.3044.95 ▼0.45
Dashboard /wp-admin2,195 ▲215.62 ▼0.0392.86 ▼7.6639.43 ▼5.32
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0142.43 ▲5.2738.39 ▲1.15
Add New Post /wp-admin/post-new.php1,526 ▼223.42 ▲0.15602.93 ▼80.4549.40 ▼14.73
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.0199.48 ▼5.5442.44 ▼3.37

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

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

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
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/progress-bar.php
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/fg-opencart-to-woocommerce/admin/class-fg-opencart-to-woocommerce-admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/tabs.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/behavior.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/database-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/database-info.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'FG_OpenCart_to_WooCommerce_Download_FTP' not found in wp-content/plugins/fg-opencart-to-woocommerce/admin/class-fg-opencart-to-woocommerce-ftp.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/extra-features.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/rating.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-opencart-to-woocommerce/admin/partials/settings.php:2

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

fg-opencart-to-woocommerce/fg-opencart-to-woocommerce.php Passed 13 tests

The main file in "FG OpenCart to WooCommerce" v. 1.27.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
A plugin to migrate OpenCart e-commerce solution to WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,208 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PO File1159172479

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.33
▷ Minimum class complexity1.00
▷ Maximum class complexity338.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
▷ Static methods73.76%
▷ Public methods11762.90%
▷ Protected methods136.99%
▷ Private methods5630.11%
▷ Named functions350.00%
▷ Anonymous functions350.00%
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin