Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼151.04ms] Passed 4 tests
This is a short check of server-side resources used by LH QR Codes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 42.01 ▲11.10 |
Dashboard /wp-admin | 3.10 ▲0.05 | 46.56 ▼24.31 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 40.17 ▼14.11 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 96.80 ▼561.45 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.61 ▼4.29 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 432 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_lh_qr_codes_widget |
Browser metrics Passed 4 tests
A check of browser resources used by LH QR Codes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.77 ▲0.32 | 8.53 ▼0.13 | 47.69 ▼22.72 |
Dashboard /wp-admin | 2,970 ▲36 | 5.86 ▼0.14 | 145.02 ▼18.57 | 123.12 ▼16.57 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▲0.00 | 68.44 ▼3.27 | 90.16 ▲9.13 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.77 ▼1.42 | 390.59 ▼21.38 | 114.50 ▼26.51 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.04 ▲0.02 | 149.58 ▼23.22 | 125.31 ▼10.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_lh_qr_codes_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/lh-qr-codes/phpqrcode/index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lh-qr-codes/lh-qr-codes.php:245
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: thumbnail, svg, self hosted, png, login...
lh-qr-codes/lh-qr-codes.php Passed 13 tests
This is the main PHP file of "LH QR Codes" version 1.06, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Creates an api that gives every user a qr code that points to a url (which can then be redirected)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/lh-qr-codes/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,821 | 2,166 | 6,731 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 401 | |
▷ Static methods | 140 | 34.91% |
▷ Public methods | 296 | 73.82% |
▷ Protected methods | 96 | 23.94% |
▷ Private methods | 9 | 2.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 99 | |
▷ Global constants | 99 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
40 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpqrcode/cache/frame_13.png | 0.21KB | 0.19KB | ▼ 5.24% |
phpqrcode/cache/frame_18.png | 0.22KB | 0.21KB | ▼ 5.26% |
phpqrcode/cache/frame_9.png | 0.19KB | 0.19KB | ▼ 2.01% |
phpqrcode/cache/frame_40.png | 0.26KB | 0.24KB | ▼ 7.87% |
phpqrcode/cache/frame_2.png | 0.14KB | 0.14KB | ▼ 2.08% |