Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.74ms] Passed 4 tests
Analyzing server-side resources used by Payment Gateway GiveWP Asoriba BusinessPay
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.31 ▼6.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.22 ▼2.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.47 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.93 ▼0.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.92 ▲1.15 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Gateway GiveWP Asoriba BusinessPay
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲52 | 13.22 ▼1.16 | 1.70 ▼0.41 | 41.74 ▼5.57 |
Dashboard /wp-admin | 2,215 ▲24 | 5.86 ▲0.96 | 104.01 ▼15.27 | 39.96 ▼3.72 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▼0.01 | 36.18 ▼1.72 | 34.39 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,553 ▲11 | 18.42 ▲0.24 | 655.31 ▲43.34 | 50.71 ▼15.17 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.24 ▲0.06 | 97.98 ▲0.30 | 41.57 ▼4.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/payment-gateway-givewp-asoriba-businesspay/template/custompage-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/payment-gateway-givewp-asoriba-businesspay/includes/give-businesspay-activation.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/payment-gateway-givewp-asoriba-businesspay/template/custom-thankyou-template.php:6
- > 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 86% from 29 tests
readme.txt 81% 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
Attributes that need to be fixed:
- License uri: Please fix this invalid URI: ""
- License: No string
- Donate link: Please fix this invalid URI: ""
payment-gateway-givewp-asoriba-businesspay/payment-gateway-givewp-asoriba-businesspay.php 92% from 13 tests
"Payment Gateway GiveWP Asoriba BusinessPay" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin651 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 110 | 145 | 651 |
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.29 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Asoriba_logo.png | 160.40KB | 58.29KB | ▼ 63.66% |