Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲0.13ms] Passed 4 tests
A check of server-side resources used by Bambora Online Checkout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 38.48 ▲2.46 |
Dashboard /wp-admin | 3.71 ▲0.40 | 49.48 ▲4.06 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 45.39 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 84.27 ▼7.64 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 34.35 ▲3.26 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Bambora Online Checkout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.12 | 1.66 ▼0.27 | 38.98 ▼2.04 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▼0.02 | 84.97 ▲0.39 | 37.15 ▼0.23 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.15 ▲0.13 | 34.56 ▼2.19 | 35.50 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.32 ▲0.44 | 649.11 ▼60.79 | 59.24 ▲3.27 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.03 | 93.82 ▼7.64 | 42.92 ▼2.07 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include(): Failed opening 'BOC_LIBbambora-online-checkout-endpoints.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bambora-online-checkout/bambora-online-checkout.php:15
- > PHP Warning
Use of undefined constant BOC_LIB - assumed 'BOC_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 17
- > PHP Warning
include(BOC_LIBbambora-online-checkout-models.php): failed to open stream: No such file or directory in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 17
- > PHP Warning
Use of undefined constant BOC_LIB - assumed 'BOC_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 18
- > PHP Warning
include(): Failed opening 'BOC_LIBbambora-online-checkout-models.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 17
- > PHP Warning
include(BOC_LIBbambora-online-checkout-endpoints.php): failed to open stream: No such file or directory in wp-content/plugins/bambora-online-checkout/lib/bambora-online-checkout-api.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
bambora-online-checkout/bambora-online-checkout.php Passed 13 tests
Analyzing the main PHP file in "Bambora Online Checkout" version 6.0.1
55 characters long description:
Bambora Online Checkout 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
Success! There were no dangerous files found in this plugin4,055 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 516 | 904 | 2,548 |
PO File | 4 | 393 | 517 | 1,049 |
CSS | 2 | 37 | 0 | 276 |
JavaScript | 1 | 21 | 12 | 127 |
SVG | 1 | 0 | 0 | 45 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 21.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 39 | 32.77% |
▷ Public methods | 94 | 78.99% |
▷ Protected methods | 22 | 18.49% |
▷ Private methods | 3 | 2.52% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 23 | |
▷ Global constants | 10 | 43.48% |
▷ Class constants | 13 | 56.52% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin