83% woo-order-export-lite

Code Review | Advanced Order Export For WooCommerce

WordPress plugin Advanced Order Export For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-order-export-...
  • Plugin version: 3.4.4
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Nov 27, 2023
  • Number of updates: 240
  • Update frequency: every 12.6 days
  • Top authors: algol.plus (100%)

Code review

54 tests

User reviews

313 reviews

Install metrics

100,000+ active /2,218,944 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.10MB] [CPU: ▼1.78ms] Passed 4 tests

An overview of server-side resources used by Advanced Order Export For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.69 ▼2.72
Dashboard /wp-admin3.44 ▲0.1447.61 ▼4.06
Posts /wp-admin/edit.php3.49 ▲0.1447.64 ▲2.59
Add New Post /wp-admin/post-new.php6.02 ▲0.1484.52 ▼2.91
Media Library /wp-admin/upload.php3.37 ▲0.1436.66 ▲3.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 384 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Order Export For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4514.68 ▲0.171.62 ▼0.1343.06 ▼0.72
Dashboard /wp-admin2,195 ▲215.60 ▲0.0291.66 ▼9.3440.10 ▼5.45
Posts /wp-admin/edit.php2,103 ▼02.03 ▲0.0334.51 ▼1.0233.42 ▼2.32
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.24587.85 ▼9.2650.02 ▼11.57
Media Library /wp-admin/upload.php1,403 ▲94.23 ▼0.0198.19 ▲1.6441.95 ▲0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 99× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Shared/trend/powerBestFitClass.php on line 3
    • > PHP Warning
      require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Shared/trend/powerBestFitClass.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Writer/Excel2007/RelsVBA.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Writer/OpenDocument/WriterPart.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Writer/PDF/Core.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Shared_File' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Shared/ZipArchive.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Worksheet_Drawing' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Worksheet/HeaderFooterDrawing.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Writer/Excel2007/Rels.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Exception' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Chart/Exception.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/woo-order-export-lite/classes/PHPExcel/Writer/OpenDocument/Thumbnails.php:28

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

woo-order-export-lite/woo-order-export-lite.php 92% from 13 tests

The main PHP script in "Advanced Order Export For WooCommerce" version 3.4.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected83,934 lines of code in 339 files:
LanguageFilesBlank linesComment linesLines of code
PHP27013,41137,59774,727
JavaScript662,1545858,348
CSS31558859

PHP code 0% from 2 tests

Analyzing cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,019)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 387)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity52.17
▷ Minimum class complexity1.00
▷ Maximum class complexity1,019.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity387.00
Code structure
Namespaces0
Interfaces8
Traits7
Classes245
▷ Abstract classes135.31%
▷ Concrete classes23294.69%
▷ Final classes00.00%
Methods3,490
▷ Static methods78522.49%
▷ Public methods2,73678.40%
▷ Protected methods1654.73%
▷ Private methods58916.88%
Functions61
▷ Named functions1524.59%
▷ Anonymous functions4675.41%
Constants868
▷ Global constants12214.06%
▷ Class constants74685.94%
▷ Public constants746100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/calendar.png0.22KB0.23KB0.00%