84% export-woocommerce

Code Review | Products, Order & Customers Export for WooCommerce

WordPress plugin Products, Order & Customers Export for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: export-woocommerce
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Dec 22, 2016
  • Latest release: Oct 29, 2023
  • Number of updates: 61
  • Update frequency: every 41.0 days
  • Top authors: omardabbas (54.1%)algoritmika (40.98%)wpcodefactory (8.2%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /57,831 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by Products, Order & Customers Export for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.08 ▼1.62
Dashboard /wp-admin3.32 ▲0.0246.31 ▼4.67
Posts /wp-admin/edit.php3.38 ▲0.0244.37 ▼3.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.51 ▼4.06
Media Library /wp-admin/upload.php3.25 ▲0.0236.12 ▲0.65

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Products, Order & Customers Export for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.041.87 ▲0.2144.50 ▼0.69
Dashboard /wp-admin2,189 ▲85.51 ▼0.1485.71 ▼11.8539.12 ▼1.97
Posts /wp-admin/edit.php2,103 ▲31.96 ▲0.0134.30 ▼2.4731.94 ▼5.80
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▲0.09667.86 ▼10.7255.73 ▲5.06
Media Library /wp-admin/upload.php1,403 ▼04.25 ▲0.1196.73 ▼8.4645.10 ▼0.12

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/export-woocommerce/includes/import/class-alg-wc-export-import-products.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Main Page with General Settings), #2 (Export Product Settings), #3 (Dashboard Page), #4 (Product Report Results Page)
Please take inspiration from this readme.txt

export-woocommerce/export-woocommerce.php Passed 13 tests

The entry point to "Products, Order & Customers Export for WooCommerce" version 2.0.7 is a PHP file that has certain tags in its header comment area
128 characters long description:
Advanced export tools for all your WooCommerce store data: Orders, Products Customers & More, export to XML or CSV in one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,840 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP183568103,330
PO File1187292435
JavaScript281373
INI1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity33.12
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity6.31
▷ Minimum method complexity1.00
▷ Maximum method complexity99.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods97
▷ Static methods11.03%
▷ Public methods97100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1684.21%
▷ Anonymous functions315.79%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin