Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.81ms] Passed 4 tests
Server-side resources used by QR Code for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.81 ▼2.59 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.94 ▼15.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.53 ▲2.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.76 ▼7.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.13 ▲1.86 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 439 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR Code for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 13.32 ▼1.33 | 2.21 ▼0.04 | 48.16 ▲2.49 |
Dashboard /wp-admin | 2,233 ▲30 | 4.86 ▼0.02 | 104.78 ▼13.98 | 43.02 ▼3.34 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.00 ▼0.05 | 37.15 ▼0.46 | 37.32 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.17 ▼0.10 | 620.10 ▼76.35 | 66.50 ▲3.08 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.23 ▲0.07 | 105.70 ▼6.28 | 45.09 ▼4.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-qr-codes/includes/lib/phpqrcode/index.php
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, but this is not an exhaustive test
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
3 plugin tags: quick response code, woocommerce qr code, qr codes
wc-qr-codes/wc-qr-codes.php Passed 13 tests
The principal PHP file in "QR Code for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
43 characters long description:
Generate QR Codes for woocommerce products.
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
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wc-qr-codes/includes/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,699 | 2,377 | 7,067 |
JavaScript | 1 | 1 | 1 | 17 |
CSS | 1 | 0 | 0 | 14 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 2 | 4.65% |
Methods | 437 | |
▷ Static methods | 134 | 30.66% |
▷ Public methods | 334 | 76.43% |
▷ Protected methods | 96 | 21.97% |
▷ Private methods | 7 | 1.60% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 105 | |
▷ Global constants | 105 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
41 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/phpqrcode/cache/frame_19.png | 0.22KB | 0.21KB | ▼ 4.89% |
includes/lib/phpqrcode/cache/frame_13.png | 0.21KB | 0.19KB | ▼ 5.24% |
includes/lib/phpqrcode/cache/frame_5.png | 0.15KB | 0.14KB | ▼ 1.33% |
includes/lib/phpqrcode/cache/frame_32.png | 0.26KB | 0.25KB | ▼ 4.20% |
includes/lib/phpqrcode/cache/frame_14.png | 0.21KB | 0.20KB | ▼ 4.69% |