84% woocommerce-export-orders

Code Review | WooCommerce Export Orders

WordPress plugin WooCommerce Export Orders scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-expor...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Nov 2, 2022
  • Number of updates: 28
  • Update frequency: every 102.5 days
  • Top authors: ImagiSol (78.57%)Dhruvin (25%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /15,592 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.44ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Export Orders
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0355.96 ▲14.48
Dashboard /wp-admin3.34 ▲0.0349.32 ▲0.96
Posts /wp-admin/edit.php3.39 ▲0.0349.99 ▼2.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.82 ▼24.57
Media Library /wp-admin/upload.php3.26 ▲0.0338.94 ▲0.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WooCommerce Export Orders: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.091.82 ▼0.2442.29 ▼2.61
Dashboard /wp-admin2,206 ▲214.84 ▼1.05101.72 ▼7.8241.22 ▼0.38
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0635.48 ▼5.7133.62 ▼5.61
Add New Post /wp-admin/post-new.php1,537 ▼523.26 ▲4.95677.62 ▲6.2655.82 ▲3.64
Media Library /wp-admin/upload.php1,379 ▼94.16 ▼0.0296.89 ▼11.3044.92 ▼1.81

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/woocommerce-export-orders/woocommerce-export-orders.php:18

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: pdf, csv, woocommerce, export orders, export emails...

woocommerce-export-orders/woocommerce-export-orders.php 92% from 13 tests

The main file in "WooCommerce Export Orders" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin11,905 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript122,4967,5358,785
SVG1002,671
CSS61116289
PHP14430160

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/themes/default/assets/images/flags.png27.46KB29.21KB0.00%