Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/corona-vat-germany/corona_vat_germany.php+74
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.02MB] [CPU: ▼300.74ms] Passed 4 tests
An overview of server-side resources used by Corona VAT Germany
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 57.43 ▲6.21 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.74 ▼1.59 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 35.96 ▼1.92 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.26 ▼1,201.98 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.88 ▲2.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Corona VAT Germany
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲5 | 16.01 ▲0.35 | 5.60 ▼0.34 | 2.23 ▼0.57 |
Dashboard /wp-admin | 2,895 ▲37 | 6.12 ▼0.07 | 121.16 ▼15.27 | 152.88 ▼13.77 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.18 | 61.17 ▼0.23 | 143.40 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,634 ▼56 | 18.99 ▼2.12 | 446.80 ▲23.65 | 152.02 ▼4.84 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.55 ▲0.04 | 148.77 ▲5.10 | 193.55 ▲6.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corona-vat-germany/corona_vat_germany.php:20
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
corona-vat-germany/corona_vat_germany.php 85% from 13 tests
The main PHP script in "Corona VAT Germany" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("corona-vat-germany.php" instead of "corona_vat_germany.php")
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
Everything looks great! No dangerous files found in this plugin930 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 115 | 236 | 855 |
PO File | 1 | 18 | 22 | 75 |
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.61 |
Average class complexity | 145.00 |
▷ Minimum class complexity | 145.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 8.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 50.00% |
▷ Protected methods | 10 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin