89% claim-gst

Code Review | Claim GST for Input Tax Credit

WordPress plugin Claim GST for Input Tax Credit scored 89% from 54 tests.

About plugin

  • Plugin page: claim-gst
  • Plugin version: 1.3.3
  • PHP compatiblity: 5.3.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2019
  • Latest release: May 15, 2023
  • Number of updates: 18
  • Update frequency: every 77.7 days
  • Top authors: cozyvision1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,786 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.04MB] [CPU: ▼1.14ms] Passed 4 tests

A check of server-side resources used by Claim GST for Input Tax Credit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.40 ▼3.94
Dashboard /wp-admin3.34 ▲0.0444.51 ▼4.55
Posts /wp-admin/edit.php3.40 ▲0.0449.16 ▲5.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.38 ▼1.62
Media Library /wp-admin/upload.php3.27 ▲0.0440.08 ▲7.05

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Claim GST for Input Tax Credit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼1.121.72 ▼0.0942.78 ▲0.69
Dashboard /wp-admin2,209 ▲214.82 ▼1.03104.28 ▼5.4640.67 ▼7.05
Posts /wp-admin/edit.php2,089 ▼02.17 ▲0.1534.18 ▼1.6037.74 ▲1.51
Add New Post /wp-admin/post-new.php1,542 ▼218.42 ▲0.35633.90 ▼17.1450.88 ▼6.17
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0596.91 ▼5.5743.48 ▼1.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • 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)
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: b2b, claim gst, input credit, gst credit

claim-gst/claim-gst.php 85% from 13 tests

This is the main PHP file of "Claim GST for Input Tax Credit" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "3.7")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 plugin339 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24021339

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin