84% vat-assist-for-woocommerce

Code Review | VAT Assist for WooCommerce

WordPress plugin VAT Assist for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: vat-assist-for-wo...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 3, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 10
  • Update frequency: every 130.0 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by VAT Assist for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.54 ▲0.26
Dashboard /wp-admin3.34 ▲0.0349.99 ▼0.29
Posts /wp-admin/edit.php3.39 ▲0.0346.79 ▼5.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.64 ▼6.12
Media Library /wp-admin/upload.php3.26 ▲0.0339.26 ▲2.70
VAT Assist /wp-admin/admin.php?page=wcva3.2333.04

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

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

Browser metrics Passed 4 tests

VAT Assist for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.24 ▼0.371.92 ▲0.0645.23 ▲0.32
Dashboard /wp-admin2,195 ▲185.51 ▼0.16107.25 ▼3.9345.26 ▼0.73
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0640.21 ▼2.6833.48 ▼2.67
Add New Post /wp-admin/post-new.php1,531 ▲323.11 ▲0.06661.25 ▲20.4249.90 ▼1.72
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.09108.23 ▲4.3344.80 ▲0.39
VAT Assist /wp-admin/admin.php?page=wcva8721.9925.4734.98

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vat-assist-for-woocommerce/vat-assist-for-woocommerce.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: eu, woocommerce, vat, europe

vat-assist-for-woocommerce/vat-assist-for-woocommerce.php 92% from 13 tests

The main PHP script in "VAT Assist for WooCommerce" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "4.0")

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
There were no executable files found in this plugin162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14348115
JavaScript19347

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.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