94% woocommerce-super-simple-tax-exemption

Code Review | Woocommerce Super Simple Tax Exemption

WordPress plugin Woocommerce Super Simple Tax Exemption scored 94% from 54 tests.

About plugin

  • Plugin page: woocommerce-super...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: Feb 11, 2014
  • Latest release: Sep 29, 2014
  • Number of updates: 10
  • Update frequency: every 24.4 days
  • Top authors: poldira (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active / 3,701 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Woocommerce Super Simple Tax Exemption
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0134.73 ▼4.08
Dashboard /wp-admin3.07 ▲0.0146.74 ▼8.09
Posts /wp-admin/edit.php3.12 ▲0.0149.91 ▼0.81
Add New Post /wp-admin/post-new.php5.43 ▼0.0196.62 ▼557.97
Media Library /wp-admin/upload.php3.01 ▲0.0136.06 ▲0.71

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

A short overview of filesystem and database impact
This plugin was 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 Woocommerce Super Simple Tax Exemption
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.30 ▲0.7313.27 ▲0.2246.19 ▼9.55
Dashboard /wp-admin2,967 ▲365.90 ▼0.21151.07 ▲1.50111.04 ▼5.51
Posts /wp-admin/edit.php2,739 ▼02.71 ▲0.0166.65 ▼0.7083.49 ▼8.46
Add New Post /wp-admin/post-new.php1,672 ▼2,06118.94 ▲0.94413.78 ▼101.96108.10 ▼4.67
Media Library /wp-admin/upload.php1,807 ▼05.07 ▲0.04170.45 ▲15.18115.99 ▼5.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-super-simple-tax-exemption/simple-tax-exemption.php:15

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: no tax, tax exempt, tax exempt id, tax-exempt, woocommerce...

woocommerce-super-simple-tax-exemption/simple-tax-exemption.php 92% from 13 tests

This is the main PHP file of "Woocommerce Super Simple Tax Exemption" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-super-simple-tax-exemption.php" instead of "simple-tax-exemption.php")

Code Analysis Passed 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 plugin48 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142040
JavaScript1106
CSS1002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin