Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼2.32ms] Passed 4 tests
This is a short check of server-side resources used by Modern QR Code Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 41.24 ▲1.38 |
Dashboard /wp-admin | 3.88 ▲0.58 | 50.59 ▲0.24 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 46.51 ▼1.12 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 84.82 ▼9.76 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 39.56 ▲6.79 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 435 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_modern_qr_code_main_id |
Browser metrics Passed 4 tests
Modern QR Code Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.02 | 1.83 ▲0.23 | 41.62 ▲1.03 |
Dashboard /wp-admin | 2,186 ▲9 | 5.56 ▲0.03 | 86.63 ▼1.96 | 44.04 ▲5.28 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.03 | 35.17 ▲1.24 | 33.77 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.07 ▲0.04 | 597.96 ▼46.41 | 63.50 ▲6.98 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.08 | 96.61 ▼0.78 | 42.76 ▼4.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_modern_qr_code_main_id
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/modern-qr-code-generator/inc/main/index.php
- > /wp-content/plugins/modern-qr-code-generator/modern-qr-code-generator.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/modern-qr-code-generator/class/ModernQrCode.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: qr code generator, generate qr code, link qr code generator
modern-qr-code-generator/modern-qr-code-generator.php 92% from 13 tests
Analyzing the main PHP file in "Modern QR Code Generator" version 2.0.1
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/modern-qr-code-generator/inc/main/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,647 | 2,167 | 6,592 |
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 complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 30.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 388 | |
▷ Static methods | 136 | 35.05% |
▷ Public methods | 284 | 73.20% |
▷ Protected methods | 96 | 24.74% |
▷ Private methods | 8 | 2.06% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 99 | |
▷ Global constants | 99 | 100.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
43 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/main/temp/testa0e0cc341823156edc8785d748be1b06.png | 0.44KB | 0.42KB | ▼ 3.78% |
inc/main/cache/frame_39.png | 0.26KB | 0.23KB | ▼ 9.85% |
inc/main/cache/frame_29.png | 0.23KB | 0.21KB | ▼ 7.76% |
inc/main/cache/frame_32.png | 0.26KB | 0.25KB | ▼ 4.20% |
inc/main/cache/frame_26.png | 0.24KB | 0.22KB | ▼ 6.56% |