Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.58ms] Passed 4 tests
Server-side resources used by PaysonCheckout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.35 ▼0.78 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.56 ▼4.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.64 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.71 ▼4.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.47 ▲2.78 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PaysonCheckout for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.44 ▲0.16 | 1.72 ▼0.08 | 40.42 ▼8.19 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.92 | 101.83 ▼14.34 | 38.33 ▼11.08 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▼0.02 | 39.92 ▲2.78 | 35.93 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 18.59 ▼4.59 | 625.64 ▲7.17 | 63.71 ▲15.36 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.23 ▲0.02 | 98.39 ▲3.91 | 41.65 ▼3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/krokedil-paysoncheckout-20-for-woocommerce/templates/paysoncheckout-pay.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_print_notices() in wp-content/plugins/krokedil-paysoncheckout-20-for-woocommerce/templates/paysoncheckout-checkout.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/krokedil-paysoncheckout-20-for-woocommerce/includes/paysoncheckout-for-woocommerce-form-fields.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/krokedil-paysoncheckout-20-for-woocommerce/classes/class-paysoncheckout-for-woocommerce-templates.php:16
- > 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 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: payson, e-commerce, paysoncheckout20, ecommerce, woocommerce
krokedil-paysoncheckout-20-for-woocommerce/paysoncheckout-for-woocommerce.php 77% from 13 tests
"PaysonCheckout for WooCommerce" version 3.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("krokedil-paysoncheckout-20-for-woocommerce.php" instead of "paysoncheckout-for-woocommerce.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.5" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,983 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 390 | 1,266 | 2,459 |
JavaScript | 1 | 53 | 93 | 351 |
PO File | 1 | 39 | 42 | 129 |
CSS | 1 | 6 | 3 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 17 | 14.17% |
▷ Public methods | 117 | 97.50% |
▷ Protected methods | 2 | 1.67% |
▷ Private methods | 1 | 0.83% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected