84% bambora-online-classic

Code Review | Bambora Online ePay

WordPress plugin Bambora Online ePay scored84%from 54 tests.

About plugin

  • Plugin page: bambora-online-cl...
  • Plugin version: 6.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Oct 23, 2023
  • Number of updates: 91
  • Update frequency: every 27.0 days
  • Top authors: bambora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /41,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.55ms] 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 /3.69 ▲0.2341.06 ▲4.32
Dashboard /wp-admin3.54 ▲0.1944.26 ▼13.93
Posts /wp-admin/edit.php3.65 ▲0.2947.61 ▲3.01
Add New Post /wp-admin/post-new.php6.12 ▲0.2390.82 ▼3.60
Media Library /wp-admin/upload.php3.46 ▲0.2337.93 ▲4.41

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

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 /2,789 ▲4314.35 ▼0.001.63 ▼0.0244.43 ▲3.63
Dashboard /wp-admin2,195 ▲155.48 ▼0.0281.43 ▼6.4235.48 ▼6.65
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0038.15 ▲2.4836.44 ▲0.79
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.39639.58 ▼45.6460.12 ▲9.31
Media Library /wp-admin/upload.php1,403 ▲124.23 ▲0.0396.07 ▼10.8140.45 ▼5.22

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
  • 2× 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:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bambora-online-classic/trunk/bambora-online-classic.php:20

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 6.0.0'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,561 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP42846681,989
PO File28686265
CSS2320180
JavaScript2132480
SVG10038
XML1009

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.32
Average class complexity61.75
▷ Minimum class complexity2.00
▷ Maximum class complexity150.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods178
▷ Static methods6838.20%
▷ Public methods15285.39%
▷ Protected methods2614.61%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants26
▷ Global constants415.38%
▷ Class constants2284.62%
▷ Public constants22100.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