10% ziptax-sales-tax-for-woocommerce

Code Review | ZipTax - Sales Tax for WooCommerce

WordPress plugin ZipTax - Sales Tax for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: ziptax-sales-tax-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Mar 3, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ziptax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,038 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/ziptax-sales-tax-for-woocommerce/inc/ziptax-utils.php+22
    file_put_contents(/var/log/zt-debug.log): failed to open stream: Permission denied

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.44ms] Passed 4 tests

This is a short check of server-side resources used by ZipTax - Sales Tax for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.00 ▼3.58
Dashboard /wp-admin3.31 ▲0.0042.24 ▼3.95
Posts /wp-admin/edit.php3.36 ▲0.0038.47 ▼15.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.57 ▼18.91
Media Library /wp-admin/upload.php3.23 ▲0.0034.36 ▼1.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ZipTax - Sales Tax for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.064.42 ▲2.5745.37 ▲1.65
Dashboard /wp-admin2,203 ▲154.86 ▼0.99111.97 ▲11.3342.89 ▲3.04
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0036.67 ▼9.7933.17 ▼2.20
Add New Post /wp-admin/post-new.php1,533 ▼923.36 ▲5.22670.02 ▲44.6565.14 ▲5.03
Media Library /wp-admin/upload.php1,379 ▼124.20 ▼0.0494.99 ▼8.9742.16 ▼0.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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)
Good news, no errors were detected

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
Please take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ziptax-sales-tax-for-woocommerce/inc/ziptax-utils.php
    • > /wp-content/plugins/ziptax-sales-tax-for-woocommerce/inc/ziptax-wc-integration.php
    • > /wp-content/plugins/ziptax-sales-tax-for-woocommerce/ziptax-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: tax calculation, sales tax, automated tax, taxes, sales tax rates...

ziptax-sales-tax-for-woocommerce/ziptax-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "ZipTax - Sales Tax for WooCommerce" version 1.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ziptax-sales-tax-for-woocommerce.php" instead of "ziptax-woocommerce.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
There were no executable files found in this plugin287 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311419287

PHP code Passed 2 tests

A short review 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.15
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin