Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼2.05ms] Passed 4 tests
Server-side resources used by SSLCommerz Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 46.46 ▲5.47 |
Dashboard /wp-admin | 3.60 ▲0.29 | 48.52 ▲2.88 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 46.19 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 83.69 ▼9.02 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 33.79 ▼1.37 |
Payment Settings /wp-admin/admin.php?page=gk-sslcommerz-options | 3.50 | 34.40 |
Payment Statistics /wp-admin/admin.php?page=gk-sslcommerz-payment-statistics | 3.53 | 33.31 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gk_sslcommerz_payments |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_gk_sslcommerz_widget |
db_upgraded |
theysaidso_admin_options |
gk_sslcommerz_db_version |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SSLCommerz Payment Gateway
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 13.61 ▼0.68 | 1.76 ▼0.48 | 42.31 ▼3.12 |
Dashboard /wp-admin | 2,230 ▲42 | 4.90 ▲0.00 | 104.63 ▼6.58 | 40.20 ▼0.50 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.10 ▼0.08 | 37.02 ▲0.75 | 33.83 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.38 ▲0.16 | 665.20 ▲2.73 | 59.04 ▲7.68 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.30 ▲0.08 | 104.60 ▲5.20 | 42.31 ▼0.50 |
Payment Settings /wp-admin/admin.php?page=gk-sslcommerz-options | 1,136 | 2.30 | 26.52 | 27.88 |
Payment Statistics /wp-admin/admin.php?page=gk-sslcommerz-payment-statistics | 809 | 2.06 | 25.73 | 21.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/gk-sslcommerz/uninstall.php+16
Undefined variable: gk_sslcommerz_payments_table
- Zombie tables detected upon uninstall: 1 table
- wp_gk_sslcommerz_payments
- Zombie WordPress options detected upon uninstall: 7 options
- widget_gk_sslcommerz_widget
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/gk-sslcommerz/uninstall.php
- > /wp-content/plugins/gk-sslcommerz/gk-sslcommerz.php
- > /wp-content/plugins/gk-sslcommerz/includes/gk-sslcommerz-settings.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gk-sslcommerz/class/gk-sslcommerz-widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gk-sslcommerz/partials/admin_payment_statistics.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gk-sslcommerz/partials/admin_widget_form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gk-sslcommerz/partials/admin_payment_invoice.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gk-sslcommerz/partials/admin_option_page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gk-sslcommerz/partials/admin_payment_archive.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: visa, taka, payment gateway, bkash, payment...
gk-sslcommerz/gk-sslcommerz.php Passed 13 tests
The entry point to "SSLCommerz Payment Gateway" version 0.4 is a PHP file that has certain tags in its header comment area
62 characters long description:
Integrate the SSLCommerz payment gateway to WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,909 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 281 | 228 | 1,820 |
CSS | 3 | 18 | 15 | 80 |
JavaScript | 1 | 0 | 5 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 29.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 6 | 9.38% |
▷ Public methods | 58 | 90.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.38% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin