Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.55ms] Passed 4 tests
An overview of server-side resources used by Add Himalayan Bank Payment In WooCommerce (HBL Payment)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 40.47 ▼1.45 |
Dashboard /wp-admin | 3.35 ▼0.04 | 48.80 ▼19.03 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 47.30 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 83.43 ▼8.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 40.17 ▲2.72 |
Server storage [IO: ▲9.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3,047 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Add Himalayan Bank Payment In WooCommerce (HBL Payment)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.59 ▼0.19 | 42.88 ▼2.54 |
Dashboard /wp-admin | 2,186 ▲9 | 5.50 ▼0.17 | 85.14 ▼5.56 | 40.26 ▲0.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.05 | 34.87 ▼2.30 | 35.78 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▲0.10 | 690.66 ▼19.64 | 56.43 ▲7.43 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.11 ▼0.08 | 109.89 ▲5.15 | 48.48 ▲1.17 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/error-handler/Resources/assets/images/symfony-ghost.svg.php
- > /wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/error-handler/Resources/views/logs.html.php
- > /wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/error-handler/Resources/views/trace.html.php
- > /wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/http-kernel/Resources/welcome.html.php
- 1248× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Safe\\Exceptions\\SafeExceptionInterface' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/thecodingmachine/safe/generated/Exceptions/HashException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\RuntimeException' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Jose\\Bundle\\JoseFramework\\DependencyInjection\\Source\\Source' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/src/Bundle/JoseFramework/DependencyInjection/Source/NestedToken/NestedToken.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Exception\\RequestExceptionInterface' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/http-foundation/Exception/SessionNotFoundException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Jose\\Component\\Console\\GeneratorCommand' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/src/Component/Console/OctKeyGeneratorCommand.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/translation/Exception/InvalidArgumentException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\BadMethodCallException' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/tests/EncryptionAlgorithm/Experimental/RSAOAEPKeyEncryptionTest.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Config\\Resource\\ResourceInterface' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/config/Resource/SelfCheckingResourceInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Config\\Definition\\Exception\\Exception' not found in wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/config/Definition/Exception/InvalidDefinitionException.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #2 in hbl-payment-for-woocommerce/assets to your readme.txt
hbl-payment-for-woocommerce/hbl-payment-for-woocommerce.php Passed 13 tests
"Add Himalayan Bank Payment In WooCommerce (HBL Payment)" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Accept payment from Himalayan Bank in your online store
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/bin/carbon.bat
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/nesbot/carbon/bin/carbon.bat
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/bin/patch-type-declarations.bat
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/bin/var-dump-server.bat
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/tests/Component/KeyManagement/Chain/google.crt
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/tests/Component/Console/Sample/google.crt
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/web-token/jwt-framework/tests/Bundle/JoseFramework/config/keys/google.crt
- .exe - Executable in Windows
- ☣ wp-content/plugins/hbl-payment-for-woocommerce/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,431 | 32,444 | 95,075 | 155,935 |
JSON | 65 | 2 | 0 | 5,560 |
XSD | 4 | 121 | 50 | 3,163 |
Markdown | 80 | 1,090 | 0 | 2,879 |
Twig | 25 | 12 | 0 | 1,063 |
CSS | 4 | 28 | 5 | 481 |
YAML | 17 | 41 | 0 | 418 |
JavaScript | 2 | 38 | 15 | 254 |
Bourne Again Shell | 1 | 10 | 14 | 60 |
DOS Batch | 4 | 0 | 0 | 19 |
SVG | 9 | 0 | 0 | 9 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 152)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 10.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 582.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 152.00 |
Code structure | ||
---|---|---|
Namespaces | 241 | |
Interfaces | 180 | |
Traits | 58 | |
Classes | 1,389 | |
▷ Abstract classes | 87 | 6.26% |
▷ Concrete classes | 1,302 | 93.74% |
▷ Final classes | 299 | 22.96% |
Methods | 8,838 | |
▷ Static methods | 1,093 | 12.37% |
▷ Public methods | 7,103 | 80.37% |
▷ Protected methods | 778 | 8.80% |
▷ Private methods | 957 | 10.83% |
Functions | 1,766 | |
▷ Named functions | 1,282 | 72.59% |
▷ Anonymous functions | 484 | 27.41% |
Constants | 602 | |
▷ Global constants | 20 | 3.32% |
▷ Class constants | 582 | 96.68% |
▷ Public constants | 470 | 80.76% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin