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.01MB] [CPU: ▼3.80ms] Passed 4 tests
A check of server-side resources used by WooCommerce PDF Invoices Italian Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.45 ▼7.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.59 ▼3.27 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.04 ▼0.70 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.07 ▼4.06 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.49 ▲1.77 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce PDF Invoices Italian Add-on
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲35 | 14.09 ▼0.64 | 1.72 ▼0.07 | 39.77 ▼4.74 |
Dashboard /wp-admin | 2,205 ▲28 | 5.61 ▼0.04 | 94.70 ▲0.64 | 43.03 ▼3.14 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.94 ▼0.01 | 41.17 ▼1.07 | 36.21 ▼2.62 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.04 ▼0.11 | 671.01 ▲23.51 | 55.45 ▼2.02 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.03 | 107.26 ▲4.75 | 43.32 ▲1.47 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WooCommerce_Italian_add_on' not found in wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_header_logo_id() on null in wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/templates/pdf/Simple/receipt.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
woocommerce-pdf-invoices-italian-add-on/woocommerce-pdf-italian-add-on.php 85% from 13 tests
"WooCommerce PDF Invoices Italian Add-on" version 0.7.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-pdf-invoices-italian-add-on.php" instead of "woocommerce-pdf-italian-add-on.php")
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
Everything looks great! No dangerous files found in this plugin3,910 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 404 | 202 | 3,302 |
PO File | 1 | 180 | 344 | 472 |
JavaScript | 2 | 4 | 2 | 89 |
CSS | 1 | 10 | 1 | 46 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 38.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 1 | 0.76% |
▷ Public methods | 127 | 96.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.05% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo2.png | 108.62KB | 1.77KB | ▼ 98.37% |
images/receipt.png | 0.47KB | 0.34KB | ▼ 28.25% |
images/agenziaEntrate_logo.png | 23.93KB | 8.59KB | ▼ 64.13% |
images/invoice_width.png | 8.38KB | 7.74KB | ▼ 7.63% |