Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/nlb-payment-gateway-for-woocommerce/tebank-files/e24PaymentPipe.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; e24PaymentPipe has a deprecated constructor
Server metrics [RAM: ▼1.69MB] [CPU: ▼53.86ms] Passed 4 tests
An overview of server-side resources used by NLB Payment Gateway For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 4.64 ▼40.71 |
Dashboard /wp-admin | 2.32 ▼0.99 | 6.46 ▼47.18 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 6.64 ▼40.54 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 7.04 ▼86.99 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 5.50 ▼27.96 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by NLB Payment Gateway For Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.19 ▼1.16 | 1.93 ▼0.17 | 47.09 ▲4.68 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 110.43 ▲8.33 | 43.60 ▲2.61 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 41.54 ▲4.53 | 34.03 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.45 ▲0.18 | 600.01 ▼62.41 | 59.28 ▲2.79 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.28 ▲0.07 | 94.28 ▼9.31 | 42.78 ▼0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/nlb-payment-gateway-for-woocommerce/tebank-files/e24PaymentPipe.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; e24PaymentPipe has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Json\\ResponseObject' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/trunk/bankar-files/src/CustomerProfile/DeleteProfileResponse.php:13
- > PHP Fatal error
Uncaught Error: Interface 'PaymentGateway\\Client\\Http\\ResponseInterface' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/bankar-files/src/Http/Response.php:12
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/trunk/classes/class-woocomemrce-nlb-payment-bankar.php:9
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Data\\Customer' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/bankar-files/src/Data/IbanCustomer.php:13
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Transaction\\Base\\AbstractTransactionWithReference' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/trunk/bankar-files/src/Transaction/Refund.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/classes/class-woocomemrce-nlb-payment-bankar.php:9
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Data\\Customer' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/trunk/bankar-files/src/Data/CreditCardCustomer.php:10
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Exception\\ClientException' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/bankar-files/src/Exception/TypeException.php:10
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Json\\DataObject' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/bankar-files/src/CustomerProfile/CustomerData.php:29
- > PHP Fatal error
Uncaught Error: Class 'PaymentGateway\\Client\\Data\\Result\\ResultData' not found in wp-content/plugins/nlb-payment-gateway-for-woocommerce/bankar-files/src/Data/Result/CreditcardData.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
nlb-payment-gateway-for-woocommerce/nlb-payment-gateway-for-woocommerce.php 92% from 13 tests
The primary PHP file in "NLB Payment Gateway For Woocommerce" version 2.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/i18n/languages/" does not exist
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
No dangerous file extensions were detected6,208 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,620 | 4,244 | 6,159 |
Markdown | 1 | 17 | 0 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 14 | |
Traits | 10 | |
Classes | 122 | |
▷ Abstract classes | 8 | 6.56% |
▷ Concrete classes | 114 | 93.44% |
▷ Final classes | 0 | 0.00% |
Methods | 1,456 | |
▷ Static methods | 18 | 1.24% |
▷ Public methods | 1,358 | 93.27% |
▷ Protected methods | 64 | 4.40% |
▷ Private methods | 34 | 2.34% |
Functions | 18 | |
▷ Named functions | 14 | 77.78% |
▷ Anonymous functions | 4 | 22.22% |
Constants | 334 | |
▷ Global constants | 4 | 1.20% |
▷ Class constants | 330 | 98.80% |
▷ Public constants | 330 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.53MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gateway-tebank-checkout.png | 26.87KB | 7.27KB | ▼ 72.95% |
screenshots/gateway-tebank-checkout.png | 26.87KB | 7.27KB | ▼ 72.95% |
gateway-tebank-settings.png | 108.51KB | 29.27KB | ▼ 73.03% |
trunk/screenshots/gateway-tebank-checkout.png | 26.87KB | 7.27KB | ▼ 72.95% |
trunk/screenshots/gateway-tebank-settings.png | 108.51KB | 29.27KB | ▼ 73.03% |