Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-qr-code-generator/wp-qr-code-generator.php+177
Function create_function() is deprecated
Server metrics [RAM: ▼1.77MB] [CPU: ▼186.71ms] Passed 4 tests
An overview of server-side resources used by WP QR Code Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.86 ▼0.86 | 4.87 ▼16.94 |
Dashboard /wp-admin | 1.88 ▼1.18 | 6.05 ▼34.14 |
Posts /wp-admin/edit.php | 1.88 ▼1.23 | 5.52 ▼41.12 |
Add New Post /wp-admin/post-new.php | 1.88 ▼3.56 | 5.57 ▼638.94 |
Media Library /wp-admin/upload.php | 1.88 ▼1.13 | 5.89 ▼32.63 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_qrcode_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP QR Code Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲254 | 16.57 ▲1.00 | 13.19 ▲4.29 | 49.06 ▲0.79 |
Dashboard /wp-admin | 3,002 ▲71 | 6.61 ▲0.63 | 144.40 ▲5.84 | 113.16 ▲1.66 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.79 ▲0.07 | 72.97 ▲10.19 | 112.98 ▲21.87 |
Add New Post /wp-admin/post-new.php | 1,531 ▲27 | 18.72 ▲0.23 | 383.76 ▲14.70 | 130.75 ▲23.45 |
Media Library /wp-admin/upload.php | 1,836 ▲32 | 5.18 ▲0.15 | 129.15 ▼33.60 | 119.21 ▲2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-qr-code-generator/wp-qr-code-generator.php+177
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_qrcode_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: Please add images for these screenshots: #1 (WP QR Code Generator plugin appears after activation in Widget section.), #2 (WP QR Code Generator plugin appears after activation in Pages or post section.)
wp-qr-code-generator/wp-qr-code-generator.php 92% from 13 tests
The primary PHP file in "WP QR Code Generator" version 1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin278 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 25 | 185 |
JavaScript | 3 | 12 | 16 | 93 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 11.44KB | 4.93KB | ▼ 56.90% |
screenshot-1.png | 33.47KB | 13.35KB | ▼ 60.12% |