83% woocommerce-exporter

Code Review | Store Exporter for WooCommerce – Export Products, Export Orders, Export Subscriptions, and More

WordPress plugin Store Exporter for WooCommerce – Export Products, Export Orders, Export Subscriptions, and More scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-exporter
  • Plugin version: 2.7.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.3.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2012
  • Latest release: Oct 27, 2023
  • Number of updates: 193
  • Update frequency: every 21.3 days
  • Top authors: visser (84.46%)byronkeet (12.44%)paulgrymera (2.59%)jkohlbach (2.07%)

Code review

54 tests

User reviews

158 reviews

Install metrics

10,000+ active /602,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.77MB] [CPU: ▲2.06ms] Passed 4 tests

A check of server-side resources used by Store Exporter for WooCommerce – Export Products, Export Orders, Export Subscriptions, and More
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5339.22 ▼5.13
Dashboard /wp-admin4.48 ▲1.1856.20 ▲9.32
Posts /wp-admin/edit.php4.25 ▲0.9051.75 ▲2.89
Add New Post /wp-admin/post-new.php6.72 ▲0.8486.51 ▲1.70
Media Library /wp-admin/upload.php4.06 ▲0.8442.17 ▲8.76

Server storage [IO: ▲1.58MB] [DB: ▲0.04MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 129 new files
Database: no new tables, 14 new options
New WordPress options
woo_ce_date_format
theysaidso_admin_options
woo_ce_delimiter
woo_ce_encoding
widget_recent-posts
woo_ce_escape_formatting
woo_ce_category_separator
woo_ce_bom
widget_theysaidso_widget
woo_ce_delete_file
...

Browser metrics Passed 4 tests

Checking browser requirements for Store Exporter for WooCommerce – Export Products, Export Orders, Export Subscriptions, and More
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲14214.76 ▲0.201.68 ▲0.0439.53 ▼3.59
Dashboard /wp-admin2,309 ▲1325.81 ▲0.1584.76 ▼0.9841.17 ▼1.14
Posts /wp-admin/edit.php2,105 ▲52.29 ▲0.3036.95 ▲2.4032.77 ▼3.27
Add New Post /wp-admin/post-new.php1,524 ▼223.05 ▲0.03636.99 ▼29.0836.87 ▼20.83
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.0499.82 ▲2.6343.25 ▼4.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • woo_ce_bom
    • widget_theysaidso_widget
    • woo_ce_date_format
    • theysaidso_admin_options
    • woo_ce_category_separator
    • can_compress_scripts
    • woo_ce_delimiter
    • woo_ce_encoding
    • woo_ce_escape_formatting
    • woo_ce_export_filename
    • ...

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 62× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-exporter/includes/admin/scheduled_export.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocommerce-exporter/includes/user-extend.php:101
    • > PHP Notice
      Undefined variable: subscription_fields in wp-content/plugins/woocommerce-exporter/templates/admin/quick_export-subscription.php on line 1
    • > PHP Notice
      Undefined variable: product_vendor_fields in wp-content/plugins/woocommerce-exporter/templates/admin/quick_export-product_vendor.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-exporter/templates/admin/tabs-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-exporter/includes/functions.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-exporter/includes/common-dashboard_widgets.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woocommerce-exporter/templates/admin/tabs-overview.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-exporter/includes/category.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woocommerce-exporter/includes/user.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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: csv export, xlsx export, order export, woocommerce export orders, excel export...

woocommerce-exporter/exporter.php 77% from 13 tests

The main PHP script in "Store Exporter for WooCommerce – Export Products, Export Orders, Export Subscriptions, and More" version 2.7.2.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("2.9.2" instead of "2.3")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-exporter.php" instead of "exporter.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin24,109 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP762,2171,35315,172
JavaScript94714674,653
PO File11,5092,4623,033
CSS9110721,251

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions291
▷ Named functions29099.66%
▷ Anonymous functions10.34%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/admin/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
templates/admin/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
templates/admin/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
templates/admin/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
templates/admin/images/store-exporter-demo.png106.14KB37.08KB▼ 65.07%