Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.24ms] Passed 4 tests
A check of server-side resources used by Kaya QR Code Generator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.47 ▼4.34 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.33 ▼2.48 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.14 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.20 ▼5.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.94 ▲5.48 |
QR Code Generator /wp-admin/admin.php?page=wpkqcg-kaya-qr-code-generator-admin-settings-page | 3.35 | 35.47 |
Kaya Studio /wp-admin/admin.php?page=kayastudio-plugins-admin-main-page | 3.28 | 33.83 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_wpkqcg_widget_qrcodewidget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Kaya QR Code Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲172 | 13.22 ▼1.02 | 1.89 ▲0.15 | 45.25 ▲7.83 |
Dashboard /wp-admin | 2,317 ▲128 | 5.05 ▲0.09 | 101.24 ▼10.88 | 38.90 ▼3.59 |
Posts /wp-admin/edit.php | 2,199 ▲110 | 2.04 ▲0.05 | 40.93 ▲5.47 | 35.34 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6,682 ▲5,168 | 20.75 ▲3.14 | 944.63 ▲245.05 | 43.29 ▼24.35 |
Media Library /wp-admin/upload.php | 1,492 ▲104 | 4.27 ▲0.10 | 99.42 ▲1.35 | 43.86 ▲0.18 |
QR Code Generator /wp-admin/admin.php?page=wpkqcg-kaya-qr-code-generator-admin-settings-page | 1,773 | 2.61 | 63.82 | 60.51 |
Kaya Studio /wp-admin/admin.php?page=kayastudio-plugins-admin-main-page | 1,041 | 1.70 | 23.31 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_wpkqcg_widget_qrcodewidget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: qr code shortcode, qr code widget, widget, shortcode, woocommerce...
kaya-qr-code-generator/kaya-qr-code-generator.php Passed 13 tests
The main file in "Kaya QR Code Generator" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Generate QR Code through Widgets and Shortcodes, without any dependencies.
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
Good job! No executable or dangerous file extensions detected3,543 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 381 | 717 | 2,088 |
JavaScript | 12 | 107 | 297 | 893 |
PO File | 1 | 103 | 125 | 289 |
CSS | 2 | 50 | 23 | 273 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 29.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 45 | 71.43% |
▷ Public methods | 33 | 52.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 30 | 47.62% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
No PNG images were found in this plugin