84% vat-ecsl

Code Review | VAT EC Sales List

WordPress plugin VAT EC Sales List scored 84% from 54 tests.

About plugin

  • Plugin page: vat-ecsl
  • Plugin version: 1.0.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.9
  • WordPress version: 5.8.1
  • First release: Jan 29, 2015
  • Latest release: Jul 5, 2018
  • Number of updates: 31
  • Update frequency: every 40.5 days
  • Top authors: bseddon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.97MB] [CPU: ▼134.77ms] Passed 4 tests

This is a short check of server-side resources used by VAT EC Sales List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.07 ▲0.3542.81 ▲17.63
Dashboard /wp-admin4.24 ▲1.1955.12 ▲5.86
Posts /wp-admin/edit.php4.33 ▲1.2255.99 ▲5.70
Add New Post /wp-admin/post-new.php6.62 ▲1.18105.40 ▼546.99
Media Library /wp-admin/upload.php4.18 ▲1.1742.42 ▼3.64
Submissions /wp-admin/admin.php?page=ecsl-submissions4.1739.69
Settings /wp-admin/admin.php?page=ecsl-submissions-settings4.1342.01

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 1 new option
New WordPress options
ecsl_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for VAT EC Sales List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲18516.17 ▲0.309.57 ▼0.8452.67 ▼1.06
Dashboard /wp-admin3,051 ▲1177.04 ▲0.85139.85 ▼42.75114.16 ▲1.94
Posts /wp-admin/edit.php2,823 ▲842.79 ▲0.1078.34 ▲1.44113.93 ▲13.35
Add New Post /wp-admin/post-new.php1,743 ▼1,98118.69 ▲3.29401.10 ▼67.29129.12 ▲9.08
Media Library /wp-admin/upload.php1,885 ▲785.46 ▲0.43138.64 ▼19.00122.58 ▼14.14
Submissions /wp-admin/admin.php?page=ecsl-submissions1,7672.7867.2384.54
Settings /wp-admin/admin.php?page=ecsl-submissions-settings1,3732.8181.4077.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • ecsl_settings

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=ecsl-submissions-settings
    • > Notice in wp-content/plugins/vat-ecsl/includes/admin-notices.php+44
    Array to string conversion

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: eu, tax, hmrc, uk, woocommerce...

vat-ecsl/vat-ecsl.php Passed 13 tests

The main file in "VAT EC Sales List" v. 1.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Management and submission of VAT sales with VAT numbers.

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 plugin8,225 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP261,2762,0134,643
XML1003,208
JavaScript34343277
CSS117396
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.08
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods145
▷ Static methods42.76%
▷ Public methods14297.93%
▷ Protected methods32.07%
▷ Private methods00.00%
Functions95
▷ Named functions7882.11%
▷ Anonymous functions1717.89%
Constants22
▷ Global constants22100.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 files were detected