Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.32MB] [CPU: ▼57.94ms] Passed 4 tests
A check of server-side resources used by QR Code Management
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.73 | 17.68 ▼38.64 |
Dashboard /wp-admin | 2.82 ▼0.48 | 18.74 ▼39.98 |
Posts /wp-admin/edit.php | 2.82 ▼1.02 | 19.19 ▼33.78 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 17.08 ▼119.36 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 16.21 ▼20.77 |
Add New /wp-admin/post-new.php?post_type=rwcqrcm | 2.82 | 19.21 |
QR code list /wp-admin/edit.php?post_type=rwcqrcm | 2.83 | 12.69 |
Setting /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting | 2.83 | 16.09 |
Server storage [IO: ▲22.27MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 504 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
rwc_qrcm_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for QR Code Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲258 | 15.06 ▲0.62 | 1.91 ▼0.05 | 40.47 ▼4.69 |
Dashboard /wp-admin | 2,416 ▲213 | 6.69 ▲1.76 | 143.73 ▲25.48 | 42.46 ▼1.71 |
Posts /wp-admin/edit.php | 2,324 ▲224 | 3.72 ▲1.69 | 59.63 ▲21.28 | 37.18 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,579 ▲31 | 23.60 ▲0.76 | 680.56 ▲73.63 | 36.44 ▼12.38 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.54 ▲0.30 | 94.61 ▼6.74 | 44.75 ▼1.97 |
Add New /wp-admin/post-new.php?post_type=rwcqrcm | 1,611 | 3.76 | 68.20 | 31.65 |
QR code list /wp-admin/edit.php?post_type=rwcqrcm | 1,286 | 3.81 | 56.04 | 28.35 |
Setting /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting | 2,117 | 3.84 | 78.96 | 78.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/qr-code-management/includes/Qrcode.php+45
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- rwc_qrcm_db_version
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/includes/Qrcode.php+778
Trying to access array offset on value of type bool
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/includes/Qrcode.php+45
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+143
Undefined variable: rwcqrcm_qrsettings_logo
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+266
Undefined variable: rwcqrcm_qrsettings_background_image
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+46
Undefined variable: rwcqrcm_qrsettings_individual
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+58
Undefined variable: rwcqrcm_qrsettings_margin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+83
Undefined variable: rwcqrcm_qrsettings_correction_level
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+96
Undefined variable: rwcqrcm_qrsettings_label
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+108
Undefined variable: rwcqrcm_qrsettings_size_width
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+118
Undefined variable: rwcqrcm_qrsettings_color
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+128
Undefined variable: rwcqrcm_qrsettings_background_color
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+180
Undefined variable: rwcqrcm_qrsettings_logo_width
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+182
Undefined variable: rwcqrcm_qrsettings_logo_height
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+207
Undefined variable: rwcqrcm_qrsettings_background_image_has_value
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+242
Undefined variable: rwcqrcm_qrsettings_background_image_edit
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+313
Undefined variable: rwcqrcm_qrsettings_background_image_edit_rad
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+276
Undefined variable: rwcqrcm_qrsettings_background_image_edit_topText
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+260
Undefined variable: rwcqrcm_qrsettings_background_image_edit_topTextType
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+283
Undefined variable: rwcqrcm_qrsettings_background_image_edit_bottomText
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+297
Undefined variable: rwcqrcm_qrsettings_background_image_edit_fontSize
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+290
Undefined variable: rwcqrcm_qrsettings_background_image_edit_fontFamiry
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+305
Undefined variable: rwcqrcm_qrsettings_background_image_edit_fontColor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Notice in wp-content/plugins/qr-code-management/templates/meta-box-qrcode-settings.php+332
Undefined variable: rwcqrcm_qrsettings_background_image_edit_qrcodeSize
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/qr-code-management/vendor/symfony/mime/Resources/bin/update_mime_types.php
- 254× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Mime\\Encoder\\ContentEncoderInterface' not found in wp-content/plugins/qr-code-management/vendor/symfony/mime/Encoder/EightBitContentEncoder.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Mime\\Exception\\ExceptionInterface' not found in wp-content/plugins/qr-code-management/vendor/symfony/mime/Exception/InvalidArgumentException.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/qr-code-management/vendor/endroid/qr-code/src/Response/QrCodeResponse.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Mime\\Part\\DataPart' not found in wp-content/plugins/qr-code-management/vendor/symfony/mime/Part/MessagePart.php:22
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Writer\\AbstractWriter' not found in wp-content/plugins/qr-code-management/vendor/endroid/qr-code/src/Writer/SvgWriter.php:20
- > PHP Fatal error
Uncaught Error: Interface 'DASPRiD\\Enum\\Exception\\ExceptionInterface' not found in wp-content/plugins/qr-code-management/vendor/dasprid/enum/src/Exception/SerializeNotSupportedException.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qr-code-management/vendor/dasprid/enum/test/NullValueTest.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Mime\\Encoder\\ContentEncoderInterface' not found in wp-content/plugins/qr-code-management/vendor/symfony/mime/Encoder/QpContentEncoder.php:17
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\ResultPoint' not found in wp-content/plugins/qr-code-management/vendor/khanamiryan/qrcode-detector-decoder/lib/Qrcode/Detector/AlignmentPattern.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\RoundBlockSizeMode\\RoundBlockSizeModeInterface' not found in wp-content/plugins/qr-code-management/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeShrink.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/qr-code-management/assets/js/uploader.js?ver=1618563364:41:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'getContext')" "TypeError: Cannot read properties of null (reading 'getContext')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/qr-code-management/assets/js/use_qrcodeeditor.js?ver=1618563364:5:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'getContext')
- > GET request to /wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=rwcqrcm&page=rwcqrcm-setting 535:29 Uncaught SyntaxError: Unexpected token ','
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: qrcode, eps, jpeg, qr code, jpg...
qr-code-management/qr-code-management.php 92% from 13 tests
The primary PHP file in "QR Code Management" version 1.5.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin38,788 lines of code in 473 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 419 | 7,532 | 13,673 | 35,690 |
JSON | 15 | 0 | 0 | 1,311 |
Markdown | 20 | 237 | 0 | 814 |
JavaScript | 7 | 40 | 153 | 269 |
PO File | 1 | 278 | 530 | 262 |
Sass | 1 | 42 | 0 | 173 |
CSS | 1 | 21 | 7 | 111 |
XML | 5 | 6 | 3 | 85 |
YAML | 4 | 10 | 0 | 73 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 232.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 80 | |
Interfaces | 51 | |
Traits | 0 | |
Classes | 355 | |
▷ Abstract classes | 16 | 4.51% |
▷ Concrete classes | 339 | 95.49% |
▷ Final classes | 190 | 56.05% |
Methods | 2,488 | |
▷ Static methods | 314 | 12.62% |
▷ Public methods | 2,136 | 85.85% |
▷ Protected methods | 108 | 4.34% |
▷ Private methods | 244 | 9.81% |
Functions | 101 | |
▷ Named functions | 70 | 69.31% |
▷ Anonymous functions | 31 | 30.69% |
Constants | 313 | |
▷ Global constants | 42 | 13.42% |
▷ Class constants | 271 | 86.58% |
▷ Public constants | 164 | 60.52% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/endroid/qr-code/tests/assets/symfony.png | 15.90KB | 16.60KB | 0.00% |
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/hello_world.png | 3.05KB | 0.24KB | ▼ 92.25% |
assets/images/sample_bg.png | 40.07KB | 17.40KB | ▼ 56.58% |
vendor/endroid/qr-code/assets/images/symfony.png | 15.90KB | 16.60KB | 0.00% |
assets/images/sample_qrcode.png | 3.49KB | 0.40KB | ▼ 88.52% |