Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.25ms] Passed 4 tests
A check of server-side resources used by QR Code Generator 4 All
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.60 ▼3.57 |
Dashboard /wp-admin | 3.40 ▲0.06 | 47.84 ▼14.82 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.13 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 91.47 ▼3.62 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.95 ▲2.62 |
QR Generator 4 All /wp-admin/options-general.php?page=qrgen4all-setup-menu | 3.30 | 32.74 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 476 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_qrgen4all_uploads |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
QR Code Generator 4 All: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.55 ▼1.20 | 1.66 ▼0.18 | 39.07 ▼2.66 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.05 | 99.25 ▼19.73 | 42.31 ▼6.90 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.02 | 39.74 ▲4.23 | 36.21 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,517 ▼27 | 17.53 ▼0.57 | 699.91 ▲58.66 | 54.53 ▲4.62 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.20 ▲0.01 | 96.32 ▼4.92 | 40.03 ▼2.88 |
QR Generator 4 All /wp-admin/options-general.php?page=qrgen4all-setup-menu | 1,882 | 3.62 | 79.94 | 49.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_qrgen4all_uploads
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/qr-code-generator-4-all/phpqrcode/index.php
- > /wp-content/plugins/qr-code-generator-4-all/upload.php
- > /wp-content/plugins/qr-code-generator-4-all/qr.php
- > /wp-content/plugins/qr-code-generator-4-all/qrpro.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-generator-4-all/qrgen4all.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Configuration and shortcode usage.), #2 (QR Code editor.)
- Donate link: Invalid url: ""
qr-code-generator-4-all/qrgen4all.php 92% from 13 tests
The entry point to "QR Code Generator 4 All" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("qr-code-generator-4-all.php" instead of "qrgen4all.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,412 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,514 | 2,018 | 6,591 |
PO File | 4 | 444 | 622 | 1,446 |
JavaScript | 4 | 228 | 301 | 1,386 |
Pascal | 1 | 379 | 699 | 450 |
CSS | 3 | 34 | 101 | 356 |
HTML | 1 | 37 | 0 | 142 |
Markdown | 1 | 30 | 0 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 368 | |
▷ Static methods | 123 | 33.42% |
▷ Public methods | 269 | 73.10% |
▷ Protected methods | 96 | 26.09% |
▷ Private methods | 3 | 0.82% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 90 | |
▷ Global constants | 90 | 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
71 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qrinfo.png | 0.85KB | 0.30KB | ▼ 64.06% |
phpqrcode/cache/frame_32.png | 0.26KB | 0.25KB | ▼ 4.20% |
ui/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.25KB | 0.15KB | ▼ 37.45% |
phpqrcode/cache/frame_40.png | 0.26KB | 0.24KB | ▼ 7.87% |
phpqrcode/cache/frame_10.png | 0.20KB | 0.20KB | ▼ 0.99% |