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 gracefully, with no errors
Server metrics [RAM: ▲0.31MB] [CPU: ▲1.26ms] Passed 4 tests
This is a short check of server-side resources used by Master QR - Automatic QR code generator for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 44.78 ▲5.69 |
Dashboard /wp-admin | 3.67 ▲0.36 | 57.81 ▼1.84 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 54.52 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 98.83 ▼4.43 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 45.78 ▲8.25 |
QR Code Downlaod /wp-admin/admin.php?page=masterqr_downlaod | 3.50 | 36.60 |
Print QR Code /wp-admin/admin.php?page=masterqr_print | 3.47 | 33.68 |
Why Upgade /wp-admin/admin.php?page=masterqr_update | 3.55 | 31.23 |
Master QR /wp-admin/admin.php?page=masterqr | 3.50 | 37.80 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Master QR - Automatic QR code generator for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.80 ▼0.56 | 5.80 ▲3.88 | 31.16 ▼15.89 |
Dashboard /wp-admin | 2,244 ▲64 | 5.93 ▲0.27 | 95.55 ▲4.43 | 87.09 ▲42.40 |
Posts /wp-admin/edit.php | 2,172 ▲72 | 2.44 ▲0.46 | 39.74 ▲0.21 | 34.14 ▼2.21 |
Add New Post /wp-admin/post-new.php | 6,312 ▲4,786 | 26.18 ▲3.18 | 1,030.06 ▲332.67 | 40.12 ▼23.77 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.52 ▲0.34 | 109.61 ▲15.52 | 79.63 ▲30.03 |
QR Code Downlaod /wp-admin/admin.php?page=masterqr_downlaod | 1,117 | 2.12 | 31.32 | 59.90 |
Print QR Code /wp-admin/admin.php?page=masterqr_print | 1,156 | 2.13 | 28.48 | 38.67 |
Why Upgade /wp-admin/admin.php?page=masterqr_update | 1,145 | 2.12 | 30.15 | 83.33 |
Master QR /wp-admin/admin.php?page=masterqr | 1,677 | 3.04 | 58.86 | 50.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=masterqr_print
- > Notice in wp-content/plugins/master-qr-generator/admin/class_masterqr_print.php+93
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=masterqr_print
- > Notice in wp-content/plugins/master-qr-generator/admin/class_masterqr_print.php+93
Trying to get property 'name' of non-object
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
Almost there! Just fix the following items
- 3× 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/master-qr-generator/admin/class_masterqr_print.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/master-qr-generator/admin/pro_features.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-qr-generator/admin/class_maserqr_list_view.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
master-qr-generator/master-qr-lite.php 85% from 13 tests
The principal PHP file in "Master QR - Automatic QR code generator for WordPress" v. 1.2.6 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("master-qr-generator.php" instead of "master-qr-lite.php")
- Description: The description should be shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,779 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 568 | 596 | 1,182 |
CSS | 2 | 100 | 4 | 563 |
JavaScript | 5 | 22 | 8 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 2 | 2.86% |
▷ Public methods | 65 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.14% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
18 compressed PNG files occupy 0.46MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/timmimnglogo.png | 4.27KB | 4.28KB | 0.00% |
admin/img/eyecolor.png | 3.61KB | 3.69KB | 0.00% |
admin/img/downloadqr.png | 77.39KB | 76.67KB | ▼ 0.94% |
admin/img/customqr.png | 86.71KB | 86.29KB | 0.49% |
admin/img/POSTTYPELOGO.png | 16.01KB | 15.43KB | ▼ 3.60% |