94% bambora-online-classic

Code Review | Bambora Online ePay

WordPress plugin Bambora Online ePay scored 94% from 54 tests.

About plugin

  • Plugin page: bambora-online-cl...
  • Plugin version: 5.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8
  • WordPress version: 5.8.1
  • First release: Jan 31, 2017
  • Latest release: Oct 19, 2021
  • Number of updates: 71
  • Update frequency: every 24.2 days
  • Top authors: bambora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 30,602 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼155.37ms] Passed 4 tests

A check of server-side resources used by Bambora Online ePay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0042.44 ▼20.17
Dashboard /wp-admin3.06 ▲0.0148.01 ▼17.16
Posts /wp-admin/edit.php3.17 ▲0.0747.08 ▼4.38
Add New Post /wp-admin/post-new.php5.42 ▼0.0199.06 ▼579.77
Media Library /wp-admin/upload.php3.01 ▲0.0038.13 ▲2.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Bambora Online ePay
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲10615.76 ▲0.3110.68 ▼0.0348.83 ▼6.75
Dashboard /wp-admin2,967 ▲336.10 ▲0.01147.31 ▼27.94117.95 ▼19.10
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0072.16 ▼2.26102.08 ▼4.07
Add New Post /wp-admin/post-new.php1,500 ▼6918.57 ▼0.22375.14 ▼18.34112.11 ▼3.61
Media Library /wp-admin/upload.php1,807 ▼05.06 ▲0.03156.73 ▲0.20127.38 ▼6.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bambora-online-classic/bambora-online-classic.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

bambora-online-classic/bambora-online-classic.php Passed 13 tests

"Bambora Online ePay" version 5.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Bambora Online ePay payment gateway for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,202 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP42276041,653
PO File28686265
CSS2300180
JavaScript2122480
SVG10024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity63.00
▷ Minimum class complexity2.00
▷ Maximum class complexity154.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods88
▷ Static methods3337.50%
▷ Public methods7585.23%
▷ Protected methods1314.77%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants215.38%
▷ Class constants1184.62%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected