58% sync-ecommerce-neo

Code Review | Sync eCommerce NEO

WordPress plugin Sync eCommerce NEO scored 58% from 54 tests.

About plugin

  • Plugin page: sync-ecommerce-neo
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.1
  • WordPress version: 5.9.2
  • First release: Apr 8, 2021
  • Latest release: Jan 4, 2022
  • Number of updates: 4
  • Update frequency: every 68.0 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 168 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.46MB] [CPU: ▼272.01ms] Passed 4 tests

Server-side resources used by Sync eCommerce NEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.36 ▲4.8576.17 ▲21.70
Dashboard /wp-admin8.38 ▲4.9859.29 ▲25.90
Posts /wp-admin/edit.php8.38 ▲4.7467.64 ▲29.53
Add New Post /wp-admin/post-new.php10.25 ▲3.28123.73 ▼1,155.81
Media Library /wp-admin/upload.php8.38 ▲5.0946.45 ▲20.19
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.3843.81

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 185 new files
Database: 1 new table, 4 new options
New tables
wp_wcsen_product_sync
New WordPress options
fs_active_plugins
fs_gdpr
fs_accounts
fs_debug_mode

Browser metrics Passed 4 tests

Sync eCommerce NEO: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,851 ▲9715.78 ▲0.035.71 ▼0.453.55 ▲1.36
Dashboard /wp-admin2,948 ▲906.11 ▼0.06117.03 ▼27.64171.49 ▼27.91
Posts /wp-admin/edit.php2,744 ▲533.25 ▲0.0163.63 ▼1.43156.10 ▲8.38
Add New Post /wp-admin/post-new.php1,683 ▼2820.01 ▼1.12418.84 ▼74.82182.48 ▲20.37
Media Library /wp-admin/upload.php1,751 ▲535.51 ▲0.08158.69 ▲11.58206.45 ▲16.44
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,4782.5059.73167.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wcsen_product_sync
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_debug_mode
    • fs_gdpr
    • fs_accounts
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/ajax-loader.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/sync-ecommerce-neo/includes/class-sync-orders.php:11
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/partials/network-activation.php:6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sync-ecommerce-neo/vendor/freemius/wordpress-sdk/templates/account/partials/addon.php on line 7

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, neo erp

sync-ecommerce-neo/sync-ecommerce-neo.php Passed 13 tests

This is the main PHP file of "Sync eCommerce NEO" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Imports Products and data from NEO to WooCommerce.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected33,073 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP1227,62916,69732,571
JavaScript44260215
PO File188102196
JSON10048
CSS121043

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity84.98
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes52
▷ Abstract classes23.85%
▷ Concrete classes5096.15%
▷ Final classes00.00%
Methods1,223
▷ Static methods18715.29%
▷ Public methods86770.89%
▷ Protected methods161.31%
▷ Private methods34027.80%
Functions105
▷ Named functions10499.05%
▷ Anonymous functions10.95%
Constants136
▷ Global constants11181.62%
▷ Class constants2518.38%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/sync-ecommerce-neo.png9.16KB5.26KB▼ 42.58%
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%