Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.48ms] Passed 4 tests
Analyzing server-side resources used by QR Code Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.79 ▼3.21 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.00 ▼15.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.31 ▲4.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.37 ▼7.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.72 ▲0.19 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
QR Code Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.47 ▲0.07 | 1.74 ▼0.09 | 43.75 ▲1.49 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.07 | 99.21 ▼22.59 | 41.37 ▼1.02 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.02 ▼0.09 | 40.43 ▼0.14 | 38.41 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,523 ▼5 | 17.84 ▼5.49 | 717.86 ▼15.49 | 57.90 ▼2.48 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.18 ▼0.06 | 95.22 ▼2.64 | 42.50 ▼1.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-woocommerce/includes/class-woo-coupon-public-url.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-woocommerce/includes/class-woo-bulk-qr-codes.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: qr-code, qrcode, woocommerce
qr-code-woocommerce/woocommerce-qrc.php 85% from 13 tests
The primary PHP file in "QR Code Woocommerce" version 2.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("qr-code-woocommerce.php" instead of "woocommerce-qrc.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected14,524 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,228 | 2,977 | 13,029 |
PHP | 6 | 187 | 136 | 769 |
CSS | 5 | 54 | 10 | 448 |
SVG | 1 | 0 | 0 | 239 |
PO File | 1 | 10 | 11 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 47 | |
▷ Static methods | 5 | 10.64% |
▷ Public methods | 44 | 93.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/wooqr-icon.png | 26.12KB | 9.40KB | ▼ 64.02% |