78% fg-prestashop-to-woocommerce

Code Review | FG PrestaShop to WooCommerce

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

About plugin

  • Plugin page: fg-prestashop-to-...
  • Plugin version: 4.44.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Nov 15, 2023
  • Number of updates: 407
  • Update frequency: every 8.2 days
  • Top authors: Kerfred (100%)

Code review

54 tests

User reviews

118 reviews

Install metrics

1,000+ active /121,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.78MB] [CPU: ▼2.53ms] Passed 4 tests

This is a short check of server-side resources used by FG PrestaShop to WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7843.15 ▲4.33
Dashboard /wp-admin4.08 ▲0.7848.38 ▲0.07
Posts /wp-admin/edit.php4.13 ▲0.7848.35 ▲3.79
Add New Post /wp-admin/post-new.php6.66 ▲0.7885.16 ▼18.32
Media Library /wp-admin/upload.php4.01 ▲0.7836.85 ▲5.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FG PrestaShop to WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.71 ▲0.371.70 ▼0.0347.21 ▲7.74
Dashboard /wp-admin2,198 ▲185.62 ▲0.0093.06 ▲2.1540.13 ▼1.12
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0141.34 ▲2.2837.35 ▲1.37
Add New Post /wp-admin/post-new.php1,526 ▼023.39 ▲0.26655.13 ▼53.8558.85 ▲1.75
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0299.65 ▼14.1242.29 ▼5.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/progress-bar.php
    • > /wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/help-options.tpl.php
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FG_PrestaShop_to_WooCommerce_DebugInfo' not found in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/debug-info.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/database-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/database-info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/actions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/ftp-settings.php:2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/admin-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/empty-content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/help-options.tpl.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/behavior.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fg-prestashop-to-woocommerce/admin/partials/database-info.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

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

"FG PrestaShop to WooCommerce" version 4.44.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
A plugin to migrate PrestaShop e-commerce solution to WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,778 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP367451,8973,885
PO File35066921,395
JavaScript154114380
CSS114118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity35.87
▷ Minimum class complexity1.00
▷ Maximum class complexity432.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods194
▷ Static methods73.61%
▷ Public methods11860.82%
▷ Protected methods189.28%
▷ Private methods5829.90%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.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