Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼0.50ms] Passed 4 tests
An overview of server-side resources used by Link QR Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.97 ▲0.80 |
Dashboard /wp-admin | 3.59 ▲0.28 | 53.85 ▲1.83 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.50 ▲0.84 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.35 | 110.34 ▲17.61 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.76 ▼5.49 |
QR Code Settings /wp-admin/options-general.php?page=sqhrqrcsp-settings | 3.45 | 41.50 |
Server storage [IO: ▲18.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 461 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
sqhrqrcsp_settings |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Link QR Code: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.91 ▼0.33 | 1.89 ▲0.24 | 40.16 ▼3.09 |
Dashboard /wp-admin | 2,199 ▲19 | 5.66 ▲0.06 | 84.43 ▼11.30 | 37.09 ▼4.01 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.04 | 36.40 ▼2.42 | 34.96 ▼8.09 |
Add New Post /wp-admin/post-new.php | 6,223 ▲4,697 | 25.89 ▲2.81 | 865.81 ▲214.46 | 63.02 ▼1.37 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.25 ▼0.01 | 102.00 ▼26.55 | 42.13 ▼5.38 |
QR Code Settings /wp-admin/options-general.php?page=sqhrqrcsp-settings | 1,126 | 4.27 | 71.06 | 27.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- sqhrqrcsp_settings
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/link-qr-code/views/metabox-qrcode.php
- > /wp-content/plugins/link-qr-code/vendor/wp-user-manager/wp-optionskit/includes/views/settings-page.php
- 231× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/link-qr-code/vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/link-qr-code/vendor/bacon/bacon-qr-code/test/Common/BitMatrixTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/link-qr-code/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/link-qr-code/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\QrCodeInterface' not found in wp-content/plugins/link-qr-code/vendor/endroid/qr-code/src/QrCode.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface' not found in wp-content/plugins/link-qr-code/vendor/symfony/property-info/Extractor/ReflectionExtractor.php:33
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/link-qr-code/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Writer\\AbstractWriter' not found in wp-content/plugins/link-qr-code/vendor/endroid/qr-code/src/Writer/FpdfWriter.php:18
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Renderer\\Eye\\EyeInterface' not found in wp-content/plugins/link-qr-code/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php:11
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/link-qr-code/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: qr, qrcode, scan, link
link-qr-code/sqhr-link-qr-code.php 85% from 13 tests
"Link QR Code" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("link-qr-code.php" instead of "sqhr-link-qr-code.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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin39,593 lines of code in 423 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 371 | 5,613 | 8,946 | 36,772 |
JSON | 19 | 0 | 0 | 2,006 |
Markdown | 23 | 237 | 0 | 708 |
XML | 4 | 3 | 0 | 61 |
YAML | 2 | 2 | 0 | 38 |
JavaScript | 3 | 0 | 17 | 7 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 31 | |
Traits | 0 | |
Classes | 321 | |
▷ Abstract classes | 12 | 3.74% |
▷ Concrete classes | 309 | 96.26% |
▷ Final classes | 120 | 38.83% |
Methods | 1,662 | |
▷ Static methods | 258 | 15.52% |
▷ Public methods | 1,381 | 83.09% |
▷ Protected methods | 49 | 2.95% |
▷ Private methods | 232 | 13.96% |
Functions | 122 | |
▷ Named functions | 85 | 69.67% |
▷ Anonymous functions | 37 | 30.33% |
Constants | 232 | |
▷ Global constants | 12 | 5.17% |
▷ Class constants | 220 | 94.83% |
▷ Public constants | 120 | 54.55% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/khanamiryan/qrcode-detector-decoder/tests/qrcodes/hello_world.png | 3.05KB | 0.24KB | ▼ 92.25% |
assets/screenshot-1.png | 128.64KB | 35.78KB | ▼ 72.19% |
assets/screenshot-2.png | 47.28KB | 11.35KB | ▼ 76.00% |
vendor/endroid/qr-code/assets/images/symfony.png | 15.90KB | 16.60KB | 0.00% |