Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/vasaio-qr-code/vasaio-qr-code.php+15
Use of undefined constant VQRC_TEXTDOMAIN - assumed 'VQRC_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.82ms] Passed 4 tests
Analyzing server-side resources used by Vasaio QR Code
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.61 ▼36.20 |
Dashboard /wp-admin | 2.06 ▼1.24 | 7.37 ▼41.15 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 4.84 ▼41.03 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.71 ▼92.90 |
Media Library /wp-admin/upload.php | 2.06 ▼1.16 | 6.49 ▼25.53 |
Vasaio QR Code /wp-admin/options-general.php?page=vasaio-qr-code/vasaio-qr-code.php | 2.07 | 5.43 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 18 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
vasaio_qr_bg_color |
widget_vasaioqrcodewidget |
widget_recent-posts |
vasaio_qr_logo |
widget_theysaidso_widget |
vasaio_qr_border |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Vasaio QR Code: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲61 | 13.34 ▼0.98 | 1.76 ▼0.25 | 43.27 ▼3.03 |
Dashboard /wp-admin | 2,221 ▲30 | 5.88 ▲1.02 | 110.30 ▲6.43 | 41.13 ▼3.39 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.06 | 35.03 ▲0.17 | 32.61 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,528 ▲8 | 23.37 ▲0.26 | 641.10 ▼28.42 | 56.07 ▲4.88 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.41 ▲0.20 | 92.91 ▼6.08 | 41.97 ▼0.72 |
Vasaio QR Code /wp-admin/options-general.php?page=vasaio-qr-code/vasaio-qr-code.php | 1,383 | 1.75 | 27.91 | 33.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/vasaio-qr-code/vasaio-qr-code.php+15
Use of undefined constant VQRC_TEXTDOMAIN - assumed 'VQRC_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_vasaioqrcodewidget
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=vasaio-qr-code/vasaio-qr-code.php
- > Warning in wp-content/plugins/vasaio-qr-code/vasaio-qr-code.php+15
Use of undefined constant VQRC_TEXTDOMAIN - assumed 'VQRC_TEXTDOMAIN' (this will throw an Error in a future version of PHP)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=vasaio-qr-code/vasaio-qr-code.php
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- > GET request to /wp-admin/options-general.php?page=vasaio-qr-code/vasaio-qr-code.php
- > Notice in wp-content/plugins/vasaio-qr-code/vasaio-qr-code.php+475
Undefined index: submit
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/vasaio-qr-code/vasaio-qr-code-encoder/vasaio-qr-code-encoder.php
- 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 194
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 194
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 194
- > PHP Warning
fgets() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 195
- > PHP Warning
feof() expects parameter 1 to be resource, bool given in wp-content/plugins/vasaio-qr-code/images/vasaio-qr-code-banner.php on line 194
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
vasaio-qr-code/vasaio-qr-code.php Passed 13 tests
The main PHP file in "Vasaio QR Code" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Generate standalone QR codes, colored and customized with logo inside.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/vasaio-qr-code/tabber/JavaScript tabifier.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 921 | 822 | 3,290 |
JavaScript | 2 | 129 | 35 | 716 |
PO File | 1 | 69 | 99 | 150 |
CSS | 1 | 16 | 25 | 70 |
HTML | 2 | 18 | 1 | 42 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 24.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 61 | 41.22% |
▷ Public methods | 146 | 98.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.35% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/VASAIO-QR-Code-logo.png | 7.94KB | 4.33KB | ▼ 45.44% |
vasaio-qr-code-encoder/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
images/icon.png | 1.74KB | 1.28KB | ▼ 26.08% |
vasaio-qr-code-encoder/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |