Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/qr-code/qrcode.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_QR_Code has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.16ms] Passed 4 tests
An overview of server-side resources used by QR Code
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.70 ▼35.41 |
Dashboard /wp-admin | 2.11 ▼1.24 | 6.14 ▼56.95 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.67 ▼38.55 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.20 ▼85.72 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 5.46 ▼33.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_qr-code-widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by QR Code
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.71 ▼0.67 | 1.77 ▲0.07 | 38.72 ▼6.99 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲0.02 | 100.75 ▼12.92 | 38.01 ▼8.21 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.01 | 39.16 ▲0.96 | 35.04 ▲0.73 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.52 ▼5.66 | 606.11 ▼75.33 | 46.56 ▼4.84 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.14 ▼0.09 | 99.16 ▼8.94 | 40.74 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/qr-code/qrcode.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_QR_Code has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_qr-code-widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code/qrcode.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in qr-code/assets to your readme.txt
qr-code/qrcode.php 92% from 13 tests
"QR Code" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("qr-code.php" instead of "qrcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin132 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 8 | 99 |
PO File | 1 | 8 | 9 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 26.82KB | 11.09KB | ▼ 58.65% |
screenshot-1.png | 9.05KB | 5.17KB | ▼ 42.90% |