Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.96ms] Passed 4 tests
Server-side resources used by Easy Options Redirect to Checkout per product for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.35 ▼3.68 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.70 ▲5.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.24 ▲0.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.41 ▼4.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.73 ▲4.20 |
Easy Options Redirect to Checkout per product WC /wp-admin/options-general.php?page=easy-options-redirect-to-checkout-per-product-wc | 3.21 | 30.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Options Redirect to Checkout per product for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼0.99 | 1.78 ▼0.69 | 39.78 ▼10.38 |
Dashboard /wp-admin | 2,213 ▲31 | 4.86 ▼1.04 | 110.98 ▲1.88 | 41.57 ▼1.60 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.04 | 40.72 ▼0.66 | 34.96 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲20 | 23.27 ▼0.05 | 672.87 ▲31.80 | 56.97 ▲7.12 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.01 | 96.87 ▼5.71 | 41.75 ▼1.62 |
Easy Options Redirect to Checkout per product WC /wp-admin/options-general.php?page=easy-options-redirect-to-checkout-per-product-wc | 756 | 2.05 | 24.58 | 39.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-options-redirect-to-checkout-per-product-wc/easy-options-redirect-to-checkout-per-product-wc.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: woocommerce, per product, skip cart, skip to checkout, redirect to checkout...
easy-options-redirect-to-checkout-per-product-wc/easy-options-redirect-to-checkout-per-product-wc.php 92% from 13 tests
The principal PHP file in "Easy Options Redirect to Checkout per product for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 203 characters long)
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
Good job! No executable or dangerous file extensions detected127 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 32 | 127 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 8 | |
▷ Named functions | 8 | 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.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dbut.png | 13.46KB | 6.06KB | ▼ 55.01% |
stars-small.png | 1.50KB | 1.51KB | 0.00% |
dbut-small.png | 5.33KB | 2.67KB | ▼ 49.92% |