Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼145.62ms] Passed 4 tests
Server-side resources used by VAT Calculator Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 37.52 ▼0.85 |
Dashboard /wp-admin | 3.07 ▲0.02 | 39.32 ▼11.22 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 42.64 ▼5.69 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 89.68 ▼564.71 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 37.19 ▲0.20 |
VAT Calculator Plus /wp-admin/options-general.php?page=vat-calculator-plus-admin | 2.96 | 25.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for VAT Calculator Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲113 | 15.83 ▲0.34 | 8.87 ▲0.44 | 49.18 ▼2.33 |
Dashboard /wp-admin | 2,975 ▲44 | 5.89 ▼0.00 | 142.61 ▼4.32 | 122.37 ▲3.59 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 70.62 ▼9.24 | 92.69 ▲6.73 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.62 ▼0.03 | 384.72 ▼2.67 | 112.88 ▼3.34 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.03 ▼0.01 | 154.03 ▼3.87 | 121.23 ▼4.67 |
VAT Calculator Plus /wp-admin/options-general.php?page=vat-calculator-plus-admin | 1,202 | 2.37 | 67.25 | 114.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=vat-calculator-plus-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=vat-calculator-plus-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: calculator, business, shortcode, vat calculator, accounting...
vat-calculator-plus/vat-calculator-plus.php 85% from 13 tests
The main file in "VAT Calculator Plus" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 305 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin181 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 31 | 41 | 157 |
JavaScript | 1 | 8 | 4 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin