89% woo-gst

Code Review | WooCommerce GST Plugin

WordPress plugin WooCommerce GST Plugin scored89%from 54 tests.

About plugin

  • Plugin page: woo-gst
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 20
  • Update frequency: every 109.4 days
  • Top authors: starkinfo (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active /68,882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WooCommerce GST Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.29 ▼10.40
Dashboard /wp-admin3.31 ▼0.0443.78 ▼13.75
Posts /wp-admin/edit.php3.36 ▲0.0045.68 ▼10.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.47 ▼8.93
Media Library /wp-admin/upload.php3.23 ▲0.0034.98 ▼1.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WooCommerce GST Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2114.18 ▼0.221.81 ▼0.5945.06 ▲2.07
Dashboard /wp-admin2,201 ▲275.64 ▲0.0387.20 ▼4.0542.02 ▲1.65
Posts /wp-admin/edit.php2,106 ▲32.07 ▲0.1240.25 ▼1.7639.06 ▲3.46
Add New Post /wp-admin/post-new.php1,529 ▲323.31 ▲0.26619.53 ▲4.2464.44 ▲7.58
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0397.31 ▼16.8844.69 ▼1.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (GST Setting Option), #2 (Tax Slab), #3 (Additional Tax Classes)
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-gst/woocommerce-gst-addon.php 85% from 13 tests

The main PHP script in "WooCommerce GST Plugin" version 1.5 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-gst.php" instead of "woocommerce-gst-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin383 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP516288371
CSS11012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.50
▷ Minimum class complexity4.00
▷ Maximum class complexity37.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods956.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants5
▷ Global constants5100.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
4 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png52.58KB14.71KB▼ 72.02%
images/info.png1.13KB0.28KB▼ 75.69%
screenshot-1.png28.84KB11.00KB▼ 61.85%
screenshot-3.png51.07KB19.66KB▼ 61.49%