Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.65ms] Passed 4 tests
Server-side resources used by Sampath bank Paycorp payment gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.21 ▼0.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.45 ▼7.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.08 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.76 ▼2.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.67 ▲0.58 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sampath bank Paycorp payment gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.53 | 1.83 ▼0.02 | 43.50 ▲1.96 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.09 | 81.23 ▼12.77 | 39.96 ▼4.87 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.96 ▼0.07 | 37.03 ▼5.24 | 33.83 ▼3.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.30 ▲0.35 | 682.32 ▲14.26 | 66.54 ▲12.54 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.12 ▼0.09 | 101.01 ▼5.60 | 41.51 ▼4.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BaseFacade' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.facade/Payment.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/BasicReportJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/UpdateCardJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Class 'BaseFacade' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.facade/Report.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/AmexWalletInitJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/VerifyTokenJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/RetrieveCardJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/PaymentCompleteJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IJsonHelper' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.helpers/DeleteTokenJsonHelper.php:3
- > PHP Fatal error
Uncaught Error: Class 'BaseFacade' not found in wp-content/plugins/sampath-bank-paycorp-payment-gateway/au.com.gateway.client.facade/AmexWallet.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
sampath-bank-paycorp-payment-gateway/sampath-bank-paycorp-payment-gateway-woocommerce.php 92% from 13 tests
This is the main PHP file of "Sampath bank Paycorp payment gateway" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sampath-bank-paycorp-payment-gateway.php" instead of "sampath-bank-paycorp-payment-gateway-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,149 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 1,013 | 36 | 3,149 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 1 | 1.41% |
▷ Concrete classes | 70 | 98.59% |
▷ Final classes | 4 | 5.71% |
Methods | 599 | |
▷ Static methods | 3 | 0.50% |
▷ Public methods | 588 | 98.16% |
▷ Protected methods | 2 | 0.33% |
▷ Private methods | 9 | 1.50% |
Functions | 3 | |
▷ Named functions | 3 | 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