Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/eas-eu-compliance/EAScompliance.php+182
Uncaught Error: Call to undefined function wc_get_base_location() in wp-content/plugins/eas-eu-compliance/EAScompliance.php:182
Stack trace:
#0 wp-includes/class-wp-hook.php(310): eascompliance_plugin_activation()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.33ms] Passed 4 tests
An overview of server-side resources used by EAS EU compliance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.91 ▲4.58 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.03 ▼15.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.48 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.64 ▼6.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.38 ▼2.73 |
Server storage [IO: ▲3.75MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EAS EU compliance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.43 ▲0.07 | 1.83 ▲0.23 | 40.86 ▲0.28 |
Dashboard /wp-admin | 2,195 ▲20 | 5.56 ▼0.06 | 88.95 ▼12.00 | 40.04 ▲1.63 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 35.69 ▼3.30 | 30.61 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.63 ▲0.72 | 616.63 ▼32.07 | 52.90 ▼1.70 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.31 ▲0.15 | 97.97 ▼4.94 | 46.92 ▲0.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/eas-eu-compliance/EAScompliance.php:86
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: eu vat, vat returns, full landed cost, oss, vat calculator...
eas-eu-compliance/EAScompliance.php 85% from 13 tests
The main PHP file in "EAS EU compliance" ver. 1.4.92 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("eas-eu-compliance.php" instead of "EAScompliance.php")
- Description: The description should be shorter than 140 characters (currently 435 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected11,403 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 1,793 | 2,314 | 5,631 |
PHP | 3 | 1,143 | 1,038 | 5,210 |
JavaScript | 2 | 86 | 46 | 486 |
CSS | 2 | 12 | 0 | 54 |
Markdown | 1 | 1 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 121 | |
▷ Named functions | 120 | 99.17% |
▷ Anonymous functions | 1 | 0.83% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 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
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
doc/static/Plugin_logo.png | 72.19KB | 27.94KB | ▼ 61.29% |
assets/images/pluginlogo_woocommerce.png | 22.79KB | 9.55KB | ▼ 58.07% |