Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.81MB] [CPU: ▼51.34ms] Passed 4 tests
An overview of server-side resources used by Boldwallet WooCommerce Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 9.22 ▼31.20 |
Dashboard /wp-admin | 2.20 ▼1.10 | 6.60 ▼48.09 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.95 ▼38.92 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.16 ▼87.15 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 7.33 ▼26.01 |
books /wp-admin/edit.php?post_type=book | 2.21 | 7.44 |
Add New /wp-admin/post-new.php?post_type=book | 2.21 | 5.55 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/woo-boldwallet-boldwallet/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/woo-boldwallet-boldwallet/assets/banner-772\303\227250.jpg"
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Boldwallet WooCommerce Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.22 ▼1.16 | 1.53 ▼0.07 | 37.87 ▲0.38 |
Dashboard /wp-admin | 2,237 ▲66 | 5.87 ▲0.03 | 105.51 ▼18.52 | 39.83 ▼5.88 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.07 ▲0.08 | 42.65 ▼0.58 | 39.56 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.19 ▲4.95 | 648.70 ▲19.72 | 53.57 ▼7.94 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.23 ▼0.01 | 106.40 ▲0.56 | 48.61 ▲1.38 |
books /wp-admin/edit.php?post_type=book | 1,087 | 1.99 | 35.17 | 29.51 |
Add New /wp-admin/post-new.php?post_type=book | 2,167 | 7.53 | 185.58 | 66.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=book
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=book
- > Network (severe)
wp-content/plugins/woo-boldwallet-boldwallet/assets/mystyle.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: visa, mastercard, verve, boldwallet, nigeria...
woo-boldwallet-boldwallet/woo-boldwallet.php 92% from 13 tests
The main PHP script in "Boldwallet WooCommerce Payment Gateway" version 1.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-boldwallet-boldwallet.php" instead of "woo-boldwallet.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected419 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 217 | 80 | 407 |
JavaScript | 1 | 12 | 2 | 12 |
PHP code Passed 2 tests
Analyzing 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.24 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 65.59KB | 3.60KB | ▼ 94.52% |