Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼7.62ms] Passed 4 tests
Analyzing server-side resources used by WP QR Code Auto Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 39.88 ▼9.59 |
Dashboard /wp-admin | 3.87 ▲0.56 | 47.80 ▼2.21 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 49.53 ▼3.99 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 87.42 ▼14.68 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 38.13 ▲4.05 |
WP QR Code /wp-admin/options-general.php?page=wp-qr-code-auto-generator | 3.69 | 36.96 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 429 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP QR Code Auto Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.49 ▼0.80 | 3.97 ▲2.10 | 40.11 ▲0.11 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▲0.90 | 95.46 ▼9.95 | 38.54 ▼5.05 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.01 ▲0.02 | 39.17 ▼1.78 | 36.91 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.40 ▲0.47 | 654.27 ▲24.10 | 65.97 ▲12.70 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.28 ▲0.13 | 96.60 ▼5.29 | 42.52 ▼1.63 |
WP QR Code /wp-admin/options-general.php?page=wp-qr-code-auto-generator | 1,004 | 2.07 | 26.84 | 26.54 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-qr-code-auto-generator/phpqrcode/index.php
- > /wp-content/plugins/wp-qr-code-auto-generator/wp-qr-code-auto-generator.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-qr-code-auto-generator/includes/constants.php:15
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-qr-code-auto-generator/wp-qr-code-auto-generator.php Passed 13 tests
The principal PHP file in "WP QR Code Auto Generator" v. 1.1.0 is loaded by WordPress automatically on each request
136 characters long description:
Automatically generate QR Code for pages, posts and custom post types with permalink or shortlink. You can embed QR Code with shortcode.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-qr-code-auto-generator/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 1,510 | 2,052 | 6,401 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 32.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 366 | |
▷ Static methods | 122 | 33.33% |
▷ Public methods | 266 | 72.68% |
▷ Protected methods | 96 | 26.23% |
▷ Private methods | 4 | 1.09% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 112 | |
▷ Global constants | 112 | 100.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
40 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
phpqrcode/cache/frame_22.png | 0.22KB | 0.21KB | ▼ 6.19% |
phpqrcode/cache/frame_35.png | 0.24KB | 0.21KB | ▼ 9.47% |
phpqrcode/cache/frame_31.png | 0.25KB | 0.24KB | ▼ 6.54% |
phpqrcode/cache/frame_9.png | 0.19KB | 0.19KB | ▼ 2.01% |
phpqrcode/cache/frame_39.png | 0.26KB | 0.23KB | ▼ 9.85% |