Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.24ms] Passed 4 tests
An overview of server-side resources used by Custom & One-Page Checkout for Woo - Free by WP Masters
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.91 ▼5.59 |
Dashboard /wp-admin | 3.34 ▲0.04 | 59.63 ▼0.10 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 57.14 ▲3.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 96.67 ▼2.81 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 48.01 ▲12.83 |
Server storage [IO: ▲4.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom & One-Page Checkout for Woo - Free by WP Masters
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲177 | 16.50 ▲2.10 | 1.94 ▼0.15 | 40.80 ▼3.99 |
Dashboard /wp-admin | 2,372 ▲195 | 7.86 ▲2.31 | 123.93 ▲29.23 | 36.85 ▼9.18 |
Posts /wp-admin/edit.php | 2,300 ▲200 | 5.28 ▲3.33 | 57.51 ▲18.36 | 33.70 ▼5.74 |
Add New Post /wp-admin/post-new.php | 6,423 ▲4,897 | 23.96 ▲0.66 | 978.44 ▲270.51 | 38.54 ▼18.92 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 6.57 ▲2.37 | 100.01 ▼16.13 | 48.68 ▲1.64 |
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
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/fragments/select_shipping.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/fragments/total_checkout.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/wpm-custom-checkout.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/checkout.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/admin/settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shopify-like checkout, checkout, one-page checkout, custom checkout
custom-one-page-checkout-for-woo-free-by-wp-masters/wpm-custom-checkout.php 85% from 13 tests
Analyzing the main PHP file in "Custom & One-Page Checkout for Woo - Free by WP Masters" version 1.0.1
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("custom-one-page-checkout-for-woo-free-by-wp-masters.php" instead of "wpm-custom-checkout.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
There were no executable files found in this plugin21,332 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
CSS | 6 | 202 | 37 | 8,297 |
JavaScript | 5 | 349 | 216 | 2,265 |
PHP | 8 | 97 | 128 | 1,218 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/logo.png | 11.32KB | 4.55KB | ▼ 59.79% |