Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.43MB] [CPU: ▲24.29ms] 50% from 4 tests
An overview of server-side resources used by Tax Exemption for WooCommerce
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,004.81ms on /wp-admin/admin.php?page=tax-exemption-woo)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.43MB on /wp-admin/admin.php?page=tax-exemption-woo)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.26 ▲5.79 | 68.89 ▲26.10 |
Dashboard /wp-admin | 9.28 ▲5.97 | 79.70 ▲27.04 |
Posts /wp-admin/edit.php | 9.29 ▲5.92 | 80.54 ▲32.89 |
Add New Post /wp-admin/post-new.php | 9.94 ▲4.04 | 111.56 ▲13.29 |
Media Library /wp-admin/upload.php | 9.28 ▲6.05 | 65.28 ▲30.72 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.28 | 67.18 |
Tax Exemption /wp-admin/admin.php?page=tax-exemption-woo | 9.28 | 1,004.81 |
Server storage [IO: ▲3.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 190 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_debug_mode |
widget_theysaidso_widget |
fs_accounts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tax Exemption for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲45 | 14.70 ▲0.36 | 1.55 ▼0.11 | 29.85 ▼13.71 |
Dashboard /wp-admin | 2,212 ▲32 | 5.53 ▼0.07 | 98.49 ▲7.67 | 45.45 ▲0.72 |
Posts /wp-admin/edit.php | 2,121 ▲24 | 2.02 ▲0.04 | 42.06 ▲2.60 | 37.81 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▼0.16 | 620.08 ▼59.38 | 53.17 ▲3.26 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.23 ▼0.02 | 96.38 ▼1.68 | 46.48 ▲3.43 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,082 | 1.65 | 26.62 | 31.12 |
Tax Exemption /wp-admin/admin.php?page=tax-exemption-woo | 984 | 1.89 | 30.19 | 58.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tax-exemption-woo/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- fs_active_plugins
- theysaidso_admin_options
- fs_accounts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=tax-exemption-woo
- > Network (severe)
wp-content/themes/twentytwentyone/js/custom-select2-init.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce, tax, tax exemption, vat, vat exemption
tax-exemption-woo/tax-exemption-woo.php 92% from 13 tests
The primary PHP file in "Tax Exemption for WooCommerce" version 1.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.7")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin36,346 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,379 | 17,508 | 35,594 |
JavaScript | 7 | 75 | 111 | 521 |
CSS | 15 | 19 | 2 | 231 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 87.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,277 | |
▷ Static methods | 199 | 15.58% |
▷ Public methods | 877 | 68.68% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 383 | 29.99% |
Functions | 140 | |
▷ Named functions | 136 | 97.14% |
▷ Anonymous functions | 4 | 2.86% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/tax-exemption-woo.png | 3.12KB | 2.85KB | ▼ 8.43% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |