Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.28ms] Passed 4 tests
This is a short check of server-side resources used by Bob Pay Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.87 ▼1.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.99 ▼6.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.55 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.58 ▼7.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 44.21 ▲2.83 |
Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Bob Pay Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.21 ▼1.23 | 1.67 ▼0.19 | 44.50 ▼1.41 |
Dashboard /wp-admin | 2,218 ▲21 | 5.83 ▼0.08 | 103.56 ▼7.05 | 38.38 ▼5.43 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.05 | 37.80 ▼0.87 | 38.96 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.49 ▼5.64 | 654.12 ▲1.75 | 57.52 ▼5.91 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.13 | 115.05 ▼4.20 | 50.66 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- 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
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/bob-pay/includes/class-wc-bobpay-plugin.php:13
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/bob-pay/includes/class-wc-bobpay-plugin-blocks-support.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: credit card, woocommerce, payment request
bob-pay/bobpay-plugin.php 85% from 13 tests
This is the main PHP file of "Bob Pay Plugin" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bob-pay.php" instead of "bobpay-plugin.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0.0" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected621 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 114 | 25 | 602 |
YAML | 1 | 4 | 3 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 31 | 93.94% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 9 | |
▷ Global constants | 9 | 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
14 PNG files occupy 1.95MB with 1.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/icon-128x128.png | 14.29KB | 2.53KB | ▼ 82.30% |
.wordpress-org/screenshot-3.png | 223.70KB | 80.16KB | ▼ 64.16% |
.wordpress-org/screenshot-6.png | 231.56KB | 79.85KB | ▼ 65.51% |
assets/images/icon.png | 2.02KB | 1.79KB | ▼ 11.72% |
.wordpress-org/screenshot-8.png | 214.20KB | 74.37KB | ▼ 65.28% |