84% order-export-and-more-for-woocommerce

Code Review | Order Export for WooCommerce

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

About plugin

  • Plugin page: order-export-and-...
  • Plugin version: 3.21
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 63
  • Update frequency: every 45.8 days
  • Top authors: merlinmonmouth (84.13%)WebFactory (17.46%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active /102,043 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
Installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▲0.63ms] Passed 4 tests

An overview of server-side resources used by Order Export for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.46 ▼5.73
Dashboard /wp-admin3.88 ▲0.5853.96 ▲1.68
Posts /wp-admin/edit.php3.94 ▲0.5753.83 ▲2.72
Add New Post /wp-admin/post-new.php6.40 ▲0.51107.44 ▲14.18
Media Library /wp-admin/upload.php3.81 ▲0.5741.97 ▲3.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Order Export for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.011.79 ▲0.1043.80 ▼0.97
Dashboard /wp-admin2,195 ▲215.61 ▲0.0988.59 ▼6.3740.77 ▼2.39
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0640.11 ▲2.6835.29 ▼1.18
Add New Post /wp-admin/post-new.php1,535 ▲218.15 ▼4.73643.76 ▲49.3568.21 ▲12.05
Media Library /wp-admin/upload.php1,397 ▼34.26 ▲0.0798.49 ▼4.6648.42 ▲4.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • 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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 22× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/functions.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/JEMEXP_Order.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/templates/tab-settings.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/main.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/JEMEXP_BaseEntity.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/templates/export-export-type.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/templates/export-bottom-buttons.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/templates/export-filter-order-fields.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/templates/export-filter-product-fields.php
    • > /wp-content/plugins/order-export-and-more-for-woocommerce/inc/JEMEXP_Export_Data.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: export products, export orders, export, woocommerce, orders export...

order-export-and-more-for-woocommerce/main.php 85% from 13 tests

The main file in "Order Export for WooCommerce" v. 3.21 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.4" instead of "5.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("order-export-and-more-for-woocommerce.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected13,400 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,6766625,930
PHP221,2981,2394,617
CSS4143802,853

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity77.20
▷ Minimum class complexity6.00
▷ Maximum class complexity297.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods158
▷ Static methods31.90%
▷ Public methods14491.14%
▷ Protected methods21.27%
▷ Private methods127.59%
Functions20
▷ Named functions1785.00%
▷ Anonymous functions315.00%
Constants3
▷ Global constants3100.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