Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.31ms] Passed 4 tests
Server-side resources used by Alma - Pay in installments or later for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.95 ▼0.91 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.02 ▼18.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.71 ▼10.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.56 ▼15.57 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.92 ▲0.25 |
Server storage [IO: ▲3.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 225 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Alma - Pay in installments or later for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.13 | 1.82 ▲0.26 | 38.22 ▲2.82 |
Dashboard /wp-admin | 2,195 ▲17 | 5.54 ▼0.09 | 83.67 ▼35.00 | 39.67 ▼7.65 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.00 | 35.41 ▼1.36 | 36.62 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.53 ▲0.39 | 682.38 ▲14.61 | 55.38 ▲3.58 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.14 ▼0.03 | 99.08 ▼14.95 | 45.71 ▼1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 28× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-payment-upon-trigger.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/helpers/class-alma-cart-helper.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-checkout.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-refund.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-cart-handler.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/admin/helpers/class-alma-form-fields-helper.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-product-handler.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/admin/helpers/class-alma-form-helper.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/includes/class-alma-logger.php
- > /wp-content/plugins/alma-gateway-for-woocommerce/tests/bootstrap.php
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/alma-gateway-for-woocommerce/public/templates/alma-checkout-no-plans.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Unit/PHP8_1/ClientOptionsValidatorTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Integration/PHP8_1/Endpoints/PaymentsTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Alma\\API\\Entities\\Base' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/src/Entities/Refund.php:28
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Unit/PHP7_2/ClientOptionsValidatorTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Integration/PHP7_0/Endpoints/PaymentsTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Unit/PHP8_1/RequestErrorTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/tests/Unit/Legacy/Endpoints/PaymentsTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Alma\\API\\Entities\\Base' not found in wp-content/plugins/alma-gateway-for-woocommerce/vendor/alma/alma-php-client/src/Entities/Webhook.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/alma-gateway-for-woocommerce/public/templates/alma-checkout-plans-in-page.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0 in alma-gateway-for-woocommerce/assets to your readme.txt
alma-gateway-for-woocommerce/alma-gateway-for-woocommerce.php Passed 13 tests
"Alma - Pay in installments or later for WooCommerce" version 5.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Install Alma and boost your sales! It's simple and guaranteed, your cash flow is secured. 0 commitment, 0 subscription, 0 risk.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin31,779 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 3,673 | 1,409 | 16,556 |
PHP | 155 | 2,491 | 6,677 | 10,400 |
PO File | 7 | 1,197 | 1,680 | 2,905 |
CSS | 4 | 102 | 10 | 701 |
Markdown | 5 | 158 | 0 | 502 |
JSON | 4 | 0 | 0 | 225 |
INI | 1 | 363 | 1,495 | 172 |
XML | 5 | 32 | 42 | 114 |
SVG | 16 | 0 | 0 | 102 |
YAML | 3 | 11 | 2 | 51 |
make | 1 | 10 | 3 | 22 |
Dockerfile | 1 | 7 | 9 | 17 |
Bourne Shell | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 3 | |
Traits | 3 | |
Classes | 133 | |
▷ Abstract classes | 2 | 1.50% |
▷ Concrete classes | 131 | 98.50% |
▷ Final classes | 4 | 3.05% |
Methods | 725 | |
▷ Static methods | 93 | 12.83% |
▷ Public methods | 626 | 86.34% |
▷ Protected methods | 54 | 7.45% |
▷ Private methods | 45 | 6.21% |
Functions | 18 | |
▷ Named functions | 4 | 22.22% |
▷ Anonymous functions | 14 | 77.78% |
Constants | 98 | |
▷ Global constants | 8 | 8.16% |
▷ Class constants | 90 | 91.84% |
▷ Public constants | 90 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected