Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.61ms] Passed 4 tests
This is a short check of server-side resources used by Conditional Payment Methods for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.40 ▲5.31 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.28 ▼13.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.58 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 80.42 ▼22.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 35.18 ▲2.74 |
Server storage [IO: ▲3.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 204 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
widget_theysaidso_widget |
can_compress_scripts |
fs_debug_mode |
widget_recent-posts |
widget_recent-comments |
fs_accounts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Conditional Payment Methods 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.20 ▼0.01 | 1.87 ▲0.25 | 43.39 ▲1.55 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.09 | 88.97 ▼29.14 | 41.92 ▼3.74 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.05 | 39.18 ▲0.37 | 37.31 ▲6.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.41 | 597.52 ▼30.93 | 52.14 ▼10.64 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▼0.01 | 98.04 ▲2.51 | 41.30 ▼3.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_debug_mode
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_accounts
- fs_active_plugins
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("HTTP://example.com")
- Screenshots: These screenshots lack descriptions #10, #11, #12, #2, #4, #6, #8, #9 in conditional-payments/assets to your readme.txt
conditional-payments/conditional-payments.php 92% from 13 tests
The main PHP script in "Conditional Payment Methods for WooCommerce" version 1.1.4 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.5")
Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin39,982 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,738 | 18,650 | 37,713 |
PO File | 4 | 572 | 1,204 | 1,333 |
JavaScript | 6 | 106 | 91 | 834 |
CSS | 15 | 5 | 5 | 102 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 167)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 88.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 167.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,385 | |
▷ Static methods | 215 | 15.52% |
▷ Public methods | 976 | 70.47% |
▷ Protected methods | 20 | 1.44% |
▷ Private methods | 389 | 28.09% |
Functions | 107 | |
▷ Named functions | 106 | 99.07% |
▷ Anonymous functions | 1 | 0.93% |
Constants | 153 | |
▷ Global constants | 103 | 67.32% |
▷ Class constants | 50 | 32.68% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/images/help.png | 1.27KB | 0.32KB | ▼ 74.79% |