Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼4.44ms] Passed 4 tests
An overview of server-side resources used by QR Code Tag for WC order emails, POS receipt emails, PDF invoices, PDF packing slips, Blog posts, Custom post types and Pages (from goaskle.com)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 41.94 ▲3.95 |
Dashboard /wp-admin | 3.69 ▲0.34 | 53.84 ▼4.92 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 48.58 ▼1.60 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 83.07 ▼15.19 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.28 ▲5.41 |
QR Code Tag (from Goaskle.com) /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php | 3.87 | 38.90 |
Server storage [IO: ▲6.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 308 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
qrct_from_goaskle_com_options |
Browser metrics Passed 4 tests
Checking browser requirements for QR Code Tag for WC order emails, POS receipt emails, PDF invoices, PDF packing slips, Blog posts, Custom post types and Pages (from goaskle.com)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.43 | 1.71 ▲0.19 | 42.19 ▼1.02 |
Dashboard /wp-admin | 2,212 ▲32 | 5.72 ▲0.13 | 91.59 ▲3.46 | 41.00 ▼0.83 |
Posts /wp-admin/edit.php | 2,128 ▲49 | 2.45 ▲0.44 | 35.23 ▼1.53 | 31.92 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.36 ▲0.25 | 667.64 ▼23.14 | 36.40 ▼27.58 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.37 ▲0.17 | 97.10 ▼2.15 | 44.66 ▼2.75 |
QR Code Tag (from Goaskle.com) /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php | 2,022 | 2.58 | 55.45 | 51.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- qrct_from_goaskle_com_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+179
Undefined index: qrct_from_goaskle_com_sc_new_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+184
Undefined index: qrct_from_goaskle_com_sc_failed_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+190
Undefined index: qrct_from_goaskle_com_sc_customer_on_hold_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+196
Undefined index: qrct_from_goaskle_com_sc_customer_processing_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+202
Undefined index: qrct_from_goaskle_com_sc_customer_completed_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+208
Undefined index: qrct_from_goaskle_com_sc_customer_refunded_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+214
Undefined index: qrct_from_goaskle_com_sc_customer_partially_refunded_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+220
Undefined index: qrct_from_goaskle_com_sc_cancelled_order_wc_emails_enable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php
- > Notice in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php+226
Undefined index: qrct_from_goaskle_com_sc_customer_invoice_wc_emails_enable
SRP 50% 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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
QRcode : Data do not exist. in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qr_img/qr_img.php on line 61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp.php:113
- > 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-for-wc-from-goaskle-com/lib/qrct/QrctWp.php on line 96
- > PHP Notice
Undefined variable: qrcode_data_string in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qr_img/qr_img.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/qr-code-tag-for-wc-from-goaskle-com/lib/qrct/QrctWp-admin.inc.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Widget options), #2 (Tooltip mode), #3 (Admin interface), #4 (Order invoice example (Email)), #5 (QR code example)
qr-code-tag-for-wc-from-goaskle-com/qr-code-tag-for-wc-from-goaskle-com.php 85% from 13 tests
This is the main PHP file of "QR Code Tag for WC order emails, POS receipt emails, PDF invoices, PDF packing slips, Blog posts, Custom post types and Pages (from goaskle.com)" version 1.9.28, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Plugin Name: Please shorten the plugin name (currently 144 characters long instead of max. 70)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,599 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 775 | 797 | 2,730 |
PO File | 4 | 242 | 276 | 645 |
HTML | 5 | 93 | 0 | 200 |
JavaScript | 2 | 0 | 22 | 15 |
CSS | 1 | 1 | 2 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 72.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.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
47 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/qr_img/image/qrv21.png | 0.25KB | 0.23KB | ▼ 7.84% |
lib/qr_img/image/qrv24.png | 0.26KB | 0.24KB | ▼ 6.84% |
lib/qr_img/image/qrv26.png | 0.25KB | 0.23KB | ▼ 6.98% |
lib/qr_img/image/qrv20.png | 0.23KB | 0.22KB | ▼ 6.69% |
lib/qr_img/image/qrv36.png | 0.28KB | 0.26KB | ▼ 6.03% |