Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/fintecture-payment-gateway/includes/fix-for-php-scoper.php+9
Uncaught Error: Call to undefined function WC() in wp-content/plugins/fintecture-payment-gateway/includes/fix-for-php-scoper.php:9
Stack trace:
#0 wp-content/plugins/fintecture-payment-gateway/includes/stats.php(15): FintectureWC\get_wc_instance()
#1 wp-content/plugins/fintecture-payment-gateway/fintecture-payment-gateway.php(101): FintectureWC\fintectureSystemInfos()
#2 wp-includes/class-wp-hook.php(310): FintectureWC\WC_Fintecture_Main::install()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.23ms] Passed 4 tests
This is a short check of server-side resources used by Pay by Immediate Transfer (by Fintecture)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.16 ▼7.37 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.12 ▼15.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.58 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.43 ▼4.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.00 ▲1.10 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 290 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Pay by Immediate Transfer (by Fintecture)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲39 | 14.23 ▼0.47 | 1.64 ▼0.21 | 37.87 ▼7.22 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.00 | 97.42 ▼0.32 | 43.96 ▼1.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.02 | 41.26 ▲4.81 | 35.29 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.34 ▲0.17 | 672.54 ▼16.64 | 49.54 ▼8.19 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.00 | 99.41 ▲1.75 | 41.98 ▼2.18 |
Uninstaller [IO: ▲2.01MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsThis plugin did not uninstall successfully, leaving 7 options in the database
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/fintecture-payment-gateway/includes/fix-for-php-scoper.php+9
Uncaught Error: Call to undefined function WC() in wp-content/plugins/fintecture-payment-gateway/includes/fix-for-php-scoper.php:9
Stack trace:
#0 wp-content/plugins/fintecture-payment-gateway/includes/stats.php(15): FintectureWC\get_wc_instance()
#1 wp-content/plugins/fintecture-payment-gateway/fintecture-payment-gateway.php(137): FintectureWC\fintectureSystemInfos()
#2 wp-includes/class-wp-hook.php(310): FintectureWC\WC_Fintecture_Main::uninstall()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/includes/plugin.php(1269): do_action()
#6 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 290 files (2.01MB) in the plugin directory
- (new file) assets/img/admin/checkout_design/fr/it-st-short-design.svg
- (new file) assets/img/admin/checkout_design/fr/it-st-long-design.svg
- (new file) assets/css/wc-gateway-settings.css
- (new file) assets/img/admin/checkout_design/en/it-st-short-design.svg
- (new file) assets/img/admin/checkout_design/en/it-st-long-design.svg
- (new file) assets/img/admin/checkout_design/en/it-design.svg
- (new file) assets/img/arrow_bottom.png
- (new file) LICENSE.txt
- (new file) assets/css/shop.css
- (new file) assets/img/admin/checkout_design/fr/it-design.svg
- ...
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 170× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'FintectureWC\\Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/fintecture-payment-gateway/vendor/psr/http-message/src/RequestInterface.php:25
- > PHP Notice
Undefined variable: imgPath in wp-content/plugins/fintecture-payment-gateway/views/checkout-description.php on line 33
- > PHP Fatal error
Uncaught Error: Interface 'FintectureWC\\Http\\Discovery\\Exception' not found in wp-content/plugins/fintecture-payment-gateway/vendor/php-http/discovery/src/Exception/ClassInstantiationFailedException.php:12
- > PHP Fatal error
Uncaught Error: Class 'FintectureWC\\Fintecture\\Api\\Api' not found in wp-content/plugins/fintecture-payment-gateway/vendor/fintecture/fintecture-sdk-php/src/Api/Pis/RequestForPayout.php:10
- > PHP Fatal error
Uncaught Error: Class 'FintectureWC\\GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/fintecture-payment-gateway/vendor/guzzlehttp/psr7/src/ServerRequest.php:26
- > PHP Fatal error
Uncaught Error: Class 'FintectureWC\\GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/fintecture-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'FintectureWC\\Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/fintecture-payment-gateway/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Uncaught Error: Class 'FintectureWC\\Fintecture\\Api\\Api' not found in wp-content/plugins/fintecture-payment-gateway/vendor/fintecture/fintecture-sdk-php/src/Api/Pis/Connect.php:10
- > PHP Fatal error
Uncaught Error: Interface 'FintectureWC\\GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/fintecture-payment-gateway/vendor/guzzlehttp/promises/src/EachPromise.php:13
- > PHP Fatal error
Uncaught Error: Class 'FintectureWC\\Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/fintecture-payment-gateway/vendor/php-http/discovery/src/HttpClientDiscovery.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 (21 tag instead of maximum 10)
fintecture-payment-gateway/fintecture-payment-gateway.php Passed 13 tests
The primary PHP file in "Pay by Immediate Transfer (by Fintecture)" version 3.8.3 is used by WordPress to initiate all plugin functionality
90 characters long description:
Extends WooCommerce by enabling users to pay securely and directly from their bank account
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,669 lines of code in 282 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 256 | 627 | 8,970 | 14,293 |
JSON | 3 | 0 | 0 | 1,051 |
JavaScript | 1 | 28 | 4 | 189 |
CSS | 2 | 15 | 0 | 68 |
SVG | 17 | 0 | 0 | 30 |
Dockerfile | 1 | 6 | 2 | 17 |
XML | 1 | 0 | 0 | 14 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 10.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 32 | |
Traits | 7 | |
Classes | 181 | |
▷ Abstract classes | 4 | 2.21% |
▷ Concrete classes | 177 | 97.79% |
▷ Final classes | 75 | 42.37% |
Methods | 1,185 | |
▷ Static methods | 223 | 18.82% |
▷ Public methods | 990 | 83.54% |
▷ Protected methods | 28 | 2.36% |
▷ Private methods | 167 | 14.09% |
Functions | 151 | |
▷ Named functions | 51 | 33.77% |
▷ Anonymous functions | 100 | 66.23% |
Constants | 81 | |
▷ Global constants | 2 | 2.47% |
▷ Class constants | 79 | 97.53% |
▷ Public constants | 64 | 81.01% |
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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/arrow_top.png | 0.26KB | 0.22KB | ▼ 12.21% |
assets/img/arrow_bottom.png | 0.27KB | 0.24KB | ▼ 11.55% |