Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼295.56ms] Passed 4 tests
Server-side resources used by EU VAT Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 62.31 ▲10.92 |
Dashboard /wp-admin | 3.52 ▲0.11 | 219.64 ▲186.39 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 37.58 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.97 ▲0.00 | 92.46 ▼1,191.83 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 24.46 ▼0.51 |
EU VAT Redirect /wp-admin/options-general.php?page=eu-vat-redirect | 3.35 | 25.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 3 new options
New WordPress options |
---|
euvat_confirmslug_id |
euvat_db_update |
euvat_locationslug_id |
Browser metrics Passed 4 tests
An overview of browser requirements for EU VAT Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,798 ▲44 | 16.33 ▲0.44 | 6.45 ▲0.08 | 2.52 ▼1.06 |
Dashboard /wp-admin | 2,897 ▲36 | 6.37 ▼0.04 | 120.51 ▼12.98 | 156.45 ▼5.99 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.42 ▼0.14 | 63.10 ▼0.56 | 139.03 ▼12.10 |
Add New Post /wp-admin/post-new.php | 1,755 ▲38 | 21.20 ▲3.22 | 472.43 ▲46.26 | 171.70 ▲12.35 |
Media Library /wp-admin/upload.php | 1,706 ▲5 | 5.73 ▲0.01 | 141.33 ▲4.66 | 191.60 ▲6.42 |
EU VAT Redirect /wp-admin/options-general.php?page=eu-vat-redirect | 1,143 | 2.63 | 56.68 | 132.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/eu-vat-redirect/eu-vat-redirect.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eu-vat-redirect/eu-vat-redirect-admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: tax, payment processors, ip, vat, geo location...
eu-vat-redirect/eu-vat-redirect.php Passed 13 tests
The main file in "EU VAT Redirect" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Allows you to set buy links differently for visitors from the EU and outside the EU, for VAT purposes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin929 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 156 | 68 | 566 |
Pascal | 1 | 45 | 1,557 | 279 |
CSS | 1 | 3 | 0 | 63 |
JavaScript | 1 | 3 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin