Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.49ms] Passed 4 tests
An overview of server-side resources used by ra_qrcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 49.20 ▲0.37 |
Dashboard /wp-admin | 3.34 ▲0.04 | 54.46 ▼1.45 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.51 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.27 ▼3.93 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.10 ▼0.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_ra_qrcode_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ra_qrcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.73 ▲0.20 | 2.20 ▲0.49 | 42.74 ▼1.46 |
Dashboard /wp-admin | 2,217 ▲37 | 5.80 ▲0.15 | 87.73 ▼10.98 | 42.36 ▼1.50 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.44 ▲0.41 | 36.45 ▲0.23 | 33.72 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 22.95 ▼0.06 | 673.49 ▼9.97 | 38.42 ▼16.40 |
Media Library /wp-admin/upload.php | 1,422 ▲25 | 4.48 ▲0.25 | 99.29 ▼12.28 | 45.06 ▲1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_ra_qrcode_widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ra-qrcode/ra-qrcode.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined index: bgcolor in wp-content/plugins/ra-qrcode/inc/image.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ra-qrcode/inc/image.php on line 14
- > PHP Warning
imagecreatefrompng(https://chart.googleapis.com/chart?cht=qr&chs=x&chl=&choe=UTF-8): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request\r in wp-content/plugins/ra-qrcode/inc/image.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ra-qrcode/inc/image.php on line 15
- > PHP Warning
imagetruecolortopalette() expects parameter 1 to be resource, bool given in wp-content/plugins/ra-qrcode/inc/image.php on line 27
- > PHP Warning
imagecolorat() expects parameter 1 to be resource, bool given in wp-content/plugins/ra-qrcode/inc/image.php on line 28
- > PHP Notice
Undefined index: size in wp-content/plugins/ra-qrcode/inc/image.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ra-qrcode/inc/image.php on line 15
- > PHP Warning
imagedestroy() expects parameter 1 to be resource, bool given in wp-content/plugins/ra-qrcode/inc/image.php on line 19
- > PHP Warning
imagepng() expects parameter 1 to be resource, bool given in wp-content/plugins/ra-qrcode/inc/image.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The simplest shortcode), #2 (The qr code generated)
ra-qrcode/ra-qrcode.php Passed 13 tests
The main PHP file in "ra_qrcode" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
a simple WordPress plugin to generate a QR code with a shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin315 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 71 | 37 | 217 |
JavaScript | 1 | 13 | 8 | 95 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
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/qr-icon.png | 2.05KB | 1.65KB | ▼ 19.22% |