Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼140.41ms] Passed 4 tests
Server-side resources used by VAT / UST ID Checker - Validator EU for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 41.00 ▲11.52 |
Dashboard /wp-admin | 3.12 ▲0.07 | 42.86 ▼0.00 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 37.84 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 86.11 ▼555.62 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 32.20 ▼0.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
VAT / UST ID Checker - Validator EU for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲214 | 16.61 ▲1.06 | 12.37 ▲4.37 | 47.61 ▼5.91 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▼0.05 | 133.78 ▼17.90 | 116.11 ▲7.67 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 63.68 ▼4.93 | 95.18 ▲5.50 |
Add New Post /wp-admin/post-new.php | 1,876 ▲200 | 19.20 ▲0.33 | 369.47 ▼6.49 | 108.76 ▲0.54 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.06 ▲0.06 | 149.84 ▼16.47 | 123.65 ▼9.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'PH7\\Eu\\Vat\\Provider\\Providable' not found in wp-content/plugins/vat-ust-id-checker-validator-eu-for-woocommerce/core/lib/Vat/Provider/Europa.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PH7\\Eu\\Vat\\Validatable' not found in wp-content/plugins/vat-ust-id-checker-validator-eu-for-woocommerce/core/lib/Vat/Validator.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: validator, ustid, reverse charge, vat, woocommerce
vat-ust-id-checker-validator-eu-for-woocommerce/check-tax-vat-id-woo.php 77% from 13 tests
The principal PHP file in "VAT / UST ID Checker - Validator EU for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vat-ust-id-checker-validator-eu-for-woocommerce.php" instead of "check-tax-vat-id-woo.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
Everything looks great! No dangerous files found in this plugin422 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 159 | 84 | 367 |
PO File | 1 | 10 | 10 | 36 |
JavaScript | 1 | 1 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 13 | 43.33% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin