84% export-order-items-for-woocommerce

Code Review | Export Order Items for WooCommerce

WordPress plugin Export Order Items for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: export-order-item...
  • Plugin version: 1.0.14
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.0
  • WordPress version: 6.3.1
  • First release: Dec 28, 2015
  • Latest release: May 9, 2023
  • Number of updates: 44
  • Update frequency: every 61.1 days
  • Top authors: hearken (56.82%)aspengrovestudios (29.55%)annaqq (18.18%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /20,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.76ms] Passed 4 tests

This is a short check of server-side resources used by Export Order Items for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1135.11 ▼7.84
Dashboard /wp-admin3.42 ▲0.1144.87 ▼2.68
Posts /wp-admin/edit.php3.47 ▲0.1148.98 ▲2.73
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.51 ▼5.31
Media Library /wp-admin/upload.php3.34 ▲0.1131.60 ▼3.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Export Order Items for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.36 ▼0.251.51 ▼0.6035.90 ▼6.94
Dashboard /wp-admin2,195 ▲185.51 ▼0.1188.78 ▼0.9735.05 ▼1.27
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.28 ▲3.9636.16 ▲3.53
Add New Post /wp-admin/post-new.php1,526 ▼922.99 ▲4.74670.28 ▲66.9467.23 ▼4.31
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0294.69 ▼5.3641.55 ▲0.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/export-order-items-for-woocommerce/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/export-order-items-for-woocommerce/export-order-items-for-woocommerce.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots need descriptions #2, #3 in export-order-items-for-woocommerce/assets to your readme.txt
Please take inspiration from this readme.txt

export-order-items-for-woocommerce/export-order-items-for-woocommerce.php Passed 13 tests

The main PHP file in "Export Order Items for WooCommerce" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Export order items (products ordered) in CSV (Comma Seperated Values) format, with product, line item, order, and customer data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,297 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP311981913
JavaScript3153109825
CSS36933820
Sass1114737693
SVG60236
YAML12010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity4.33
▷ Minimum method complexity4.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/export_order_items_pro.png44.09KB31.37KB▼ 28.84%
images/scheduled_email_reports_for_woocommerce.png45.14KB31.50KB▼ 30.22%
images/frontend-report-for-woocommerce.png34.89KB36.29KB0.00%