89% rename-vat-to-gst-for-woocommerce

Code Review | Rename VAT to GST for WooCommerce

WordPress plugin Rename VAT to GST for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: rename-vat-to-gst...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-6.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2021
  • Latest release: Jun 7, 2022
  • Number of updates: 3
  • Update frequency: every 91.3 days
  • Top authors: abhi9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,692 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Rename VAT to GST for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.98 ▼2.13
Dashboard /wp-admin3.31 ▲0.0146.73 ▲1.03
Posts /wp-admin/edit.php3.36 ▲0.0044.39 ▼4.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.95 ▼12.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.96 ▲3.92

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Rename VAT to GST for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.71 ▲0.0038.63 ▼1.80
Dashboard /wp-admin2,198 ▲185.61 ▼0.0481.61 ▼3.8737.13 ▼8.28
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0432.77 ▼1.7833.14 ▼4.67
Add New Post /wp-admin/post-new.php1,526 ▲122.98 ▼0.34686.40 ▲18.3954.03 ▼4.44
Media Library /wp-admin/upload.php1,403 ▲64.32 ▲0.12108.04 ▲12.5747.70 ▲5.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rename-vat-to-gst-for-woocommerce === )
The official readme.txt might help

rename-vat-to-gst-for-woocommerce/rename-vat-to-gst-wc.php 85% from 13 tests

The main PHP script in "Rename VAT to GST for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("rename-vat-to-gst-for-woocommerce.php" instead of "rename-vat-to-gst-wc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP242312

PHP code Passed 2 tests

This is a very shot 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.60
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin