83% order-export-to-lexware-opentrans-for-woocommerce

Code Review | Order Export to Lexware for WooCommerce - OpenTRANS

WordPress plugin Order Export to Lexware for WooCommerce - OpenTRANS scored83%from 54 tests.

About plugin

  • Plugin page: order-export-to-l...
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2022
  • Latest release: Aug 5, 2023
  • Number of updates: 21
  • Update frequency: every 20.1 days
  • Top authors: nikelschubert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /465 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.23MB] [CPU: ▲2.42ms] Passed 4 tests

A check of server-side resources used by Order Export to Lexware for WooCommerce - OpenTRANS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2041.33 ▲0.43
Dashboard /wp-admin3.58 ▲0.2753.01 ▲4.65
Posts /wp-admin/edit.php3.63 ▲0.2748.57 ▲0.81
Add New Post /wp-admin/post-new.php6.11 ▲0.22110.61 ▲11.88
Media Library /wp-admin/upload.php3.44 ▲0.2138.10 ▲3.77

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Order Export to Lexware for WooCommerce - OpenTRANS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲3713.29 ▼1.121.75 ▼0.4843.93 ▼0.17
Dashboard /wp-admin2,214 ▲265.79 ▲0.8897.47 ▼8.7739.22 ▼4.89
Posts /wp-admin/edit.php2,100 ▲82.00 ▼0.0138.75 ▼0.8335.14 ▲4.60
Add New Post /wp-admin/post-new.php1,522 ▲323.29 ▲0.13594.93 ▼13.2955.02 ▲4.72
Media Library /wp-admin/upload.php1,399 ▲114.26 ▲0.0497.62 ▼4.4141.62 ▼4.05

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

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 everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/order-export-to-lexware-opentrans-for-woocommerce/admin/partials/display-nscwto.php:3

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 errors were detected

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

order-export-to-lexware-opentrans-for-woocommerce/order-to-lexware-nscwto.php 85% from 13 tests

The main PHP file in "Order Export to Lexware for WooCommerce - OpenTRANS" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("order-export-to-lexware-opentrans-for-woocommerce.php" instead of "order-to-lexware-nscwto.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
Success! There were no dangerous files found in this plugin3,093 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript280441,297
PHP152121901,135
JSON100322
CSS2314236
PO File23636103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.83
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods87
▷ Static methods22.30%
▷ Public methods4147.13%
▷ Protected methods00.00%
▷ Private methods4652.87%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG files were detected