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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.06 ▲4.32 |
Dashboard /wp-admin | 3.54 ▲0.19 | 44.26 ▼13.93 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 47.61 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 90.82 ▼3.60 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.00 | 1.63 ▼0.02 | 44.43 ▲3.63 |
Dashboard /wp-admin | 2,195 ▲15 | 5.48 ▼0.02 | 81.43 ▼6.42 | 35.48 ▼6.65 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.96 ▼0.00 | 38.15 ▲2.48 | 36.44 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▼0.39 | 639.58 ▼45.64 | 60.12 ▲9.31 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.23 ▲0.03 | 96.07 ▼10.81 | 40.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 284 | 668 | 1,989 |
PO File | 2 | 86 | 86 | 265 |
CSS | 2 | 32 | 0 | 180 |
JavaScript | 2 | 13 | 24 | 80 |
SVG | 1 | 0 | 0 | 38 |
XML | 1 | 0 | 0 | 9 |
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 code | 0.32 |
Average class complexity | 61.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 68 | 38.20% |
▷ Public methods | 152 | 85.39% |
▷ Protected methods | 26 | 14.61% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 26 | |
▷ Global constants | 4 | 15.38% |
▷ Class constants | 22 | 84.62% |
▷ Public constants | 22 | 100.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