Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/pdf-invoice-and-more-for-woocommerce/pdf-invoice-and-more-for-woocommerce.php+598
include(options-data.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼144.25ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce PDF Invoice and More
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.30 ▲11.52 |
Dashboard /wp-admin | 3.06 ▲0.00 | 48.68 ▲2.10 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 47.09 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 92.63 ▼572.45 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 35.35 ▼2.60 |
PDF Invoice /wp-admin/admin.php?page=wip-pdf-setting | 2.75 | 23.50 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WooCommerce PDF Invoice and More: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,956 ▲360 | 17.75 ▲2.29 | 8.73 ▼2.68 | 48.78 ▼3.17 |
Dashboard /wp-admin | 2,970 ▲36 | 5.95 ▼0.22 | 143.25 ▼17.82 | 121.78 ▲1.65 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.02 | 82.52 ▲8.80 | 92.36 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.79 ▲0.64 | 386.07 ▼11.84 | 111.16 ▼9.28 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 4.73 ▼0.27 | 119.86 ▼46.42 | 122.41 ▲2.67 |
PDF Invoice /wp-admin/admin.php?page=wip-pdf-setting | 28 | 0.90 | 0.04 | 11.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/admin-options/packing-settings/packing-settings.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/admin-options/admin-settings.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/templates/invoice/invoice1.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/admin-options/general-settings/general-template-settings.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/pdf-invoice-and-more-for-woocommerce.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/data/options-data.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/pdf-front-option.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/admin-options/general-settings/admin-settings-general-options.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/includes/pdf-admin-option.php
- > /wp-content/plugins/pdf-invoice-and-more-for-woocommerce/templates/packing/packing1.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wip-pdf-setting
- > Network (severe)
wp-admin/admin.php?page=wip-pdf-setting - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: woocommerce, woocommerce print invoices, woocommerce print, woocommerce packing slips, woocommerce pdf invoice
pdf-invoice-and-more-for-woocommerce/pdf-invoice-and-more-for-woocommerce.php 92% from 13 tests
The entry point to "WooCommerce PDF Invoice and More" version 1.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,593 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 569 | 415 | 3,403 |
JavaScript | 3 | 48 | 26 | 111 |
CSS | 1 | 5 | 1 | 79 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 146.33 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 156 | |
▷ Static methods | 1 | 0.64% |
▷ Public methods | 117 | 75.00% |
▷ Protected methods | 38 | 24.36% |
▷ Private methods | 1 | 0.64% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fpdf/icons/def-mark.png | 1.62KB | 1.58KB | ▼ 2.47% |
asset/print-icon.png | 8.45KB | 4.43KB | ▼ 47.59% |
fpdf/icons/logo.png | 0.62KB | 0.66KB | 0.00% |
asset/css/Label-print-icon.png | 0.74KB | 0.88KB | 0.00% |
fpdf/icons/email.png | 0.69KB | 0.67KB | ▼ 2.82% |