78% fsx-connector-exporter

Code Review | WooCommerce Products to FactuSOL

WordPress plugin WooCommerce Products to FactuSOL scored78%from 54 tests.

About plugin

  • Plugin page: fsx-connector-exp...
  • Plugin version: 1.6.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.4
  • WordPress version: 6.3.1
  • First release: May 12, 2017
  • Latest release: Jun 9, 2017
  • Number of updates: 17
  • Update frequency: every 1.7 days
  • Top authors: josesan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,638 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.97ms] Passed 4 tests

A check of server-side resources used by WooCommerce Products to FactuSOL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.24 ▼4.47
Dashboard /wp-admin3.36 ▲0.0648.60 ▼1.84
Posts /wp-admin/edit.php3.41 ▲0.0651.36 ▼3.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0696.15 ▲4.08
Media Library /wp-admin/upload.php3.28 ▲0.0638.00 ▼1.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Products to FactuSOL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.281.73 ▼0.1845.79 ▲0.81
Dashboard /wp-admin2,195 ▲155.62 ▼0.0490.11 ▼13.2342.97 ▼1.35
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0739.93 ▼0.1334.10 ▼2.13
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.15684.71 ▼2.1271.04 ▲21.03
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.0597.77 ▼29.4344.13 ▼6.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fsx-connector-exporter/index.php
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required '_FSXE_PATH_classes/class-extruder.php' (include_path='.:/usr/share/php') in wp-content/plugins/fsx-connector-exporter/classes/class-extruderART-2017.php on line 12
    • > PHP Warning
      Use of undefined constant _FSXE_PATH_ - assumed '_FSXE_PATH_' (this will throw an Error in a future version of PHP) in wp-content/plugins/fsx-connector-exporter/classes/class-extruderLTA-2017EV.php on line 12
    • > PHP Warning
      require_once(_FSXE_PATH_classes/class-extruderSTO-2017.php): failed to open stream: No such file or directory in wp-content/plugins/fsx-connector-exporter/classes/class-extruderSTO-2017EV.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required '_FSXE_PATH_classes/class-extruder.php' (include_path='.:/usr/share/php') in wp-content/plugins/fsx-connector-exporter/classes/class-extruderSTO-2017.php on line 12
    • > PHP Warning
      require_once(_FSXE_PATH_classes/class-extruderART-2017.php): failed to open stream: No such file or directory in wp-content/plugins/fsx-connector-exporter/classes/class-extruderART-2017EV.php on line 12
    • > PHP Warning
      Use of undefined constant _FSXE_PATH_ - assumed '_FSXE_PATH_' (this will throw an Error in a future version of PHP) in wp-content/plugins/fsx-connector-exporter/classes/class-extruderART-2017.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required '_FSXE_PATH_classes/class-extruderART-2017.php' (include_path='.:/usr/share/php') in wp-content/plugins/fsx-connector-exporter/classes/class-extruderART-2017EV.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fsx-connector-exporter/TabFsx.php:13
    • > PHP Warning
      require_once(_FSXE_PATH_classes/class-extruder.php): failed to open stream: No such file or directory in wp-content/plugins/fsx-connector-exporter/classes/class-extruderART-2017.php on line 12
    • > PHP Warning
      Use of undefined constant _FSXE_PATH_ - assumed '_FSXE_PATH_' (this will throw an Error in a future version of PHP) in wp-content/plugins/fsx-connector-exporter/classes/class-extruderLTA-2017.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: products, export products, woocommerce, factusol, export

fsx-connector-exporter/fsx-connector-exporter.php 92% from 13 tests

"WooCommerce Products to FactuSOL" version 1.6.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,666 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP134882631,613
PO File1151553

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.75
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods81
▷ Static methods00.00%
▷ Public methods81100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin