100% eu-vat-for-woocommerce

Code Review | EU/UK VAT Manager for WooCommerce

WordPress plugin EU/UK VAT Manager for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: eu-vat-for-woocom...
  • Plugin version: 2.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: May 30, 2018
  • Latest release: Mar 26, 2022
  • Number of updates: 76
  • Update frequency: every 18.4 days
  • Top authors: omardabbas (53.95%)algoritmika (47.37%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active / 32,387 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼317.49ms] Passed 4 tests

Analyzing server-side resources used by EU/UK VAT Manager for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0378.35 ▲9.25
Dashboard /wp-admin3.44 ▲0.0439.54 ▲5.82
Posts /wp-admin/edit.php3.67 ▲0.0341.17 ▼5.12
Add New Post /wp-admin/post-new.php6.91 ▼0.06110.03 ▼1,251.96
Media Library /wp-admin/upload.php3.32 ▲0.0335.20 ▼18.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 273 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by EU/UK VAT Manager for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,841 ▲9315.72 ▲0.209.96 ▲1.273.81 ▼0.10
Dashboard /wp-admin2,966 ▲406.41 ▲0.05189.75 ▼13.82197.74 ▼31.87
Posts /wp-admin/edit.php2,733 ▲123.44 ▲0.0278.67 ▼10.92165.31 ▼7.39
Add New Post /wp-admin/post-new.php1,671 ▲2116.20 ▼4.33581.07 ▼89.42195.18 ▼19.25
Media Library /wp-admin/upload.php1,742 ▲105.84 ▲0.13196.85 ▼6.09266.56 ▼25.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: uk, woo commerce, woocommerce, vat, eu vat...

eu-vat-for-woocommerce/eu-vat-for-woocommerce.php Passed 13 tests

"EU/UK VAT Manager for WooCommerce" version 2.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Manage EU VAT in WooCommerce. Beautifully.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,748 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP143609272,599
JavaScript21834149

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity22.55
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods103
▷ Static methods10.97%
▷ Public methods103100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
255 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/flag-icons/bh.png0.45KB0.59KB0.00%
assets/images/flag-icons/hk.png0.51KB0.65KB0.00%
assets/images/flag-icons/mz.png0.57KB0.76KB0.00%
assets/images/flag-icons/vi.png0.60KB0.67KB0.00%
assets/images/flag-icons/ga.png0.48KB0.71KB0.00%