84% botonbanesco-internet-banking-payment-gateway

Code Review | BotonBanesco Internet Banking Payment Gateway

WordPress plugin BotonBanesco Internet Banking Payment Gateway scored84%from 54 tests.

About plugin

  • Plugin page: botonbanesco-inte...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: Nov 12, 2022
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: tisoportebotondepago (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /711 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.93ms] Passed 4 tests

This is a short check of server-side resources used by BotonBanesco Internet Banking Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1034.74 ▼6.44
Dashboard /wp-admin3.41 ▲0.1145.12 ▼2.64
Posts /wp-admin/edit.php3.52 ▲0.1746.49 ▲4.17
Add New Post /wp-admin/post-new.php6.01 ▲0.1392.06 ▼8.09
Media Library /wp-admin/upload.php3.33 ▲0.1135.70 ▼2.55

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BotonBanesco Internet Banking Payment Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.24 ▼1.542.14 ▲0.4140.46 ▼3.85
Dashboard /wp-admin2,228 ▲364.86 ▼0.07109.06 ▼2.7645.77 ▲8.65
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0338.97 ▲3.2934.72 ▲4.44
Add New Post /wp-admin/post-new.php1,530 ▲1017.87 ▼5.14661.22 ▼17.3654.48 ▲5.22
Media Library /wp-admin/upload.php1,407 ▲194.21 ▲0.0295.90 ▼57.8941.15 ▼10.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/botonbanesco-internet-banking-payment-gateway/woocommerce-gateway-botonbanesco.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: pagos en linea, pago movil, banesco, p2p

botonbanesco-internet-banking-payment-gateway/woocommerce-gateway-botonbanesco.php 92% from 13 tests

The main PHP file in "BotonBanesco Internet Banking Payment Gateway" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("botonbanesco-internet-banking-payment-gateway.php" instead of "woocommerce-gateway-botonbanesco.php")

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
Everything looks great! No dangerous files found in this plugin802 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP116377555
JavaScript12912152
PO File1363995

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png2.12KB1.52KB▼ 28.55%