83% order-export-for-woocommerce

Code Review | Order Export for WooCommerce to CSV, Excel, and XML

WordPress plugin Order Export for WooCommerce to CSV, Excel, and XML scored83%from 54 tests.

About plugin

  • Plugin page: order-export-for-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 13, 2021
  • Latest release: Aug 10, 2023
  • Number of updates: 21
  • Update frequency: every 29.1 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /8,472 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.01MB] [CPU: ▼5.71ms] Passed 4 tests

A check of server-side resources used by Order Export for WooCommerce to CSV, Excel, and XML
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.43 ▲1.25
Dashboard /wp-admin3.31 ▼0.0464.57 ▼5.52
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▼1.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.73 ▼16.62
Media Library /wp-admin/upload.php3.23 ▲0.0039.01 ▲3.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Order Export for WooCommerce to CSV, Excel, and XML
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.35 ▲0.001.76 ▲0.0145.21 ▲1.29
Dashboard /wp-admin2,198 ▲275.63 ▼0.1088.70 ▼9.7039.65 ▼5.20
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0440.27 ▲6.6036.54 ▲1.02
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.02701.06 ▼0.9953.34 ▼4.24
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0994.00 ▼6.6045.90 ▼0.79

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PMXE_Model' not found in wp-content/plugins/order-export-for-woocommerce/models/model/list.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/order-export-for-woocommerce/wpae-woocommerce-order-add-on.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'PMXE_Model' not found in wp-content/plugins/order-export-for-woocommerce/models/model/record.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

order-export-for-woocommerce/wpae-woocommerce-order-add-on.php 85% from 13 tests

The main file in "Order Export for WooCommerce to CSV, Excel, and XML" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 161 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("order-export-for-woocommerce.php" instead of "wpae-woocommerce-order-add-on.php")

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
Good job! No executable or dangerous file extensions detected4,902 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP176175233,093
JavaScript32172891,715
CSS118094

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity66.64
▷ Minimum class complexity3.00
▷ Maximum class complexity369.00
Average method complexity7.39
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes330.00%
Methods114
▷ Static methods108.77%
▷ Public methods9583.33%
▷ Protected methods1714.91%
▷ Private methods21.75%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants21
▷ Global constants523.81%
▷ Class constants1676.19%
▷ Public constants16100.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/img/preloader.png15.60KB0.13KB▼ 99.17%