90% eu-vat-for-woocommerce

Code Review | EU/UK VAT Manager for WooCommerce

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

About plugin

  • Plugin page: eu-vat-for-woocom...
  • Plugin version: 2.9.17
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.4
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Nov 30, 2023
  • Number of updates: 108
  • Update frequency: every 18.6 days
  • Top authors: omardabbas (56.48%)algoritmika (33.33%)wpcodefactory (12.04%)

Code review

54 tests

User reviews

22 reviews

Install metrics

3,000+ active /78,397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.47ms] Passed 4 tests

A check of 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.50 ▲0.0437.36 ▼4.82
Dashboard /wp-admin3.33 ▼0.0145.67 ▼15.81
Posts /wp-admin/edit.php3.39 ▲0.0348.06 ▲3.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.50 ▲13.43
Media Library /wp-admin/upload.php3.26 ▲0.0333.76 ▼4.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 287 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by EU/UK VAT Manager for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5214.67 ▲0.451.78 ▲0.1140.42 ▼4.53
Dashboard /wp-admin2,207 ▲325.67 ▼0.0992.04 ▼26.2840.32 ▼2.09
Posts /wp-admin/edit.php2,112 ▲152.01 ▲0.0039.91 ▲5.0836.26 ▲4.98
Add New Post /wp-admin/post-new.php1,544 ▲1718.53 ▼4.88605.24 ▼93.2065.14 ▲2.01
Media Library /wp-admin/upload.php1,409 ▲184.18 ▲0.0098.13 ▼9.2245.09 ▲2.78

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Main Page - General), #2 (Validation & Progress), #3 (Admin settings & Advanced options)
You can look at the official readme.txt

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

The entry point to "EU/UK VAT Manager for WooCommerce" version 2.9.17 is a PHP file that has certain tags in its header comment area
42 characters long description:
Manage EU VAT in WooCommerce. Beautifully.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,520 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP154731,0693,103
JavaScript33056315
CSS100100
INI1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity31.25
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods113
▷ Static methods10.88%
▷ Public methods113100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants4
▷ Global constants4100.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
255 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/flag-icons/hk.png0.51KB0.65KB0.00%
assets/images/flag-icons/ru.png0.41KB0.64KB0.00%
assets/images/flag-icons/li.png0.52KB0.73KB0.00%
assets/images/flag-icons/cg.png0.51KB0.62KB0.00%
assets/images/flag-icons/fm.png0.54KB0.66KB0.00%