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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼320.22ms] Passed 4 tests
A check of server-side resources used by QR Code Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.22 | 68.33 ▲4.39 |
Dashboard /wp-admin | 3.57 ▲0.16 | 35.13 ▲0.26 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 41.03 ▲1.03 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 94.96 ▼1,283.56 |
Media Library /wp-admin/upload.php | 3.51 ▲0.21 | 27.16 ▲1.40 |
QRCode Payment /wp-admin/admin.php?page=woo-subpage-qrcode | 3.41 | 74.82 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 603 new files
Database: no new tables, 2 new options
New WordPress options |
---|
bs_qrcode_promotion_text |
bs_qrcode_title |
Browser metrics Passed 4 tests
A check of browser resources used by QR Code Payment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,765 ▲11 | 15.77 ▲0.07 | 6.31 ▲0.37 | 2.25 ▼0.63 |
Dashboard /wp-admin | 2,895 ▲51 | 6.10 ▼0.03 | 127.16 ▼16.65 | 158.90 ▼54.12 |
Posts /wp-admin/edit.php | 2,685 ▼9 | 3.24 ▲0.01 | 62.02 ▼3.06 | 147.18 ▲4.50 |
Add New Post /wp-admin/post-new.php | 1,687 ▲26 | 19.68 ▲4.17 | 411.51 ▼12.33 | 170.45 ▼4.52 |
Media Library /wp-admin/upload.php | 1,698 ▲4 | 5.45 ▼0.09 | 146.54 ▼38.12 | 202.20 ▲15.56 |
QRCode Payment /wp-admin/admin.php?page=woo-subpage-qrcode | 1,061 | 2.38 | 56.39 | 103.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 16× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_lax.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/empty_destroys.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_strict.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/storage.php
- > /wp-content/plugins/qr-code-payment/qrcode-payment.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_cookie.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/invalid_cookie_name.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_samesite.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_urlencode.php
- > /wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/regenerate.php
- 311× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\PropertyAccess\\Exception\\ExceptionInterface' not found in wp-content/plugins/qr-code-payment/vendor/symfony/property-access/Exception/OutOfBoundsException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException' not found in wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/File/Exception/CannotWriteFileException.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/Session/Storage/MockFileSessionStorageTest.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Mime\\Header\\AbstractHeader' not found in wp-content/plugins/qr-code-payment/vendor/symfony/mime/Header/MailboxHeader.php:25
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\LuminanceSource' not found in wp-content/plugins/qr-code-payment/vendor/khanamiryan/qrcode-detector-decoder/lib/RGBLuminanceSource.php:27
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Module\\ModuleInterface' not found in wp-content/plugins/qr-code-payment/vendor/bacon/bacon-qr-code/src/Renderer/Module/DotsModule.php:13
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/BinaryFileResponse.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Exception\\RequestExceptionInterface' not found in wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Exception/ConflictingHeadersException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Mime\\Tests\\AbstractMimeTypeGuesserTest' not found in wp-content/plugins/qr-code-payment/vendor/symfony/mime/Tests/FileinfoMimeTypeGuesserTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Tests\\ResponseTestCase' not found in wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/ResponseTest.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: qrcode payment, payment, qrcode
qr-code-payment/qrcode-payment.php 85% from 13 tests
The primary PHP file in "QR Code Payment" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("qr-code-payment.php" instead of "qrcode-payment.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .xlsm - Excel Macro-Enabled Workbook in Microsoft Excel
- ☣ wp-content/plugins/qr-code-payment/vendor/symfony/http-foundation/Tests/File/Fixtures/case-sensitive-mime-type.xlsm
- .xlsm - Excel Macro-Enabled Workbook in Microsoft Excel
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 484 | 9,846 | 16,041 | 46,106 |
JSON | 17 | 0 | 0 | 1,387 |
Markdown | 22 | 245 | 0 | 838 |
XML | 11 | 36 | 3 | 410 |
Pascal | 2 | 41 | 74 | 79 |
YAML | 4 | 22 | 0 | 71 |
PO File | 1 | 12 | 13 | 26 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 219.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 85 | |
Interfaces | 37 | |
Traits | 0 | |
Classes | 437 | |
▷ Abstract classes | 19 | 4.35% |
▷ Concrete classes | 418 | 95.65% |
▷ Final classes | 149 | 35.65% |
Methods | 3,605 | |
▷ Static methods | 305 | 8.46% |
▷ Public methods | 3,179 | 88.18% |
▷ Protected methods | 168 | 4.66% |
▷ Private methods | 258 | 7.16% |
Functions | 280 | |
▷ Named functions | 72 | 25.71% |
▷ Anonymous functions | 208 | 74.29% |
Constants | 309 | |
▷ Global constants | 44 | 14.24% |
▷ Class constants | 265 | 85.76% |
▷ Public constants | 163 | 61.51% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/endroid/qr-code/assets/images/symfony.png | 15.90KB | 16.60KB | 0.00% |
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/hello_world.png | 3.05KB | 0.24KB | ▼ 92.25% |