Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼304.31ms] Passed 4 tests
An overview of server-side resources used by Fast Checkout for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.71 ▼0.00 |
Dashboard /wp-admin | 3.41 ▲0.01 | 37.11 ▼1.62 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 43.17 ▲2.40 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 101.98 ▼1,214.68 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 27.47 ▼0.93 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 281 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Fast Checkout for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲78 | 15.57 ▼0.10 | 5.81 ▼1.31 | 2.27 ▼0.52 |
Dashboard /wp-admin | 2,901 ▲46 | 6.12 ▼0.10 | 116.00 ▼21.10 | 152.89 ▼8.75 |
Posts /wp-admin/edit.php | 2,698 ▲10 | 3.23 ▼0.01 | 62.99 ▼0.85 | 146.91 ▲5.31 |
Add New Post /wp-admin/post-new.php | 1,764 ▼9 | 21.90 ▲0.93 | 427.90 ▼17.72 | 158.20 ▼2.10 |
Media Library /wp-admin/upload.php | 1,704 ▲9 | 5.51 ▼0.02 | 147.14 ▲0.01 | 187.28 ▲1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 80× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function fastwc_load_template() in wp-content/plugins/fast-checkout-for-woocommerce/templates/admin/tabs/fast-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function fastwc_load_template() in wp-content/plugins/fast-checkout-for-woocommerce/templates/admin/tabs/fast-advanced.php:8
- > PHP Fatal error
Uncaught Error: Class 'FastWC\\Admin\\Fields\\Field' not found in wp-content/plugins/fast-checkout-for-woocommerce/includes/admin/fields/class-ajax-select.php:13
- > PHP Warning
Use of undefined constant FASTWC_PATH - assumed 'FASTWC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fast-checkout-for-woocommerce/includes/third-party.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-checkout-for-woocommerce/includes/webhooks.php:32
- > PHP Fatal error
Uncaught Error: Class 'FastWC\\Routes\\Route' not found in wp-content/plugins/fast-checkout-for-woocommerce/includes/routes/class-auth-test.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function fastwc_load_template() in wp-content/plugins/fast-checkout-for-woocommerce/templates/fast-cart.php:11
- > PHP Fatal error
Uncaught Error: Class 'FastWC\\Routes\\Route' not found in wp-content/plugins/fast-checkout-for-woocommerce/includes/routes/class-shipping-zones.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-checkout-for-woocommerce/includes/admin/notices.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function fastwc_load_template() in wp-content/plugins/fast-checkout-for-woocommerce/templates/admin/tabs/fast-third-party.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
9 plugin tags: woocommerce, fast, checkout, fast checkout, 1 click checkout...
fast-checkout-for-woocommerce/fast.php 92% from 13 tests
The entry point to "Fast Checkout for WooCommerce" version 1.1.18 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fast-checkout-for-woocommerce.php" instead of "fast.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected36,467 lines of code in 227 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 196 | 8,516 | 19,294 | 35,470 |
Markdown | 3 | 133 | 0 | 465 |
JavaScript | 8 | 54 | 100 | 305 |
JSON | 4 | 0 | 0 | 181 |
YAML | 2 | 2 | 0 | 28 |
CSS | 14 | 0 | 0 | 18 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 53.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 6 | 7.14% |
▷ Concrete classes | 78 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 1,306 | |
▷ Static methods | 210 | 16.08% |
▷ Public methods | 875 | 67.00% |
▷ Protected methods | 95 | 7.27% |
▷ Private methods | 336 | 25.73% |
Functions | 252 | |
▷ Named functions | 247 | 98.02% |
▷ Anonymous functions | 5 | 1.98% |
Constants | 179 | |
▷ Global constants | 151 | 84.36% |
▷ Class constants | 28 | 15.64% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/before-quantity-selection.png | 11.07KB | 6.06KB | ▼ 45.20% |
assets/img/after-atc-button.png | 11.03KB | 6.06KB | ▼ 45.04% |
assets/img/other.png | 5.25KB | 2.58KB | ▼ 50.88% |
assets/img/after-quantity-selection.png | 11.06KB | 6.07KB | ▼ 45.14% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |