Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼8.18ms] Passed 4 tests
A check of server-side resources used by Stupid Simple QR
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.07 ▼6.66 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.06 ▼5.30 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 34.23 ▼9.01 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.43 ▼11.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.32 ▼0.49 |
Stupid Simple QR /wp-admin/options-general.php?page=ssqr-setting | 3.19 | 29.53 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Stupid Simple QR
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.48 ▼1.20 | 4.40 ▲2.42 | 39.99 ▼2.21 |
Dashboard /wp-admin | 2,213 ▲25 | 4.89 ▲0.04 | 95.79 ▼23.21 | 38.80 ▼5.00 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.08 | 40.29 ▲5.43 | 36.98 ▲5.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.35 ▲2.20 | 652.16 ▼40.55 | 54.06 ▼2.32 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.27 ▲0.08 | 91.99 ▼19.44 | 41.98 ▼9.65 |
Stupid Simple QR /wp-admin/options-general.php?page=ssqr-setting | 782 | 2.03 | 24.68 | 27.29 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ssqr-setting
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ssqr-setting
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=ssqr-setting
- > Notice in wp-content/plugins/stupid-simple-qr/options.php+116
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stupid-simple-qr/network-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/stupid-simple-qr/stupid-simple-qr.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/stupid-simple-qr/options.php:122
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Pushing the button creates a QR code!)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== stupid-simple-qr ===
)
stupid-simple-qr/stupid-simple-qr.php Passed 13 tests
"Stupid Simple QR" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Adds a 'QR' button next to 'Get Shortlink' on published pages and posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin163 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 64 | 154 |
JavaScript | 1 | 4 | 10 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.46KB | 8.42KB | ▼ 65.57% |
screenshot-2.png | 2.50KB | 0.62KB | ▼ 75.30% |