Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wordpress-checkout/includes/classes/class.wpckt-widget.php+9
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼57.86ms] Passed 4 tests
Server-side resources used by Wordpress Checkout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.38 ▼39.06 |
Dashboard /wp-admin | 2.17 ▼1.13 | 6.80 ▼51.25 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 9.28 ▼40.39 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 5.83 ▼100.74 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 7.27 ▼28.42 |
Settings /wp-admin/admin.php?page=wpckt_settings | 2.17 | 6.65 |
Orders /wp-admin/admin.php?page=wpckt_orders | 2.17 | 7.54 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_wpckt_widget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Checkout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.72 ▲0.12 | 1.98 ▼0.11 | 45.69 ▼2.03 |
Dashboard /wp-admin | 2,212 ▲35 | 5.56 ▼0.05 | 82.74 ▼12.07 | 57.82 ▲18.23 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 1.98 ▼0.02 | 38.76 ▼0.64 | 32.87 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,568 ▲38 | 19.42 ▼3.70 | 709.06 ▲46.26 | 60.28 ▼3.82 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.15 ▼0.04 | 106.30 ▲4.23 | 69.10 ▲19.90 |
Settings /wp-admin/admin.php?page=wpckt_settings | 2,310 | 8.70 | 175.66 | 76.24 |
Orders /wp-admin/admin.php?page=wpckt_orders | 819 | 1.65 | 23.72 | 24.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wordpress-checkout/includes/classes/class.wpckt-widget.php+9
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_wpckt_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpckt_orders
- > Deprecated in wp-content/plugins/wordpress-checkout/includes/classes/class.wpckt-widget.php+9
Function create_function() is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-checkout/presentation/default/functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wordpress-checkout/wp-checkout.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wordpress-checkout/includes/functions.php:130
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-checkout/includes/classes/class.wpckt-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-checkout/includes/cart.php:12
- > PHP Fatal error
Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/wordpress-checkout/includes/tinymce/wpcheckout/langs/wp-langs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-checkout/includes/admin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
wordpress-checkout/wp-checkout.php 92% from 13 tests
The primary PHP file in "Wordpress Checkout" version 1.2.3.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-checkout.php" instead of "wp-checkout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin6,679 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 893 | 678 | 2,341 |
HTML | 1 | 362 | 0 | 2,023 |
PO File | 4 | 724 | 1,008 | 1,714 |
JavaScript | 6 | 146 | 74 | 492 |
CSS | 2 | 25 | 18 | 109 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.17 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 4 | 9.52% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 1 | 2.38% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/tinymce/wpcheckout/img/wp_checkout_label_edit.png | 0.72KB | 0.69KB | ▼ 4.31% |
assets/images/shopping-cart-sm-icon.png | 0.51KB | 0.63KB | 0.00% |
assets/images/shopping-cart-sm-icon-white.png | 0.55KB | 0.64KB | 0.00% |
includes/tinymce/wpcheckout/img/delete.png | 1.35KB | 1.34KB | ▼ 0.65% |
assets/images/wp_checkout_label.png | 3.64KB | 2.38KB | ▼ 34.65% |