Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wpqr-qr-code/wpqr_qr-code-generator.php+232
Methods with the same name as their class will not be constructors in a future version of PHP; wpqr_qr_code_Widget has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼56.40ms] Passed 4 tests
A check of server-side resources used by WPQR QR-Code Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.23 | 4.81 ▼30.53 |
Dashboard /wp-admin | 2.26 ▼1.09 | 5.71 ▼53.03 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 6.55 ▼46.56 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.64 | 6.57 ▼95.47 |
Media Library /wp-admin/upload.php | 2.26 ▼0.98 | 6.04 ▼26.43 |
QR-Code /wp-admin/options-general.php?page=wpqr_qr-generator-settings | 2.26 | 5.91 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_wpqr_qr_code-widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPQR QR-Code Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.23 ▼0.12 | 1.78 ▲0.18 | 38.96 ▲0.77 |
Dashboard /wp-admin | 2,196 ▲19 | 5.64 ▲0.02 | 82.11 ▼2.87 | 41.02 ▼1.58 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.00 | 41.28 ▲3.44 | 36.64 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,530 ▼4 | 23.15 ▲5.04 | 651.74 ▲34.26 | 44.82 ▼25.90 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.14 ▼0.03 | 103.42 ▲5.42 | 43.97 ▼0.60 |
QR-Code /wp-admin/options-general.php?page=wpqr_qr-generator-settings | 812 | 1.99 | 27.07 | 31.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wpqr-qr-code/wpqr_qr-code-generator.php+232
Methods with the same name as their class will not be constructors in a future version of PHP; wpqr_qr_code_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_wpqr_qr_code-widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpqr_qr-generator-settings
- > Deprecated in wp-content/plugins/wpqr-qr-code/wpqr_qr-code-generator.php+232
Methods with the same name as their class will not be constructors in a future version of PHP; wpqr_qr_code_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wpqr_qr-generator-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wpqr_qr_code_Widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpqr_qr-generator-settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 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/wpqr-qr-code/wpqr_qr-code-generator.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Widget configuration), #2 (Sample usage of shortcode with align=left), #3 (Sample output)
- Tags: There are too many tags (14 tag instead of maximum 10)
- Plugin Name: You should set the name of your plugin on the first line (
=== wpqr-qr-code ===
)
wpqr-qr-code/wpqr_qr-code-generator.php 85% from 13 tests
Analyzing the main PHP file in "WPQR QR-Code Generator" version 0.2.6
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpqr-qr-code.php" instead of "wpqr_qr-code-generator.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected569 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 63 | 431 |
PO File | 2 | 60 | 64 | 138 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 17.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 36.34KB | 21.10KB | ▼ 41.93% |
screenshot-2.png | 26.03KB | 15.02KB | ▼ 42.31% |
screenshot-1.png | 22.14KB | 13.28KB | ▼ 40.04% |