Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; QrctWp has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼57.16ms] Passed 4 tests
Server-side resources used by QR Code Tag
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.78 ▼31.52 |
Dashboard /wp-admin | 2.23 ▼1.12 | 6.74 ▼56.45 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 6.59 ▼48.17 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.37 ▼92.49 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 6.26 ▼30.56 |
QR Code Tag /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php | 2.23 | 7.13 |
Server storage [IO: ▲6.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 296 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
qrct_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR Code Tag
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.66 ▼0.74 | 6.87 ▲5.24 | 43.39 ▲3.44 |
Dashboard /wp-admin | 2,219 ▲28 | 5.05 ▲0.19 | 104.98 ▼4.62 | 37.54 ▼6.78 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.06 ▲0.00 | 43.02 ▼1.84 | 35.18 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 17.42 ▼0.84 | 693.94 ▲53.20 | 53.94 ▼6.67 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.29 ▲0.11 | 101.00 ▼5.16 | 40.59 ▼10.07 |
QR Code Tag /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php | 1,472 | 1.71 | 29.87 | 55.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; QrctWp has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Deprecated in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; QrctWp has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-tooltip handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the qrcodetagging handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the qrcodetagging handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User deprecated in wp-includes/functions.php+5453
Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Deprecated in wp-content/plugins/qr-code-tag/lib/qrct/Qrcode.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Qrcode has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Warning in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp-admin.inc.php+166
Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
QRcode : Data do not exist. in wp-content/plugins/qr-code-tag/lib/qr_img/qr_img.php on line 90
- > PHP Notice
Undefined variable: qrcode_data_string in wp-content/plugins/qr-code-tag/lib/qr_img/qr_img.php on line 87
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp-admin.inc.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qr-code-tag/lib/qrct/QrctWp.php on line 74
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Javascript (severe) in unknown
/wp-content/plugins/qr-code-tag/js/jquery.tooltip.min.js?ver=6.3.1 13:62 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tooltip is not a function" "TypeError: $(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/qr-code-tag/js/qrct.js?ver=6.3.1:12:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=qr-code-tag/qr-code-tag.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tooltip is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add images for these screenshots: #1 (Tooltip mode), #2 (Widget options), #3 (Admin interface)
qr-code-tag/qr-code-tag.php Passed 13 tests
The primary PHP file in "QR Code Tag" version 1.0 is used by WordPress to initiate all plugin functionality
64 characters long description:
QR Code tag generator with widget, shortcode and tooltip support
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
There were no executable files found in this plugin1,371 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 250 | 509 | 1,110 |
PO File | 1 | 58 | 74 | 133 |
HTML | 2 | 42 | 0 | 102 |
JavaScript | 2 | 0 | 22 | 15 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
An overview of 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.25 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
42 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/qr_img/image/qrv29.png | 0.24KB | 0.22KB | ▼ 8.87% |
lib/qr_img/image/qrv39.png | 0.27KB | 0.25KB | ▼ 7.19% |
lib/qr_img/image/b.png | 0.83KB | 0.08KB | ▼ 90.25% |
lib/qr_img/image/qrv32.png | 0.28KB | 0.26KB | ▼ 6.71% |
lib/qr_img/image/qrv22.png | 0.24KB | 0.22KB | ▼ 6.64% |