Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼295.68ms] Passed 4 tests
An overview of server-side resources used by Aditum Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 60.64 ▼0.06 |
Dashboard /wp-admin | 3.52 ▲0.11 | 37.56 ▼34.99 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 43.41 ▲3.74 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.02 | 100.86 ▼1,150.86 |
Media Library /wp-admin/upload.php | 3.40 ▲0.11 | 28.27 ▲3.18 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 206 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Aditum Gateway: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.87 ▲0.52 | 6.30 ▼0.20 | 2.88 ▲0.30 |
Dashboard /wp-admin | 2,895 ▲41 | 5.99 ▼0.20 | 127.22 ▼10.63 | 210.17 ▲43.90 |
Posts /wp-admin/edit.php | 2,657 ▼36 | 3.24 ▲0.01 | 64.16 ▼26.08 | 145.79 ▼47.03 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 20.45 ▼2.26 | 454.48 ▲55.98 | 179.13 ▲2.81 |
Media Library /wp-admin/upload.php | 1,698 ▲9 | 5.51 ▼0.01 | 185.06 ▲47.99 | 204.62 ▲20.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
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 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorHTML.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/aditum-gateway/classes/AditumBoleto.class.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeEanUpcBase.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeUpcExtension2.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeCode11.php:14
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeEanUpcBase' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeEan8.php:15
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Exceptions\\BarcodeException' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidFormatException.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aditum-gateway/vendor/aditum-payments/aditum-api-sdk-php/tests/ConfigurationTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeCode93.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeCode128.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in aditum-gateway/assets to your readme.txt
aditum-gateway/aditum-payment.php 69% from 13 tests
The main PHP script in "Aditum Gateway" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("aditum-gateway.php" instead of "aditum-payment.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,160 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,307 | 890 | 6,216 |
SVG | 51 | 0 | 1 | 1,821 |
Markdown | 14 | 303 | 0 | 833 |
JavaScript | 3 | 91 | 83 | 727 |
JSON | 4 | 0 | 0 | 230 |
HTML | 4 | 0 | 0 | 194 |
CSS | 1 | 1 | 0 | 83 |
XML | 2 | 0 | 0 | 34 |
YAML | 2 | 9 | 0 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 13 | 14.61% |
▷ Concrete classes | 76 | 85.39% |
▷ Final classes | 0 | 0.00% |
Methods | 283 | |
▷ Static methods | 30 | 10.60% |
▷ Public methods | 259 | 91.52% |
▷ Protected methods | 21 | 7.42% |
▷ Private methods | 3 | 1.06% |
Functions | 20 | |
▷ Named functions | 5 | 25.00% |
▷ Anonymous functions | 15 | 75.00% |
Constants | 108 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 108 | 100.00% |
▷ Public constants | 107 | 99.07% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/screenshot-3.png | 21.52KB | 8.71KB | ▼ 59.50% |
assets/icon.png | 65.94KB | 22.29KB | ▼ 66.20% |
docs/screenshot-0.png | 54.84KB | 20.86KB | ▼ 61.96% |
docs/screenshot-1.png | 12.91KB | 6.00KB | ▼ 53.51% |
docs/screenshot-2.png | 12.20KB | 5.32KB | ▼ 56.40% |