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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.80ms] Passed 4 tests
This is a short check of server-side resources used by USB Qr Code Scanner For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.40 ▼0.02 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.72 ▼8.37 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.82 ▼2.37 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.79 ▼16.43 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.18 ▲1.05 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for USB Qr Code Scanner For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 13.52 ▼0.78 | 5.85 ▲4.15 | 40.42 ▲1.24 |
Dashboard /wp-admin | 2,222 ▲34 | 4.85 ▼1.06 | 108.70 ▼2.44 | 39.00 ▼2.66 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.99 ▼0.00 | 40.60 ▼0.97 | 34.58 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 17.67 ▲0.05 | 583.56 ▼21.49 | 56.31 ▼8.98 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.17 ▼0.02 | 97.17 ▲1.30 | 41.12 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeRms4cc' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Types/TypeKix.php:13
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeMsiChecksum' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Types/TypeMsi.php:14
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorPNG.php:10
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/generate-verified-files.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Exceptions\\BarcodeException' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Exceptions/InvalidFormatException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\BarcodeGenerator' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/BarcodeGeneratorDynamicHTML.php:5
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeCode128' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Types/TypeCode128A.php:13
- > PHP Fatal error
require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/generate-examples.php on line 7
- > PHP Fatal error
Uncaught Error: Interface 'Picqer\\Barcode\\Types\\TypeInterface' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Types/TypePharmacodeTwoCode.php:14
- > PHP Fatal error
Uncaught Error: Class 'Picqer\\Barcode\\Types\\TypeUpcExtension2' not found in wp-content/plugins/usb-qr-code-scanner-for-woocommerce/vendor/picqer/php-barcode-generator/src/Types/TypeUpcExtension5.php:11
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Usb Barcode Scanner settings Header and Footer For Printer), #2 (Sample Barcode Image), #3 (Sample Product After Added By Scanner), #4 (Printer Preview)
usb-qr-code-scanner-for-woocommerce/usb-qrcode-scanner-for-woocommerce.php 85% from 13 tests
"USB Qr Code Scanner For Woocommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("usb-qr-code-scanner-for-woocommerce.php" instead of "usb-qrcode-scanner-for-woocommerce.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,079 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 932 | 870 | 4,352 |
SVG | 32 | 0 | 0 | 1,708 |
Markdown | 4 | 142 | 0 | 331 |
HTML | 4 | 0 | 0 | 194 |
JSON | 3 | 0 | 0 | 140 |
PO File | 2 | 44 | 47 | 140 |
JavaScript | 1 | 102 | 2 | 108 |
CSS | 1 | 28 | 22 | 61 |
XML | 1 | 0 | 0 | 23 |
YAML | 2 | 9 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 20 | 11.43% |
▷ Public methods | 149 | 85.14% |
▷ Protected methods | 21 | 12.00% |
▷ Private methods | 5 | 2.86% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 34 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 34 | 100.00% |
▷ Public constants | 33 | 97.06% |
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
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 29.37KB | 12.99KB | ▼ 55.78% |
screenshot-3.png | 34.01KB | 15.22KB | ▼ 55.26% |
screenshot-1.png | 33.41KB | 12.75KB | ▼ 61.85% |
screenshot-2.png | 14.87KB | 8.26KB | ▼ 44.49% |