90% nextplugins-woocommerce-vat

Code Review | NextPlugins Woo VAT

WordPress plugin NextPlugins Woo VAT scored90%from 54 tests.

About plugin

  • Plugin page: nextplugins-wooco...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Feb 16, 2023
  • Number of updates: 15
  • Update frequency: every 145.1 days
  • Top authors: nextplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,276 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.18ms] Passed 4 tests

This is a short check of server-side resources used by NextPlugins Woo VAT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.44 ▲4.45
Dashboard /wp-admin3.40 ▲0.1044.72 ▼5.70
Posts /wp-admin/edit.php3.52 ▲0.1648.43 ▼0.84
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.53 ▼10.34
Media Library /wp-admin/upload.php3.32 ▲0.1039.01 ▲4.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 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

Checking browser requirements for NextPlugins Woo VAT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▲0.051.78 ▼0.1142.56 ▼3.68
Dashboard /wp-admin2,195 ▲155.56 ▼0.06102.09 ▲13.0139.30 ▲0.32
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0636.86 ▲1.2133.01 ▼5.11
Add New Post /wp-admin/post-new.php1,528 ▼023.50 ▲0.50664.80 ▼8.8066.21 ▲10.86
Media Library /wp-admin/upload.php1,394 ▼64.12 ▼0.03100.94 ▼6.2146.25 ▲0.10

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: vat field, nextplugins vat, vat, woocommerce vat

nextplugins-woocommerce-vat/nextplugins-woocommerce-vat.php Passed 13 tests

The main file in "NextPlugins Woo VAT" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
Adds VAT field to WooCommerce checkout page.

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
Everything looks great! No dangerous files found in this plugin508 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5101123508

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.33
▷ Minimum class complexity5.00
▷ Maximum class complexity37.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods624.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected