93% additional-tax-options-for-woocommerce

Code Review | Additional Tax Options for WooCommerce

WordPress plugin Additional Tax Options for WooCommerce scored 93% from 54 tests.

About plugin

  • Plugin page: additional-tax-op...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.3
  • WordPress version: 5.9.2
  • First release: Nov 23, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: wpnomad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,598 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼308.79ms] Passed 4 tests

Server-side resources used by Additional Tax Options for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.93 ▼3.86
Dashboard /wp-admin3.42 ▲0.0132.90 ▼0.73
Posts /wp-admin/edit.php3.65 ▲0.0141.45 ▲3.84
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.05 ▼1,231.94
Media Library /wp-admin/upload.php3.30 ▲0.0125.32 ▲1.37

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Additional Tax Options for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6716.27 ▲0.365.83 ▼0.992.90 ▲0.27
Dashboard /wp-admin2,921 ▲406.39 ▼0.16130.24 ▼12.94156.41 ▼12.07
Posts /wp-admin/edit.php2,691 ▼33.43 ▲0.0061.91 ▼1.39139.92 ▼0.78
Add New Post /wp-admin/post-new.php1,758 ▲9717.21 ▲0.54433.47 ▲21.32161.00 ▲10.13
Media Library /wp-admin/upload.php1,698 ▲35.74 ▲0.03138.72 ▼17.12187.19 ▼7.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/additional-tax-options-for-woocommerce/includes/additional-tax-settings-fields.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
  • Stable tag: Not defined
  • Screenshots: Screenshot #1 (These options are located in WooCommerce → Settings → Tax) image missing
Please take inspiration from this readme.txt

additional-tax-options-for-woocommerce/woo-additional-tax-options.php 77% from 13 tests

The main PHP script in "Additional Tax Options for WooCommerce" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 263 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("additional-tax-options-for-woocommerce.php" instead of "woo-additional-tax-options.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings