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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.49ms] Passed 4 tests
Server-side resources used by Simple Sales Tax
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.02 ▼3.29 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.04 ▼21.10 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.46 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 89.25 ▼7.77 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.29 ▲2.20 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Sales Tax
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.22 ▼0.19 | 1.62 ▼0.06 | 38.52 ▼4.72 |
Dashboard /wp-admin | 2,203 ▲23 | 5.62 ▲0.00 | 92.73 ▼9.04 | 42.27 ▼3.07 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.95 ▼0.02 | 41.06 ▲5.15 | 37.19 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.19 ▲0.12 | 582.25 ▼73.06 | 51.97 ▲2.53 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.21 ▲0.07 | 96.86 ▼4.46 | 41.70 ▼2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 55× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Serializable' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/CartItem.php:27
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Exceptions\\BaseException' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Exceptions/PingException.php:7
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Serializable' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/ExemptState.php:27
- > PHP Warning
require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/smoketest.php on line 46
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Serializable' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Address.php:29
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Response\\ResponseBase' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Response/AddExemptCertificateResponse.php:27
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Response\\ResponseBase' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Response/GetLocationsResponse.php:33
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Exceptions\\BaseException' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Exceptions/RequestException.php:7
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Response\\ResponseBase' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Response/ReturnedResponse.php:27
- > PHP Fatal error
Uncaught Error: Class 'TaxCloud\\Request\\RequestBase' not found in wp-content/plugins/simple-sales-tax/includes/vendor/bporcelli/php-taxcloud/lib/TaxCloud/Request/VerifyAddress.php:36
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #5, #6, #7 in simple-sales-tax/assets to your readme.txt
simple-sales-tax/simple-sales-tax.php 92% from 13 tests
Analyzing the main PHP file in "Simple Sales Tax" version 8.0.6
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "4.5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin11,462 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 2,174 | 5,664 | 10,039 |
JavaScript | 21 | 176 | 101 | 901 |
CSS | 12 | 92 | 22 | 433 |
JSON | 1 | 0 | 0 | 66 |
Markdown | 1 | 8 | 0 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 103 | |
▷ Abstract classes | 2 | 1.94% |
▷ Concrete classes | 101 | 98.06% |
▷ Final classes | 1 | 0.99% |
Methods | 637 | |
▷ Static methods | 109 | 17.11% |
▷ Public methods | 470 | 73.78% |
▷ Protected methods | 83 | 13.03% |
▷ Private methods | 84 | 13.19% |
Functions | 54 | |
▷ Named functions | 51 | 94.44% |
▷ Anonymous functions | 3 | 5.56% |
Constants | 101 | |
▷ Global constants | 8 | 7.92% |
▷ Class constants | 93 | 92.08% |
▷ Public constants | 93 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.24MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/exemption_certificate750x600.png | 119.21KB | 123.61KB | 0.00% |
assets/img/sp_exemption_certificate750x600.png | 123.60KB | 128.16KB | 0.00% |