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.01MB] [CPU: ▼0.55ms] Passed 4 tests
A check of server-side resources used by Cancel order request / Return order / Repeat Order / Reorder for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.31 ▼6.63 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.78 ▲3.68 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.34 ▼0.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.04 ▲1.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 51.12 ▲19.52 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cancel order request / Return order / Repeat Order / Reorder for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.23 ▼0.05 | 1.51 ▼0.17 | 36.42 ▼6.96 |
Dashboard /wp-admin | 2,204 ▲33 | 5.58 ▲0.01 | 95.11 ▼3.24 | 42.90 ▼5.84 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.00 | 38.63 ▼5.49 | 37.51 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.54 ▲0.42 | 649.52 ▼19.68 | 63.19 ▼8.65 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▲0.02 | 99.97 ▼8.65 | 42.75 ▼4.52 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cancel-order-request-woocommerce/includes/pisol.class.form.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cancel-order-request-woocommerce/public/order-detail-link-email.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/cancel-order-request-woocommerce/public/partials/cancel-order-request-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cancel-order-request-woocommerce/includes/class-emails.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cancel-order-request-woocommerce/admin/basic.php:111
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cancel-order-request-woocommerce/admin/plugins.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cancel-order-request-woocommerce/public/detect-order-status-change.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cancel-order-request-woocommerce/public/reorder.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cancel-order-request-woocommerce/includes/includes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cancel-order-request-woocommerce/admin/reorder.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cancel-order-request-woocommerce/admin/order-status.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("piwebsolution.com")
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #6, #7, #9 in cancel-order-request-woocommerce/assets to your readme.txt
cancel-order-request-woocommerce/cancel-order-request-woocommerce.php Passed 13 tests
This is the main PHP file of "Cancel order request / Return order / Repeat Order / Reorder for WooCommerce" version 1.3.3.24, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Gives option to replace Cancel order button with Cancel order request button, so user can send cancellation request
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,638 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 2,128 | 18 | 9,999 |
SVG | 6 | 5 | 5 | 3,342 |
PHP | 40 | 673 | 647 | 2,120 |
JavaScript | 5 | 31 | 9 | 166 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 29 | 20.57% |
▷ Public methods | 135 | 95.74% |
▷ Protected methods | 1 | 0.71% |
▷ Private methods | 5 | 3.55% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/pi-web-solution.png | 21.25KB | 9.42KB | ▼ 55.67% |
admin/img/product-variation.png | 228.45KB | 78.31KB | ▼ 65.72% |
admin/img/product-page.png | 206.06KB | 60.22KB | ▼ 70.78% |
admin/img/close.png | 4.32KB | 3.39KB | ▼ 21.57% |
admin/img/category.png | 49.73KB | 18.10KB | ▼ 63.60% |