Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.62MB] [CPU: ▲0.46ms] Passed 4 tests
A check of server-side resources used by QR Code Composer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 39.56 ▲0.73 |
Dashboard /wp-admin | 3.98 ▲0.64 | 56.58 ▼0.39 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 48.32 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 87.20 ▲3.29 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 34.41 ▲2.10 |
Bulk Print(PRO) /wp-admin/admin.php?page=qrc_print_pdf | 3.78 | 32.56 |
Download All QR (PRO) /wp-admin/admin.php?page=qrc_list_view | 3.81 | 33.33 |
QRC Composer /wp-admin/admin.php?page=qr_composer | 4.02 | 40.76 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by QR Code Composer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲156 | 13.66 ▼0.96 | 7.93 ▲5.81 | 40.17 ▼1.08 |
Dashboard /wp-admin | 2,250 ▲59 | 5.94 ▲0.05 | 99.48 ▲0.10 | 67.79 ▲23.75 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.04 ▲0.02 | 33.77 ▼6.60 | 29.06 ▼9.93 |
Add New Post /wp-admin/post-new.php | 6,285 ▲4,766 | 26.06 ▲2.91 | 1,032.56 ▲373.29 | 41.77 ▼18.21 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.19 ▼0.03 | 100.21 ▲0.97 | 42.84 ▼1.66 |
Bulk Print(PRO) /wp-admin/admin.php?page=qrc_print_pdf | 1,136 | 2.06 | 26.44 | 56.02 |
Download All QR (PRO) /wp-admin/admin.php?page=qrc_list_view | 1,050 | 2.06 | 23.73 | 33.65 |
QRC Composer /wp-admin/admin.php?page=qr_composer | 4,604 | 12.29 | 345.71 | 117.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qrc_print_pdf
- > Notice in wp-content/plugins/qr-code-composer/admin/class_qr_code_print.php+115
Trying to get property 'name' of non-object
SRP 50% 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 items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/qr-code-composer/admin/pro_features.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/includes/metadata/class-yoo-filed-data.php:360
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/includes/metadata/class_qrc_defaultmeta.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/admin/class_qrc_shortcode.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qr-code-composer/admin/extra/vcardShortcodeoptions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/admin/class_qrc_admin_integration.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/admin/class-qrc-plugin-redirect.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-composer/admin/class-qrc-admin-main.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
- Tags: You are using too many tags: 14 tag instead of maximum 10
qr-code-composer/qrc_composer.php 92% from 13 tests
The main PHP script in "QR Code Composer" version 1.8.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("qr-code-composer.php" instead of "qrc_composer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected5,979 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 939 | 695 | 2,702 |
CSS | 2 | 110 | 24 | 1,707 |
JavaScript | 10 | 246 | 295 | 1,569 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 2 | 1.53% |
▷ Public methods | 126 | 96.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.82% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 compressed PNG files occupy 0.45MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/111.png | 47.97KB | 47.20KB | ▼ 1.61% |
admin/img/vcard.png | 15.67KB | 14.86KB | ▼ 5.20% |
admin/img/downlad-min.png | 152.83KB | 152.24KB | 0.39% |
admin/img/qr-for-bbpress-min.png | 36.24KB | 35.40KB | ▼ 2.33% |
admin/img/shot-min.PNG | 33.74KB | 33.76KB | 0.00% |