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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.96ms] Passed 4 tests
Analyzing server-side resources used by Aditum Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.97 ▼2.91 |
Dashboard /wp-admin | 3.42 ▲0.07 | 49.23 ▼13.58 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.60 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.06 ▼17.26 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.48 ▲1.90 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Aditum Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.54 ▲0.20 | 1.65 ▼0.50 | 36.61 ▼6.80 |
Dashboard /wp-admin | 2,198 ▲20 | 5.65 ▼0.07 | 90.07 ▼25.29 | 38.71 ▼6.66 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.05 | 38.16 ▲1.44 | 35.56 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.42 ▲0.14 | 573.00 ▼55.37 | 55.51 ▲7.11 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.25 ▲0.06 | 95.60 ▼0.01 | 43.06 ▲2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 81× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeUpcExtension2' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeUpcExtension5.php:11
- > 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\\Exceptions\\BarcodeException' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Exceptions/UnknownTypeException.php:5
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/generate-verified-files.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeCode39' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/src/Types/TypeCode39Extended.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/tests/PharmacodeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/aditum-gateway/vendor/picqer/php-barcode-generator/tests/VerifiedBarcodeTest.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/aditum-gateway/templates/thankyou/aditum_pix.php on line 5
- > 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/TypeCodabar.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in aditum-gateway/assets to your readme.txt
aditum-gateway/aditum-payment.php 69% from 13 tests
The principal PHP file in "Aditum Gateway" v. 1.4.6 is loaded by WordPress automatically on each request
It is important to fix the following:
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("aditum-gateway.php" instead of "aditum-payment.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.2")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.2")
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
Everything looks great! No dangerous files found in this plugin10,838 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 1,355 | 1,213 | 6,819 |
SVG | 52 | 0 | 1 | 1,824 |
Markdown | 14 | 318 | 0 | 848 |
JavaScript | 4 | 92 | 94 | 778 |
JSON | 4 | 0 | 0 | 230 |
HTML | 4 | 0 | 0 | 194 |
CSS | 1 | 1 | 0 | 89 |
XML | 2 | 0 | 0 | 34 |
YAML | 2 | 9 | 0 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 93 | |
▷ Abstract classes | 13 | 13.98% |
▷ Concrete classes | 80 | 86.02% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 36 | 11.84% |
▷ Public methods | 279 | 91.78% |
▷ Protected methods | 21 | 6.91% |
▷ Private methods | 4 | 1.32% |
Functions | 20 | |
▷ Named functions | 5 | 25.00% |
▷ Anonymous functions | 15 | 75.00% |
Constants | 109 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 109 | 100.00% |
▷ Public constants | 108 | 99.08% |
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
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-0.png | 54.84KB | 20.86KB | ▼ 61.96% |
assets/icon.png | 65.94KB | 22.29KB | ▼ 66.20% |
docs/screenshot-3.png | 21.52KB | 8.71KB | ▼ 59.50% |
docs/screenshot-1.png | 12.91KB | 6.00KB | ▼ 53.51% |
docs/screenshot-2.png | 12.20KB | 5.32KB | ▼ 56.40% |