89% woocommerce-eu-vat-rates-sync

Code Review | WooCommerce EU VAT Rates for Digital Goods Sync

WordPress plugin WooCommerce EU VAT Rates for Digital Goods Sync scored 89% from 54 tests.

About plugin

  • Plugin page: woocommerce-eu-va...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 5.8.1
  • First release: Dec 31, 2014
  • Latest release: Nov 26, 2015
  • Number of updates: 5
  • Update frequency: every 93.6 days
  • Top authors: mikejolley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,140 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
Install script ran successfully

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

An overview of server-side resources used by WooCommerce EU VAT Rates for Digital Goods Sync
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0334.91 ▼14.49
Dashboard /wp-admin3.09 ▲0.0343.30 ▼2.01
Posts /wp-admin/edit.php3.14 ▲0.0347.47 ▲1.89
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.31 ▼555.67
Media Library /wp-admin/upload.php3.03 ▲0.0332.89 ▼1.45

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
woocommerce_tax_classes

Browser metrics Passed 4 tests

WooCommerce EU VAT Rates for Digital Goods Sync: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10716.29 ▲0.6910.51 ▼2.5849.50 ▼5.42
Dashboard /wp-admin2,992 ▲615.90 ▼0.03145.09 ▼7.73111.67 ▲2.01
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0169.65 ▼9.4887.70 ▲0.01
Add New Post /wp-admin/post-new.php1,672 ▼1118.98 ▲0.26405.46 ▲45.59103.28 ▼3.58
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.04155.41 ▼6.45113.06 ▼0.25

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • woocommerce_tax_classes

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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: woocommerce, digital goods, taxes, eu vat

woocommerce-eu-vat-rates-sync/woocommerce-eu-vat-rates-for-digital-goods-sync.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce EU VAT Rates for Digital Goods Sync" version 1.0.0
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-eu-vat-rates-sync.php" instead of "woocommerce-eu-vat-rates-for-digital-goods-sync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1174893

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected