WordPress plugin SutTax scored84%from 54 tests.

About plugin

  • Plugin page: avior-sales-tax-a...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2023
  • Latest release: Apr 24, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: aviort (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /204 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.34 ▼3.99
Dashboard /wp-admin3.31 ▲0.0047.48 ▼7.82
Posts /wp-admin/edit.php3.36 ▲0.0047.05 ▼0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.30 ▼13.41
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.221.57 ▼0.3645.30 ▲2.16
Dashboard /wp-admin2,206 ▲184.85 ▲0.01112.05 ▼8.6642.60 ▼1.76
Posts /wp-admin/edit.php2,092 ▲212.02 ▼0.0134.48 ▼2.6335.12 ▼5.71
Add New Post /wp-admin/post-new.php1,514 ▼1417.77 ▼0.64690.35 ▲6.5861.21 ▲2.16
Media Library /wp-admin/upload.php1,388 ▼04.30 ▼0.0198.82 ▼13.6247.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2158102857
CSS10311

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 code0.45
Average class complexity75.00
▷ Minimum class complexity14.00
▷ Maximum class complexity136.00
Average method complexity8.05
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1257.14%
▷ Protected methods00.00%
▷ Private methods942.86%
Functions11
▷ Named functions872.73%
▷ Anonymous functions327.27%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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