Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲18.99ms] Passed 4 tests
A check of server-side resources used by WordPress EU VAT Helpers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 160.47 ▲136.74 |
Dashboard /wp-admin | 3.25 ▲0.20 | 176.84 ▲129.16 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 201.81 ▲154.65 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 312.40 ▼344.61 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 262.22 ▲225.49 |
Server storage [IO: ▲0.24MB] [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: 35 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WordPress EU VAT Helpers: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.31 ▲0.81 | 9.64 ▲1.61 | 50.20 ▲0.33 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▲0.00 | 136.01 ▼13.77 | 120.68 ▼3.91 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 67.89 ▼4.21 | 90.46 ▲0.97 |
Add New Post /wp-admin/post-new.php | 1,581 ▼102 | 17.42 ▼1.38 | 433.18 ▲54.65 | 134.16 ▲10.67 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 4.99 ▼0.03 | 164.28 ▲3.81 | 107.31 ▼11.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-eu-vat-helpers/tests/unit/PluginTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/wp-eu-vat-helpers/vendor/mpociot/vat-calculator/src/Mpociot/VatCalculator/VatCalculatorServiceProvider.php:16
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Routing\\Controller' not found in wp-content/plugins/wp-eu-vat-helpers/vendor/mpociot/vat-calculator/src/controllers/Controller.php:11
- > PHP Fatal error
Uncaught Error: Class 'Route' not found in wp-content/plugins/wp-eu-vat-helpers/vendor/mpociot/vat-calculator/src/routes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function SehrGut\\WpEuVatHelpers\\add_shortcode() in wp-content/plugins/wp-eu-vat-helpers/Plugin.php:42
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/wp-eu-vat-helpers/vendor/mpociot/vat-calculator/src/Mpociot/VatCalculator/Facades/VatCalculator.php:5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: tax, localization, vat, eu, mehrwertsteuer...
wp-eu-vat-helpers/wp-eu-vat-helpers.php Passed 13 tests
Analyzing the main PHP file in "WordPress EU VAT Helpers" version 1.1.2
121 characters long description:
WordPress helper shortcodes to display prices including applicable VAT rate for the user's location (based on IP address)
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
Success! There were no dangerous files found in this plugin1,666 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 240 | 586 | 1,233 |
JavaScript | 1 | 24 | 84 | 160 |
JSON | 3 | 0 | 0 | 120 |
Bourne Shell | 1 | 24 | 34 | 105 |
Markdown | 2 | 7 | 0 | 24 |
XML | 1 | 0 | 0 | 22 |
YAML | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 4 | 4.60% |
▷ Public methods | 78 | 89.66% |
▷ Protected methods | 7 | 8.05% |
▷ Private methods | 2 | 2.30% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There are no PNG files in this plugin