84% eu-vat-reports-for-woocommerce

Code Review | EU VAT Reports for Woocommerce

WordPress plugin EU VAT Reports for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: eu-vat-reports-fo...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 11
  • Update frequency: every 50.1 days
  • Top authors: SimpleIntelligentSystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.85ms] Passed 4 tests

Analyzing server-side resources used by EU VAT Reports for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0532.70 ▼5.97
Dashboard /wp-admin3.36 ▲0.0544.61 ▼1.38
Posts /wp-admin/edit.php3.41 ▲0.0547.42 ▲4.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.18 ▼16.84
Media Library /wp-admin/upload.php3.28 ▲0.0532.86 ▲0.80

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by EU VAT Reports for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.27 ▼1.314.25 ▲2.5038.06 ▼6.44
Dashboard /wp-admin2,220 ▲355.88 ▲0.03117.08 ▲14.6242.29 ▼0.14
Posts /wp-admin/edit.php2,099 ▲102.02 ▲0.0440.64 ▲0.1935.86 ▼0.97
Add New Post /wp-admin/post-new.php1,525 ▼417.83 ▼0.26675.83 ▲55.4154.94 ▲9.45
Media Library /wp-admin/upload.php1,402 ▲114.32 ▲0.10101.74 ▲4.3643.03 ▼2.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 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/eu-vat-reports-for-woocommerce/eu-vat-reports-for-woocommerce.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

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

"EU VAT Reports for Woocommerce" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13028257
CSS10036
JavaScript13629

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin