Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.90ms] Passed 4 tests
Analyzing server-side resources used by Sales Tax Reports For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.23 ▲2.66 |
Dashboard /wp-admin | 3.36 ▲0.05 | 50.39 ▲2.95 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.80 ▲2.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.86 ▼4.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.51 ▲4.49 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wc_state_tax_report_options |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sales Tax Reports For WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.34 ▼1.02 | 4.22 ▲2.54 | 39.66 ▼2.72 |
Dashboard /wp-admin | 2,220 ▲32 | 5.01 ▲0.13 | 113.52 ▲7.92 | 42.07 ▲0.88 |
Posts /wp-admin/edit.php | 2,106 ▲20 | 2.23 ▲0.21 | 39.58 ▲4.30 | 34.14 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼16 | 17.73 ▼0.77 | 623.97 ▲14.17 | 52.96 ▼18.62 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.34 ▲0.16 | 95.95 ▼6.62 | 42.42 ▼5.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- wc_state_tax_report_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_price() in wp-content/plugins/sales-tax-reports-for-woocommerce/templates/tax_table.php:38
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sales-tax-reports-for-woocommerce/templates/tax_table.php on line 15
- > PHP Notice
Undefined variable: rows in wp-content/plugins/sales-tax-reports-for-woocommerce/templates/tax_table.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2 in sales-tax-reports-for-woocommerce/assets to your readme.txt
sales-tax-reports-for-woocommerce/wc_state_tax_report.php 85% from 13 tests
The main file in "Sales Tax Reports For WooCommerce" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sales-tax-reports-for-woocommerce.php" instead of "wc_state_tax_report.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "2.2.0")
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
There were no executable files found in this plugin384 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 135 | 333 |
JavaScript | 1 | 30 | 23 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 13 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 23.53% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.42MB with 0.37MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/banner-772x250.png | 98.39KB | 0.00KB | ▼ 100.00% |
assets/screenshot-1.png | 333.84KB | 87.53KB | ▼ 73.78% |