Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.32ms] Passed 4 tests
This is a short check of server-side resources used by VIES Validator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.73 ▼5.51 |
Dashboard /wp-admin | 3.51 ▲0.20 | 54.66 ▲0.15 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 55.75 ▲3.57 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 104.93 ▼10.39 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.89 ▲2.47 |
Vies Validator /wp-admin/options-general.php?page=vies-validator | 3.33 | 39.87 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for VIES Validator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.43 ▼0.92 | 8.47 ▲6.76 | 39.46 ▼1.75 |
Dashboard /wp-admin | 2,206 ▲26 | 5.64 ▼0.05 | 92.51 ▼2.51 | 42.01 ▼3.22 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.08 | 39.83 ▼0.75 | 36.04 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.39 ▲0.31 | 607.70 ▼32.69 | 63.33 ▼0.23 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.17 ▼0.04 | 96.41 ▼10.46 | 45.36 ▼1.68 |
Vies Validator /wp-admin/options-general.php?page=vies-validator | 844 | 1.99 | 22.94 | 28.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/vies-validator/public/partials/vies-validator-public-display.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vies-validator/vendor/ph-7/eu-vat-validator/tests/Vat/ValidatorTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vies-validator/vendor/ph-7/eu-vat-validator/tests/Vat/Provider/EuropaTest.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/vies-validator/admin/partials/vies-validator-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/vies-validator/vendor/ph-7/eu-vat-validator/src/Vat/Provider/Europa.php:29
- > PHP Fatal error
Uncaught Error: Interface 'PH7\\Eu\\Vat\\Provider\\Providable' not found in wp-content/plugins/vies-validator/vendor/ph-7/eu-vat-validator/src/Vat/Provider/Europa.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PH7\\Eu\\Vat\\Validatable' not found in wp-content/plugins/vies-validator/vendor/ph-7/eu-vat-validator/src/Vat/Validator.php:14
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (The Vies Validator settings page.) image not found
vies-validator/vies-validator.php Passed 13 tests
The primary PHP file in "VIES Validator" version 1.0.4 is used by WordPress to initiate all plugin functionality
140 characters long description:
Allow to add a VAT Number (Partita IVA) field to Woocommerce checkout and validate it using the VIES API service from Agenzia delle Entrate.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,217 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 304 | 901 | 983 |
JSON | 3 | 0 | 0 | 92 |
Markdown | 1 | 41 | 0 | 54 |
PO File | 1 | 17 | 21 | 53 |
XML | 1 | 3 | 0 | 16 |
CSS | 2 | 3 | 8 | 13 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 87 | 87.00% |
▷ Protected methods | 5 | 5.00% |
▷ Private methods | 8 | 8.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin