Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.72ms] Passed 4 tests
An overview of server-side resources used by Order Signature for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.20 ▲1.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.50 ▼5.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.47 ▼13.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.16 ▼8.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.93 ▲1.26 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Order Signature for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼0.99 | 1.82 ▲0.00 | 43.99 ▲0.51 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.03 | 98.44 ▼7.24 | 41.40 ▼3.71 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▼0.14 | 39.46 ▲2.14 | 35.74 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,514 ▼7 | 17.73 ▼5.50 | 660.45 ▼19.39 | 53.79 ▼10.95 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.20 ▲0.04 | 97.74 ▼3.86 | 41.15 ▼4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/order-signature-for-woocommerce/swph-woo-order-signature-light.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-signature-for-woocommerce/includes/class-swph-signature-backend.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/order-signature-for-woocommerce/includes/class-swph-signature-woo.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/order-signature-for-woocommerce/templates/signature-pad-template.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/order-signature-for-woocommerce/templates/signature-template.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/order-signature-for-woocommerce/includes/class-swph-signature-frontend.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3 in order-signature-for-woocommerce/assets to your readme.txt
order-signature-for-woocommerce/swph-woo-order-signature-light.php 77% from 13 tests
"Order Signature for WooCommerce" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 267 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.7.4" instead of "4.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("order-signature-for-woocommerce.php" instead of "swph-woo-order-signature-light.php")
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
There were no executable files found in this plugin884 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 130 | 337 | 641 |
JavaScript | 3 | 22 | 22 | 90 |
PO File | 1 | 28 | 39 | 82 |
Markdown | 1 | 32 | 0 | 69 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 5 | 13.16% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.58MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 37.61KB | 13.17KB | ▼ 64.98% |
banner-1544x500.png | 138.63KB | 59.67KB | ▼ 56.96% |
screenshot-1.png | 73.61KB | 26.64KB | ▼ 63.80% |
assets/img/order-signature-for-woocommerce-go-pro-banner.png | 36.83KB | 18.49KB | ▼ 49.80% |
banner-772x250.png | 63.31KB | 28.93KB | ▼ 54.30% |