Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.03MB] [CPU: ▼259.10ms] Passed 4 tests
Analyzing server-side resources used by VAT MOSS Returns
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 34.02 ▲12.57 |
Dashboard /wp-admin | 4.31 ▲1.26 | 56.95 ▲4.67 |
Posts /wp-admin/edit.php | 4.42 ▲1.32 | 49.66 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.68 ▲1.25 | 102.08 ▼1,043.14 |
Media Library /wp-admin/upload.php | 4.25 ▲1.25 | 39.61 ▲0.59 |
Settings /wp-admin/admin.php?page=moss-submissions-settings | 4.23 | 34.44 |
Submissions /wp-admin/admin.php?page=moss-submissions | 4.24 | 46.01 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 1 new option
New WordPress options |
---|
moss_settings |
Browser metrics Passed 4 tests
VAT MOSS Returns: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,727 ▲121 | 16.39 ▲0.85 | 7.30 ▼1.23 | 46.49 ▼0.36 |
Dashboard /wp-admin | 3,030 ▲180 | 6.96 ▲1.10 | 133.24 ▼10.41 | 107.80 ▲5.32 |
Posts /wp-admin/edit.php | 2,790 ▲84 | 2.78 ▲0.09 | 65.48 ▲1.36 | 98.80 ▲11.34 |
Add New Post /wp-admin/post-new.php | 1,700 ▲219 | 18.91 ▲0.66 | 354.69 ▼8.36 | 132.93 ▲25.25 |
Media Library /wp-admin/upload.php | 1,853 ▲81 | 5.23 ▲0.20 | 129.70 ▼17.89 | 111.10 ▼4.24 |
Settings /wp-admin/admin.php?page=moss-submissions-settings | 1,098 | 1.96 | 75.34 | 88.99 |
Submissions /wp-admin/admin.php?page=moss-submissions | 1,714 | 2.84 | 72.33 | 75.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- moss_settings
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
vat-moss/vat-moss.php Passed 13 tests
The main PHP script in "VAT MOSS Returns" version 1.0.29 is automatically included on every request by WordPress
55 characters long description:
Management and submission of VAT sales to EU consumers.
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
No dangerous file extensions were detected10,364 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,394 | 2,403 | 5,107 |
XML | 1 | 0 | 0 | 3,208 |
PO File | 3 | 685 | 1,018 | 1,599 |
JavaScript | 3 | 51 | 53 | 313 |
CSS | 1 | 28 | 6 | 136 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 32.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 4 | 2.35% |
▷ Public methods | 166 | 97.65% |
▷ Protected methods | 4 | 2.35% |
▷ Private methods | 0 | 0.00% |
Functions | 108 | |
▷ Named functions | 88 | 81.48% |
▷ Anonymous functions | 20 | 18.52% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin