Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/simple-qr-code-creator-widget/qr_generator.php+89
Methods with the same name as their class will not be constructors in a future version of PHP; QR_Generator has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.93ms] Passed 4 tests
A check of server-side resources used by Simple QR Code Creator Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.63 ▼35.97 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.40 ▼43.85 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.62 ▼40.41 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.56 ▼95.48 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.65 ▼27.62 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_qr_generator |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple QR Code Creator Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲113 | 13.38 ▼1.06 | 8.70 ▲6.33 | 46.80 ▲2.20 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▼0.03 | 86.54 ▼14.05 | 38.74 ▼6.72 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.06 | 34.86 ▼2.43 | 33.81 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,527 ▼1 | 23.32 ▲0.30 | 630.42 ▼43.74 | 61.16 ▲7.17 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.22 ▲0.03 | 97.70 ▼8.14 | 47.73 ▲0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/simple-qr-code-creator-widget/qr_generator.php+89
Methods with the same name as their class will not be constructors in a future version of PHP; QR_Generator has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_qr_generator
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: image_src in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 35
- > PHP Warning
imagejpeg() expects parameter 1 to be resource, bool given in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 41
- > PHP Warning
imagestring() expects parameter 1 to be resource, bool given in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 37
- > PHP Notice
Undefined index: qrtype in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 26
- > PHP Notice
Undefined index: qrtype in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 21
- > PHP Notice
Undefined variable: qr_height in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-qr-code-creator-widget/qr_generator.php:21
- > PHP Warning
imagecreatefrompng(): Filename cannot be empty in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 35
- > PHP Notice
Undefined index: qrtype in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 15
- > PHP Notice
Undefined variable: qr_width in wp-content/plugins/simple-qr-code-creator-widget/qrcode.php on line 37
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Contact/Business Card QR), #2 (Different types), #3 (URL code), #4 (Business Card Code), #5 (Tracking), #6 (In posts and pages)
simple-qr-code-creator-widget/qr_generator.php 85% from 13 tests
The primary PHP file in "Simple QR Code Creator Widget" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-qr-code-creator-widget.php" instead of "qr_generator.php")
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
No dangerous file extensions were detected264 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 38 | 36 | 150 |
CSS | 1 | 8 | 14 | 68 |
JavaScript | 1 | 8 | 0 | 46 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.23MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.78KB | 7.38KB | ▼ 60.73% |
screenshot-5.png | 51.87KB | 18.90KB | ▼ 63.56% |
screenshot-4.png | 61.36KB | 37.36KB | ▼ 39.12% |
screenshot-3.png | 36.49KB | 24.10KB | ▼ 33.94% |
screenshot-2.png | 12.17KB | 5.82KB | ▼ 52.15% |