78% woocommerce-eu-vat-compliance

Code Review | EU/UK VAT Compliance Assistant for WooCommerce

WordPress plugin EU/UK VAT Compliance Assistant for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-eu-va...
  • Plugin version: 1.29.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 28, 2014
  • Latest release: Nov 3, 2023
  • Number of updates: 230
  • Update frequency: every 14.2 days
  • Top authors: DavidAnderson (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

4,000+ active /180,943 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.21MB] [CPU: ▲0.18ms] Passed 4 tests

Analyzing server-side resources used by EU/UK VAT Compliance Assistant for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2159.31 ▲20.27
Dashboard /wp-admin3.52 ▲0.2243.70 ▼0.79
Posts /wp-admin/edit.php3.63 ▲0.2849.62 ▲8.58
Add New Post /wp-admin/post-new.php6.10 ▲0.2180.26 ▼13.24
Media Library /wp-admin/upload.php3.44 ▲0.2137.50 ▲6.17

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for EU/UK VAT Compliance Assistant for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.22 ▼0.122.75 ▲0.9243.30 ▲5.46
Dashboard /wp-admin2,195 ▲175.61 ▼0.0291.87 ▼22.3241.47 ▼2.80
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0540.17 ▲3.1135.66 ▲2.20
Add New Post /wp-admin/post-new.php1,539 ▲1324.98 ▲1.64620.96 ▼59.8360.16 ▼5.59
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.0594.95 ▼7.4942.72 ▼1.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 27× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/rate-providers/ecb.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/regions/vat-region.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/record-order-details.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/regions/norway.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/rate-providers/hmrc-uk.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/rate-providers/base-generic.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/number-lookups/vies.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/readiness-tests.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/control-centre.php
    • > /wp-content/plugins/woocommerce-eu-vat-compliance/rate-providers/romaniannb.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soap_val.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-eu-vat-compliance/nusoap/class.xmlschema.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: vat compliance, iva, woocommerce, moss, eu vat

woocommerce-eu-vat-compliance/eu-vat-compliance.php 85% from 13 tests

Analyzing the main PHP file in "EU/UK VAT Compliance Assistant for WooCommerce" version 1.29.7
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.8.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-eu-vat-compliance.php" instead of "eu-vat-compliance.php")

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 plugin21,967 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP382,4944,59111,614
JavaScript74181,1185,409
PO File52,2502,3134,550
JSON110256
CSS11125128
XML10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity59.59
▷ Minimum class complexity1.00
▷ Maximum class complexity392.00
Average method complexity7.41
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes48.70%
▷ Concrete classes4291.30%
▷ Final classes00.00%
Methods428
▷ Static methods00.00%
▷ Public methods36084.11%
▷ Protected methods388.88%
▷ Private methods307.01%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/cross.png1.12KB1.14KB0.00%
images/tick.png0.88KB0.87KB▼ 1.00%