Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼143.41ms] Passed 4 tests
An overview of server-side resources used by WooCommerce EU VAT Rates for Digital Goods Sync
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 34.91 ▼14.49 |
Dashboard /wp-admin | 3.09 ▲0.03 | 43.30 ▼2.01 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 47.47 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.31 ▼555.67 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.89 ▼1.45 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce_tax_classes |
Browser metrics Passed 4 tests
WooCommerce EU VAT Rates for Digital Goods Sync: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 16.29 ▲0.69 | 10.51 ▼2.58 | 49.50 ▼5.42 |
Dashboard /wp-admin | 2,992 ▲61 | 5.90 ▼0.03 | 145.09 ▼7.73 | 111.67 ▲2.01 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 69.65 ▼9.48 | 87.70 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.98 ▲0.26 | 405.46 ▲45.59 | 103.28 ▼3.58 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.04 | 155.41 ▼6.45 | 113.06 ▼0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- woocommerce_tax_classes
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: woocommerce, digital goods, taxes, eu vat
woocommerce-eu-vat-rates-sync/woocommerce-eu-vat-rates-for-digital-goods-sync.php 85% from 13 tests
Analyzing the main PHP file in "WooCommerce EU VAT Rates for Digital Goods Sync" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-eu-vat-rates-sync.php" instead of "woocommerce-eu-vat-rates-for-digital-goods-sync.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected93 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 48 | 93 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
No PNG files were detected