Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.53ms] Passed 4 tests
Server-side resources used by WooCommerce Payment Methods
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.88 ▼1.96 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.02 ▼4.09 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 45.22 ▼2.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.14 ▼21.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.39 ▲4.94 |
Server storage [IO: ▲2.36MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_vendocrat_payment_methods |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Payment Methods
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.15 | 4.18 ▲2.52 | 37.99 ▲0.29 |
Dashboard /wp-admin | 2,209 ▲23 | 4.87 ▼0.11 | 106.93 ▼22.99 | 40.01 ▼12.41 |
Posts /wp-admin/edit.php | 2,089 ▲14 | 2.05 ▲0.00 | 39.42 ▼4.18 | 34.31 ▼9.43 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.29 ▲5.76 | 648.09 ▲30.48 | 51.00 ▲8.06 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.17 ▼0.05 | 94.77 ▼0.96 | 41.86 ▲0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_vendocrat_payment_methods
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Shortcode output (top-down: default, inverse, outline style)), #2 (Widgets (top-down: default, inverse, outline style)), #3 (WooCommerce Checkout in action)
woocommerce-payment-methods/woocommerce-payment-methods.php 92% from 13 tests
"WooCommerce Payment Methods" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,253 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 32 | 51 | 411 |
PHP | 3 | 109 | 233 | 411 |
PO File | 4 | 105 | 126 | 299 |
SVG | 1 | 0 | 0 | 105 |
Markdown | 1 | 19 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.47MB with 0.77MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.64KB | 23.69KB | ▼ 41.72% |
screenshot-2.png | 51.08KB | 29.43KB | ▼ 42.39% |
screenshot-4.png | 1,381.50KB | 330.57KB | ▼ 76.07% |
screenshot-3.png | 28.65KB | 14.45KB | ▼ 49.58% |