Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼144.31ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Invoice Sharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 43.42 ▲18.51 |
Dashboard /wp-admin | 3.11 ▲0.06 | 44.54 ▼3.83 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 48.20 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 95.96 ▼566.37 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 34.82 ▼7.63 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Invoice Sharing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 15.79 ▲0.54 | 9.39 ▼0.14 | 53.45 ▲1.50 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.17 | 165.22 ▲20.75 | 112.89 ▼7.22 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 70.44 ▼4.06 | 99.69 ▲5.34 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▲0.05 | 381.17 ▲2.12 | 109.73 ▲1.33 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.01 | 157.13 ▼6.26 | 127.04 ▼3.41 |
Invoice Sharing /wp-admin/share-order-admin.php | 26 | 0.90 | 0.05 | 12.43 |
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
Uninstaller ran successfully
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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/share-order-admin.php
- > Network (severe)
wp-admin/share-order-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Screenshots: Screenshot #1 (screenshot-3.png) image required
woocommerce-invoice-sharing/share-order-invoices.php 92% from 13 tests
"WooCommerce Invoice Sharing" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-invoice-sharing.php" instead of "share-order-invoices.php")
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
There were no executable files found in this plugin482 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 121 | 179 | 416 |
JavaScript | 1 | 19 | 13 | 38 |
CSS | 2 | 5 | 0 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 106.93KB | 37.43KB | ▼ 64.99% |
screenshot-1.png | 28.61KB | 10.39KB | ▼ 63.68% |
screenshot-2.png | 109.96KB | 36.13KB | ▼ 67.14% |