90% wc-total-price-with-tax

Code Review | WC Total Price with Tax

WordPress plugin WC Total Price with Tax scored90%from 54 tests.

About plugin

  • Plugin page: wc-total-price-wi...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2023
  • Latest release: Oct 31, 2023
  • Number of updates: 13
  • Update frequency: every 3.2 days
  • Top authors: headplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by WC Total Price with Tax
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.96 ▼4.39
Dashboard /wp-admin3.32 ▲0.0146.45 ▼8.32
Posts /wp-admin/edit.php3.37 ▲0.0152.51 ▲4.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.73 ▲3.29
Media Library /wp-admin/upload.php3.24 ▲0.0136.34 ▼2.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WC Total Price with Tax
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.54 ▲0.261.58 ▼0.1240.70 ▼5.44
Dashboard /wp-admin2,198 ▲185.64 ▼0.0489.70 ▼10.0838.46 ▼5.21
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0040.19 ▲3.6535.43 ▲0.75
Add New Post /wp-admin/post-new.php1,526 ▼223.41 ▲0.11675.88 ▼25.5653.93 ▼6.76
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0596.31 ▼20.0843.22 ▼6.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: total price, orders, taxes

wc-total-price-with-tax/wc-total-price-with-tax.php Passed 13 tests

The main PHP script in "WC Total Price with Tax" version 1.3 is automatically included on every request by WordPress
113 characters long description:
Adds a Total Price column to the WooCommerce order admin screen includes Taxes for: Products, Shipping, and Fees.

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
Everything looks great! No dangerous files found in this plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161820

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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