73% woocommerce-simply-order-export

Code Review | WooCommerce Simply Order Export

WordPress plugin WooCommerce Simply Order Export scored73%from 54 tests.

About plugin

  • Plugin page: woocommerce-simpl...
  • Plugin version: 3.0.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 26, 2015
  • Latest release: Aug 14, 2020
  • Number of updates: 91
  • Update frequency: every 22.3 days
  • Top authors: ankit.gade@rtcamp.com (82.42%)wpgurudev (18.68%)

Code review

54 tests

User reviews

49 reviews

Install metrics

2,000+ active /159,433 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.54MB] [CPU: ▼46.78ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Simply Order Export
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼1.0111.30 ▼31.84
Dashboard /wp-admin2.46 ▼0.8413.83 ▼37.35
Posts /wp-admin/edit.php2.47 ▼0.8914.44 ▼33.62
Add New Post /wp-admin/post-new.php2.47 ▼3.4312.39 ▼84.29
Media Library /wp-admin/upload.php2.47 ▼0.7712.80 ▼20.08

Server storage [IO: ▲0.14MB] [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: 29 new files
Database: no new tables, 7 new options
New WordPress options
woooe_salt
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Simply Order Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲6813.43 ▼0.951.91 ▼0.2543.70 ▼4.40
Dashboard /wp-admin2,245 ▲574.99 ▼0.87110.55 ▼5.3338.06 ▼8.04
Posts /wp-admin/edit.php2,130 ▲442.27 ▲0.2342.87 ▲6.5936.00 ▲3.15
Add New Post /wp-admin/post-new.php1,546 ▲2123.13 ▼0.19644.42 ▼37.3958.78 ▼0.55
Media Library /wp-admin/upload.php1,430 ▲394.37 ▲0.1799.54 ▼4.3341.44 ▼2.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Warning in wp-content/plugins/woocommerce-simply-order-export/classes/class-woooe.php+83
    Use of undefined constant WC_ABSPATH - assumed 'WC_ABSPATH' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • woooe_salt

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-simply-order-export/views/woooe-addon.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function woooe_order_statuses_section_end() in wp-content/plugins/woocommerce-simply-order-export/classes/admin-settings/advanced-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-simply-order-export/lib/functions.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-simply-order-export/views/html-notice-addon-update.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-simply-order-export/classes/admin-settings/general-settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

woocommerce-simply-order-export/woo-order-export.php 77% from 13 tests

This is the main PHP file of "WooCommerce Simply Order Export" version 3.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-simply-order-export.php" instead of "woo-order-export.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
There were no executable files found in this plugin2,884 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON2001,480
PHP184193201,147
JavaScript34638144
PO File14345100
CSS22013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.82
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods54
▷ Static methods2240.74%
▷ Public methods5194.44%
▷ Protected methods11.85%
▷ Private methods23.70%
Functions19
▷ Named functions1578.95%
▷ Anonymous functions421.05%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin