90% fatture-help-wc

Code Review | fatture.help for WooCommerce

WordPress plugin fatture.help for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: fatture-help-wc
  • Plugin version: 1.1.21
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2020
  • Latest release: Oct 19, 2023
  • Number of updates: 52
  • Update frequency: every 26.5 days
  • Top authors: stefanoai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,231 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.20ms] Passed 4 tests

Server-side resources used by fatture.help for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.93 ▼5.04
Dashboard /wp-admin3.32 ▲0.0245.62 ▼1.29
Posts /wp-admin/edit.php3.37 ▲0.0247.12 ▲1.40
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.75 ▼16.46
Media Library /wp-admin/upload.php3.24 ▲0.0236.36 ▼2.00

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for fatture.help for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▲0.001.46 ▼0.0335.73 ▼3.34
Dashboard /wp-admin2,197 ▲175.52 ▼0.1081.82 ▼4.9137.53 ▼1.68
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.0138.42 ▲4.3835.11 ▼0.66
Add New Post /wp-admin/post-new.php1,536 ▲825.46 ▲2.30589.90 ▼64.8876.05 ▲11.42
Media Library /wp-admin/upload.php1,402 ▼14.21 ▲0.04102.68 ▼0.4546.47 ▼2.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in fatture-help-wc/assets to your readme.txt
The official readme.txt is a good inspiration

fatture-help-wc/fatture-help-wc.php Passed 13 tests

The entry point to "fatture.help for WooCommerce" version 1.1.21 is a PHP file that has certain tags in its header comment area
69 characters long description:
Utilizza fatture.help per generare fatture per gli ordini completati.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin17,151 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG3049,321
PHP83502404,344
CSS21,501123,114
PO File1121191372

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity79.14
▷ Minimum class complexity3.00
▷ Maximum class complexity232.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods185
▷ Static methods31.62%
▷ Public methods18197.84%
▷ Protected methods00.00%
▷ Private methods42.16%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/logo.png23.67KB2.44KB▼ 89.71%