89% woo-display-tax-on-product-page

Code Review | WooCommerce display tax on product page

WordPress plugin WooCommerce display tax on product page scored89%from 54 tests.

About plugin

  • Plugin page: woo-display-tax-o...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Jun 6, 2018
  • Number of updates: 14
  • Update frequency: every 1.6 days
  • Top authors: mlfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,045 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
Install script ran successfully

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

This is a short check of server-side resources used by WooCommerce display tax on product page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.22 ▼1.68
Dashboard /wp-admin3.31 ▲0.0043.24 ▼1.20
Posts /wp-admin/edit.php3.36 ▲0.0047.27 ▲1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.35 ▼6.23
Media Library /wp-admin/upload.php3.23 ▲0.0035.36 ▼3.33

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce display tax on product page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.11 ▼0.251.69 ▲0.0940.00 ▲1.81
Dashboard /wp-admin2,195 ▲185.50 ▼0.1881.71 ▼5.3038.56 ▼0.70
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0140.53 ▲5.7535.21 ▲0.18
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.06604.02 ▼76.9255.71 ▲3.05
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.0897.26 ▼3.8242.19 ▼3.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

woo-display-tax-on-product-page/tax-on-product-page-woocommerce.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce display tax on product page" version 1.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-display-tax-on-product-page.php" instead of "tax-on-product-page-woocommerce.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1314479

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected