Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.78ms] Passed 4 tests
A check of server-side resources used by Conditional Payments for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.34 ▲4.34 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.97 ▼12.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.14 ▲1.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.97 ▼9.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.11 ▼2.35 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Conditional Payments for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.72 ▲0.37 | 1.73 ▲0.22 | 42.42 ▲1.87 |
Dashboard /wp-admin | 2,195 ▲17 | 5.61 ▲0.03 | 84.61 ▼31.75 | 39.27 ▼8.80 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.00 | 39.65 ▲1.85 | 35.87 ▲4.14 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.43 ▲0.20 | 625.41 ▼46.39 | 55.70 ▼7.59 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▲0.03 | 97.91 ▼1.44 | 47.02 ▲4.83 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/conditional-payments-for-woocommerce/includes/frontend/views/debug.html.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conditional-payments-for-woocommerce/includes/class-woo-conditional-payments-updater.php:127
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #1 in conditional-payments-for-woocommerce/assets to your readme.txt
conditional-payments-for-woocommerce/conditional-payments-for-woocommerce.php 85% from 13 tests
The principal PHP file in "Conditional Payments for WooCommerce" v. 3.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "6.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,231 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 622 | 530 | 2,828 |
CSS | 4 | 119 | 10 | 488 |
Sass | 2 | 94 | 0 | 461 |
JavaScript | 2 | 112 | 109 | 452 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 42.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 39 | 36.79% |
▷ Public methods | 87 | 82.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 17.92% |
Functions | 46 | |
▷ Named functions | 38 | 82.61% |
▷ Anonymous functions | 8 | 17.39% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 103.79KB | 40.73KB | ▼ 60.76% |
assets/banner-772x250.png | 44.29KB | 20.40KB | ▼ 53.95% |
assets/icon-128x128.png | 2.75KB | 2.32KB | ▼ 15.53% |