Benchmarks
Plugin footprint 65% 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.12MB] [CPU: ▲18.36ms] Passed 4 tests
An overview of server-side resources used by QR Scanner Redirect
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 68.99 ▲25.68 |
Dashboard /wp-admin | 3.40 ▲0.10 | 80.89 ▲26.48 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 69.21 ▲15.04 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 106.83 ▲7.66 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 62.46 ▲25.07 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_qrscannerredirect_settings |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_qrscannerredirect_widget |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for QR Scanner Redirect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲25 | 14.47 ▼0.28 | 1.73 ▼0.34 | 43.53 ▼5.10 |
Dashboard /wp-admin | 2,205 ▲28 | 5.04 ▼0.60 | 87.73 ▼5.00 | 86.71 ▲43.16 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.42 ▲0.42 | 35.08 ▼1.08 | 38.39 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,843 | 25.47 ▲7.97 | 870.23 ▲165.62 | 34.61 ▼32.96 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.67 ▲0.53 | 100.53 ▼11.52 | 74.22 ▲23.23 |
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
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_qrscannerredirect_settings
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_qrscannerredirect_widget
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/qr-scanner-redirect/httpsWarning.php
- > /wp-content/plugins/qr-scanner-redirect/include/httpsWarning.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-scanner-redirect/include/widget.php:11
- > PHP Notice
Undefined variable: formvalues in wp-content/plugins/qr-scanner-redirect/pluginsettingsform.php on line 23
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/qr-scanner-redirect/include/pluginsettingsform.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-scanner-redirect/widget.php:11
- > PHP Fatal error
Uncaught Error: Call to a member function fetchPost() on null in wp-content/plugins/qr-scanner-redirect/language.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/qr-scanner-redirect/include/shortcode.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/qr-scanner-redirect/include/pluginsettingsform.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-scanner-redirect/metaboxes.php:35
- > PHP Notice
Undefined variable: formvalues in wp-content/plugins/qr-scanner-redirect/include/pluginsettingsform.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-scanner-redirect/include/metaboxes.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: redirect, wordpress, qr, scanner, plugin...
qr-scanner-redirect/index.php 77% from 13 tests
The entry point to "QR Scanner Redirect" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "5.2")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.5" instead of "7.2")
- Main file name: The principal plugin file should be the same as the plugin slug ("qr-scanner-redirect.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin842 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 103 | 189 | 755 |
CSS | 2 | 11 | 0 | 64 |
JavaScript | 4 | 0 | 71 | 23 |
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.28 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 73.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 26.32% |
Functions | 23 | |
▷ Named functions | 18 | 78.26% |
▷ Anonymous functions | 5 | 21.74% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 2.79KB | 0.14KB | ▼ 94.93% |