Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.17ms] Passed 4 tests
Analyzing server-side resources used by Collect Payment Gateway Plugin for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 37.01 ▲14.10 |
Dashboard /wp-admin | 3.07 ▲0.01 | 52.36 ▲4.78 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 46.95 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 89.67 ▼564.71 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.40 ▼1.28 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Collect Payment Gateway Plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.18 ▲0.46 | 9.82 ▲0.03 | 44.75 ▼2.22 |
Dashboard /wp-admin | 2,970 ▲39 | 5.88 ▼0.32 | 145.39 ▼4.58 | 111.28 ▲4.48 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 62.50 ▼8.08 | 81.77 ▼11.41 |
Add New Post /wp-admin/post-new.php | 1,498 ▼117 | 18.86 ▼2.85 | 397.67 ▲89.66 | 110.73 ▲10.05 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.06 ▲0.06 | 152.09 ▲3.04 | 113.86 ▲2.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
collect-payment-gateway-for-woocommerce/woo-collect.php 85% from 13 tests
The main PHP file in "Collect Payment Gateway Plugin for WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("collect-payment-gateway-for-woocommerce.php" instead of "woo-collect.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin800 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 294 | 239 | 655 |
Markdown | 1 | 46 | 0 | 86 |
JavaScript | 2 | 17 | 7 | 59 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 70.83% |
▷ Protected methods | 2 | 8.33% |
▷ Private methods | 5 | 20.83% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/collect-payment.png | 12.94KB | 4.77KB | ▼ 63.15% |