78% fg-magento-to-woocommerce

Code Review | FG Magento to WooCommerce

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

About plugin

  • Plugin page: fg-magento-to-woo...
  • Plugin version: 3.37.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Nov 15, 2023
  • Number of updates: 389
  • Update frequency: every 7.7 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

75 reviews

Install metrics

300+ active /66,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.64MB] [CPU: ▼1.25ms] Passed 4 tests

Server-side resources used by FG Magento to WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6542.37 ▲1.75
Dashboard /wp-admin3.95 ▲0.6448.86 ▲3.32
Posts /wp-admin/edit.php4.00 ▲0.6451.12 ▲1.42
Add New Post /wp-admin/post-new.php6.53 ▲0.6494.25 ▼11.47
Media Library /wp-admin/upload.php3.87 ▲0.6435.76 ▲5.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by FG Magento to WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.24 ▼0.501.64 ▼0.2342.27 ▲0.59
Dashboard /wp-admin2,198 ▲215.62 ▲0.0389.61 ▼8.2541.93 ▲0.88
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0840.09 ▼0.3436.19 ▼2.05
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▼0.21657.75 ▲47.5549.94 ▲0.14
Media Library /wp-admin/upload.php1,397 ▼34.18 ▲0.0399.07 ▲0.8141.55 ▲0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fg-magento-to-woocommerce/admin/partials/progress-bar.php
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FG_Magento_to_WooCommerce_DebugInfo' not found in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/debug-info.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/help-options.tpl.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/database-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/behavior.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/admin-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/database-info.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/admin-display.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/logger.php:3
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fg-magento-to-woocommerce/admin/partials/paypal-donate.php:1

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The main PHP file in "FG Magento to WooCommerce" ver. 3.37.4 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
A plugin to migrate categories, products, images and CMS from Magento to WooCommerce

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
Good job! No executable or dangerous file extensions detected5,012 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP276431,6763,333
PO File36171,0201,263
JavaScript14594303
CSS114113

PHP code Passed 2 tests

An short overview of 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.32
Average class complexity49.78
▷ Minimum class complexity1.00
▷ Maximum class complexity399.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods168
▷ Static methods21.19%
▷ Public methods8952.98%
▷ Protected methods1810.71%
▷ Private methods6136.31%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin