Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.48ms] Passed 4 tests
Server-side resources used by WooCommerce Invoicing Payments w/ Sprout Invoices
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.90 ▲0.20 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.92 ▼9.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.02 ▼6.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.13 ▼10.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.62 ▲0.86 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Invoicing Payments w/ Sprout Invoices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.60 ▼0.78 | 1.69 ▼0.05 | 43.14 ▲3.40 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.89 | 96.24 ▼8.94 | 41.03 ▼0.46 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 40.55 ▼0.35 | 36.63 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.48 ▲0.99 | 583.90 ▼22.86 | 66.16 ▲11.53 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.01 | 95.83 ▼5.00 | 42.07 ▼3.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-invoicing-payments-w-sprout-invoices/inc/Woo_Invoice_Payments.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-invoicing-payments-w-sprout-invoices/si-woocommerce.php:19
- > PHP Fatal error
Uncaught Error: Class 'SI_Controller' not found in wp-content/plugins/woo-invoicing-payments-w-sprout-invoices/inc/Woo_Tools.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (WooCommerce Geneated Invoice) image not found
woo-invoicing-payments-w-sprout-invoices/si-woocommerce.php 92% from 13 tests
"WooCommerce Invoicing Payments w/ Sprout Invoices" version 1.0'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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-invoicing-payments-w-sprout-invoices.php" instead of "si-woocommerce.php")
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
Everything looks great! No dangerous files found in this plugin402 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 61 | 89 | 292 |
JavaScript | 1 | 32 | 34 | 110 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 8 | 53.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.28MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 77.49KB | 77.57KB | 0.00% |
screenshot-1.png | 47.44KB | 47.49KB | 0.00% |
screenshot-4.png | 48.59KB | 48.60KB | 0.00% |
screenshot-3.png | 118.17KB | 118.39KB | 0.00% |