Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/urubutopay/src/includes/urubutopay-products.php+97
Undefined index: urubutopay_price_class_nonce
Server metrics [RAM: ▼10.15MB] [CPU: ▼2,030,012.85ms] Passed 4 tests
This is a short check of server-side resources used by UrubutoPay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▼38.91 | 43.72 ▼8,120,018.05 |
Dashboard /wp-admin | 42.81 ▲39.46 | 8,129,574.24 ▲8,129,524.45 |
Posts /wp-admin/edit.php | 3.79 ▲0.39 | 51.15 ▲0.04 |
Add New Post /wp-admin/post-new.php | 3.53 ▼2.41 | 49.90 ▼71.77 |
Media Library /wp-admin/upload.php | 3.60 ▲0.33 | 77.26 ▲38.40 |
Settings /wp-admin/edit.php?post_type=urubutopay_products&page=urubutopay_setting_page | 3.57 | 38.61 |
Add New Product /wp-admin/post-new.php?post_type=urubutopay_products | 3.52 | 38.74 |
Payments /wp-admin/edit.php?post_type=urubutopay_payments | 3.71 | 39.35 |
Products /wp-admin/edit.php?post_type=urubutopay_products | 3.71 | 42.37 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
UrubutoPay: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.80 ▲1.58 | 21.67 ▲17.63 | 105.52 ▲66.31 |
Dashboard /wp-admin | 2,240 ▲66 | 5.64 ▼0.02 | 85.63 ▼2.27 | 41.98 ▼2.06 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 1.97 ▼0.01 | 37.66 ▲1.05 | 33.75 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.31 ▼0.19 | 678.21 ▲7.63 | 66.39 ▲15.49 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.18 ▲0.07 | 108.39 ▼6.73 | 52.78 ▲5.06 |
Settings /wp-admin/edit.php?post_type=urubutopay_products&page=urubutopay_setting_page | 947 | 2.01 | 31.07 | 33.77 |
Add New Product /wp-admin/post-new.php?post_type=urubutopay_products | 2,239 | 7.53 | 182.63 | 63.67 |
Payments /wp-admin/edit.php?post_type=urubutopay_payments | 1,137 | 1.91 | 33.18 | 33.03 |
Products /wp-admin/edit.php?post_type=urubutopay_products | 1,122 | 1.92 | 33.94 | 30.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 47 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=urubutopay_products
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 47 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=urubutopay_products
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/post-new.php?post_type=urubutopay_products
- > Notice in wp-content/plugins/urubutopay/src/includes/urubutopay-products.php+97
Undefined index: urubutopay_price_class_nonce
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid version format
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
urubutopay/urubutopay.php 85% from 13 tests
Analyzing the main PHP file in "UrubutoPay" version 1.0
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "PHP 7")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected4,084 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 569 | 871 | 2,855 |
Markdown | 2 | 135 | 0 | 445 |
CSS | 1 | 61 | 6 | 337 |
JavaScript | 1 | 54 | 5 | 269 |
JSON | 3 | 0 | 0 | 133 |
SVG | 5 | 0 | 0 | 45 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 44 | 32.35% |
▷ Public methods | 115 | 84.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 15.44% |
Functions | 11 | |
▷ Named functions | 5 | 45.45% |
▷ Anonymous functions | 6 | 54.55% |
Constants | 24 | |
▷ Global constants | 15 | 62.50% |
▷ Class constants | 9 | 37.50% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/screenshots/screenshot-1.png | 81.44KB | 33.52KB | ▼ 58.84% |
public/images/screenshots/banner-772x250.png | 20.13KB | 9.04KB | ▼ 55.09% |
public/images/payment/success.png | 5.33KB | 2.86KB | ▼ 46.37% |
public/images/payment/failed.png | 4.50KB | 2.12KB | ▼ 52.91% |
public/images/screenshots/screenshot-2.png | 134.38KB | 54.06KB | ▼ 59.77% |