Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.48ms] Passed 4 tests
An overview of server-side resources used by QR Master
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.97 ▼6.18 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.10 ▼1.35 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.34 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.78 ▼4.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.62 ▼1.88 |
QR Master /wp-admin/tools.php?page=qr_master | 3.36 | 31.51 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 446 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR Master
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.44 ▲0.15 | 1.66 ▼0.19 | 39.00 ▼10.67 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.02 | 106.81 ▼4.46 | 40.92 ▼2.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.05 | 39.52 ▲3.23 | 38.71 ▲6.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲3 | 23.20 ▼0.15 | 668.74 ▲31.97 | 57.96 ▼1.30 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.03 | 94.24 ▼15.15 | 43.92 ▼1.43 |
QR Master /wp-admin/tools.php?page=qr_master | 1,615 | 2.50 | 49.57 | 68.62 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/qr-master/lib/phpqrcode/index.php
- 7× 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-master/qr_master.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/qr-master/get_qrcode.php:20
- > PHP Notice
Undefined variable: srcQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 20
- > PHP Notice
Undefined variable: valueQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 37
- > PHP Notice
Undefined variable: autoQR in wp-content/plugins/qr-master/qr_shortcode_view.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/qr-master/qr_shortcode_view.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function path_join() in wp-content/plugins/qr-master/qr_master_admin.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/tools.php?page=qr_master
- > Network (severe)
wp-content/plugins/qr-master/css/images/ui-bg_flat_0_fff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tools.php?page=qr_master
- > Network (severe)
wp-content/plugins/qr-master/css/images/ui-bg_flat_0_333_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tools.php?page=qr_master
- > Network (severe)
wp-content/plugins/qr-master/css/images/ui-bg_flat_65_0074A2_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: qr code, qr, shortcode, mobile
qr-master/qr_master.php 92% from 13 tests
"QR Master" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("qr-master.php" instead of "qr_master.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/qr-master/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,585 | 2,120 | 6,588 |
CSS | 4 | 268 | 100 | 1,812 |
PO File | 4 | 308 | 599 | 645 |
JavaScript | 1 | 23 | 26 | 89 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview 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.31 |
Average class complexity | 32.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.82 |
▷ 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 | 366 | |
▷ Static methods | 122 | 33.33% |
▷ Public methods | 266 | 72.68% |
▷ Protected methods | 96 | 26.23% |
▷ Private methods | 4 | 1.09% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 97 | |
▷ Global constants | 97 | 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
42 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/phpqrcode/cache/frame_37.png | 0.27KB | 0.25KB | ▼ 7.89% |
img/developers-logo.png | 6.94KB | 3.00KB | ▼ 56.79% |
lib/phpqrcode/cache/frame_23.png | 0.21KB | 0.20KB | ▼ 8.18% |
lib/phpqrcode/cache/frame_22.png | 0.22KB | 0.21KB | ▼ 6.19% |
lib/phpqrcode/cache/frame_20.png | 0.22KB | 0.20KB | ▼ 8.00% |