Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼13.90ms] Passed 4 tests
Server-side resources used by Checkout X for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▼0.38 | 19.02 ▼22.23 |
Dashboard /wp-admin | 3.55 ▲0.20 | 45.89 ▼17.52 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.31 ▲0.28 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 91.75 ▼16.12 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.59 ▲3.20 |
General /wp-admin/admin.php?page=checkout-x-settings | 3.37 | 31.54 |
Help center /wp-admin/admin.php?page=checkout-x-help-center | 3.35 | 31.78 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Checkout X for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,510 ▼261 | 14.46 ▼0.30 | 0.53 ▼1.67 | 16.72 ▼28.24 |
Dashboard /wp-admin | 2,260 ▲75 | 4.89 ▼0.15 | 111.40 ▲8.87 | 39.82 ▼4.95 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.01 ▼0.04 | 39.59 ▼1.68 | 34.62 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 23.40 ▲5.14 | 656.18 ▲34.17 | 68.71 ▲14.98 |
Media Library /wp-admin/upload.php | 1,442 ▲60 | 4.18 ▼0.04 | 99.23 ▼1.39 | 43.87 ▲2.89 |
General /wp-admin/admin.php?page=checkout-x-settings | 911 | 2.21 | 27.13 | 32.33 |
Help center /wp-admin/admin.php?page=checkout-x-help-center | 693 | 1.53 | 6.58 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=checkout-x-help-center
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 0% 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/checkoutx/public/partials/checkout-x-public-display.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/checkoutx/admin/partials/general-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/checkoutx/admin/partials/connect-checkout-x.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
checkoutx/checkout-x.php 77% from 13 tests
The main PHP file in "Checkout X for WooCommerce" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("checkoutx.php" instead of "checkout-x.php")
- Description: The description should be shorter than 140 characters (currently 280 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,100 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 242 | 768 | 919 |
CSS | 2 | 29 | 8 | 115 |
JavaScript | 2 | 7 | 60 | 35 |
make | 1 | 15 | 8 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 3 | 4.00% |
▷ Public methods | 58 | 77.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 22.67% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/checkmark.png | 7.74KB | 3.29KB | ▼ 57.49% |
assets/images/trending.png | 1.13KB | 0.78KB | ▼ 31.61% |
assets/images/growth_icon.png | 20.54KB | 6.50KB | ▼ 68.38% |
assets/images/app_icon.png | 1.63KB | 1.70KB | 0.00% |
assets/images/white_checkout_logo.png | 1.48KB | 0.75KB | ▼ 49.24% |