89% woocommerce-quaderno

Code Review | WooCommerce Quaderno – Tax Automation

WordPress plugin WooCommerce Quaderno – Tax Automation scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-quaderno
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2015
  • Latest release: Aug 25, 2023
  • Number of updates: 374
  • Update frequency: every 8.0 days
  • Top authors: polimorfico (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

600+ active /40,359 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.29ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Quaderno – Tax Automation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.78 ▲1.14
Dashboard /wp-admin3.35 ▲0.0147.93 ▼17.72
Posts /wp-admin/edit.php3.46 ▲0.1152.88 ▲4.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0596.44 ▼3.56
Media Library /wp-admin/upload.php3.27 ▲0.0535.19 ▼1.02

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Quaderno – Tax Automation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5314.28 ▲0.091.71 ▼0.2543.33 ▼7.06
Dashboard /wp-admin2,212 ▲325.60 ▼0.0689.40 ▼8.0739.36 ▼2.35
Posts /wp-admin/edit.php2,118 ▲212.02 ▲0.0640.54 ▲5.5138.05 ▲2.24
Add New Post /wp-admin/post-new.php1,551 ▲2318.09 ▼5.09618.45 ▼99.8670.55 ▲22.83
Media Library /wp-admin/upload.php1,417 ▲174.12 ▼0.17107.55 ▲4.2146.05 ▲1.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

woocommerce-quaderno/woocommerce-quaderno.php 92% from 13 tests

The primary PHP file in "WooCommerce Quaderno – Tax Automation" version 2.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.2.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,889 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP345267862,093
PO File4304524759
JavaScript411737

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.03
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes39.38%
▷ Concrete classes2990.62%
▷ Final classes00.00%
Methods132
▷ Static methods1410.61%
▷ Public methods12090.91%
▷ Protected methods53.79%
▷ Private methods75.30%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin