Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼138.61ms] Passed 4 tests
This is a short check of server-side resources used by Easy Customizer for WooCommerce PDF Invoices & Packing Slips
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 35.12 ▲13.31 |
Dashboard /wp-admin | 3.31 ▲0.25 | 42.04 ▼4.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.25 | 47.39 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.23 | 87.17 ▼554.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.25 | 35.40 ▲1.20 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Easy Customizer for WooCommerce PDF Invoices & Packing Slips: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.86 ▼0.23 | 10.21 ▲1.52 | 47.29 ▼1.01 |
Dashboard /wp-admin | 2,973 ▲42 | 6.03 ▲0.08 | 133.18 ▼10.82 | 115.56 ▲1.09 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.00 | 67.01 ▼3.35 | 94.34 ▲8.65 |
Add New Post /wp-admin/post-new.php | 1,676 ▲176 | 18.83 ▲0.29 | 374.28 ▲6.71 | 104.69 ▼5.85 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▲0.04 | 143.33 ▼3.96 | 117.77 ▲10.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
7 plugin tags: woo, woocommerce, invoices, woocommerce invoices, pdf invoices...
easy-customizer-for-woocommerce-pdf-invoices/easy-customizer-wpi.php 69% from 13 tests
The entry point to "Easy Customizer for WooCommerce PDF Invoices & Packing Slips" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "2.6")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-customizer-for-woocommerce-pdf-invoices.php" instead of "easy-customizer-wpi.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 272 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,252 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 727 | 146 | 1,439 |
CSS | 3 | 119 | 54 | 434 |
PO File | 1 | 163 | 165 | 379 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/invoice-folder.png | 1.88KB | 1.58KB | ▼ 15.60% |
images/invoice-tbheader.png | 3.04KB | 1.96KB | ▼ 35.58% |
images/plugin-file-css.png | 4.40KB | 3.42KB | ▼ 22.23% |
images/status-panel.png | 1.54KB | 1.88KB | 0.00% |
images/invoice-recipient.png | 3.22KB | 1.95KB | ▼ 39.36% |