10% payment-gateway-givewp-asoriba-businesspay

Code Review | Payment Gateway GiveWP Asoriba BusinessPay

WordPress plugin Payment Gateway GiveWP Asoriba BusinessPay scored 10% from 54 tests.

About plugin

  • Plugin page: payment-gateway-g...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Jul 6, 2023
  • Number of updates: 6
  • Update frequency: every 194.8 days
  • Top authors: rupeshjorkar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 497 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.31 ▼6.16
Dashboard /wp-admin3.31 ▲0.0144.22 ▼2.62
Posts /wp-admin/edit.php3.36 ▲0.0144.47 ▼2.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.93 ▼0.13
Media Library /wp-admin/upload.php3.24 ▲0.0133.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5213.22 ▼1.161.70 ▼0.4141.74 ▼5.57
Dashboard /wp-admin2,215 ▲245.86 ▲0.96104.01 ▼15.2739.96 ▼3.72
Posts /wp-admin/edit.php2,097 ▲52.00 ▼0.0136.18 ▼1.7234.39 ▼0.66
Add New Post /wp-admin/post-new.php1,553 ▲1118.42 ▲0.24655.31 ▲43.3450.71 ▼15.17
Media Library /wp-admin/upload.php1,394 ▲94.24 ▲0.0697.98 ▲0.3041.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

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: ""
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP8110145651

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 code0.29
Average class complexity23.00
▷ Minimum class complexity12.00
▷ Maximum class complexity34.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/Asoriba_logo.png160.40KB58.29KB▼ 63.66%