Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.10MB] [CPU: ▲14.42ms] Passed 4 tests
A check of server-side resources used by Quick Checkout, Direct Checkout Button, Quick View for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.60 ▲2.13 | 60.24 ▲16.10 |
Dashboard /wp-admin | 5.40 ▲2.09 | 59.92 ▲12.84 |
Posts /wp-admin/edit.php | 5.51 ▲2.15 | 62.48 ▲19.26 |
Add New Post /wp-admin/post-new.php | 8.00 ▲2.11 | 111.50 ▲12.42 |
Media Library /wp-admin/upload.php | 5.32 ▲2.09 | 54.45 ▲16.32 |
Server storage [IO: ▲2.34MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
qcfw-checkout |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Quick Checkout, Direct Checkout Button, Quick View for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲208 | 13.39 ▼0.89 | 9.99 ▲8.16 | 36.29 ▼9.47 |
Dashboard /wp-admin | 2,234 ▲64 | 5.55 ▼0.12 | 89.01 ▼21.58 | 41.67 ▼1.79 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.03 ▲0.09 | 42.21 ▲5.48 | 37.05 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.56 ▲0.50 | 606.52 ▼84.81 | 52.40 ▼0.96 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.20 ▼0.08 | 98.82 ▼10.16 | 44.51 ▼2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- qcfw-checkout
- theysaidso_admin_options
- widget_recent-posts
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 | 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/quick-checkout-for-woocommerce/admin/partials/qcfw-checkout-admin-display.php
- > /wp-content/plugins/quick-checkout-for-woocommerce/public/partials/qcfw-checkout-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Warning
require_once(QCFW_CHECKOUT_PATHincludes/backend/class-qcfw-checkout-settings.php): failed to open stream: No such file or directory in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'QCFW_CHECKOUT_PATHincludes/backend/class-qcfw-checkout-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
- > PHP Warning
Use of undefined constant QCFW_CHECKOUT_PATH - assumed 'QCFW_CHECKOUT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-checkout-for-woocommerce/public/class-qcfw-checkout-public.php on line 3
- > PHP Warning
require_once(wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/quick-checkout-for-woocommerce/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #3, #4, #5, #6, #7, #8, #9 in quick-checkout-for-woocommerce/assets to your readme.txt
quick-checkout-for-woocommerce/qcfw-checkout.php 77% from 13 tests
Analyzing the main PHP file in "Quick Checkout, Direct Checkout Button, Quick View for WooCommerce" version 1.4.3
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-checkout-for-woocommerce.php" instead of "qcfw-checkout.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin44,355 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 4,270 | 3,048 | 19,302 |
JavaScript | 10 | 1,329 | 519 | 6,718 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 19 | 978 | 3 | 6,139 |
CSS | 8 | 412 | 518 | 5,185 |
Markdown | 1 | 82 | 0 | 255 |
JSON | 3 | 0 | 0 | 127 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 24.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 2 | 2.38% |
▷ Concrete classes | 82 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 431 | |
▷ Static methods | 71 | 16.47% |
▷ Public methods | 389 | 90.26% |
▷ Protected methods | 6 | 1.39% |
▷ Private methods | 36 | 8.35% |
Functions | 33 | |
▷ Named functions | 29 | 87.88% |
▷ Anonymous functions | 4 | 12.12% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |