Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.47ms] Passed 4 tests
An overview of server-side resources used by SutTax
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.34 ▼3.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.48 ▼7.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.05 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.30 ▼13.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.59 ▼0.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for SutTax
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.22 | 1.57 ▼0.36 | 45.30 ▲2.16 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▲0.01 | 112.05 ▼8.66 | 42.60 ▼1.76 |
Posts /wp-admin/edit.php | 2,092 ▲21 | 2.02 ▼0.01 | 34.48 ▼2.63 | 35.12 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.77 ▼0.64 | 690.35 ▲6.58 | 61.21 ▲2.16 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▼0.01 | 98.82 ▼13.62 | 47.32 ▼0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/avior-sales-tax-automation-for-woocommerce/includes/class-wc-avior-integration.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: sales tax, tax, woocommerce, taxes
avior-sales-tax-automation-for-woocommerce/avior-woocommerce.php 85% from 13 tests
The primary PHP file in "SutTax" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("avior-sales-tax-automation-for-woocommerce.php" instead of "avior-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected868 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 158 | 102 | 857 |
CSS | 1 | 0 | 3 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 8.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 12 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 42.86% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin