Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.79MB] [CPU: ▼34.60ms] Passed 4 tests
Analyzing server-side resources used by QR-Code Bonus Card
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.38 ▲3.13 |
Dashboard /wp-admin | 3.15 ▼0.16 | 26.71 ▼20.32 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 26.63 ▼29.86 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 26.52 ▼76.85 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 23.51 ▼11.38 |
Bonus Card /wp-admin/admin.php?page=qr-bonus-card | 3.15 | 24.24 |
Setting /wp-admin/admin.php?page=qr-bonus-card/setting | 3.15 | 24.02 |
Winners /wp-admin/admin.php?page=qr-bonus-card-wins | 3.15 | 29.38 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_qr_bonus_users |
wp_qr_bonus_wins |
wp_qr_bonuses |
New WordPress options |
---|
theysaidso_admin_options |
qr_bonus_checksum |
widget_theysaidso_widget |
qr_bonus_card_active_img_url |
widget_recent-posts |
qr_bonus_date_format |
db_upgraded |
can_compress_scripts |
qr_bonus_win_count |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for QR-Code Bonus Card
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.42 ▼0.01 | 1.88 ▼0.18 | 39.56 ▼15.63 |
Dashboard /wp-admin | 2,236 ▲54 | 5.86 ▼0.01 | 98.77 ▼4.17 | 38.93 ▼9.27 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.12 ▲0.12 | 36.89 ▼2.86 | 36.16 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,554 ▲20 | 23.24 ▲0.05 | 622.78 ▼13.43 | 54.13 ▼32.18 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.23 ▲0.02 | 102.00 ▼8.55 | 42.93 ▼4.42 |
Bonus Card /wp-admin/admin.php?page=qr-bonus-card | 918 | 1.92 | 34.02 | 43.58 |
Setting /wp-admin/admin.php?page=qr-bonus-card/setting | 1,088 | 3.02 | 42.56 | 24.86 |
Winners /wp-admin/admin.php?page=qr-bonus-card-wins | 940 | 1.96 | 36.78 | 33.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure failed, leaving 3 tables in the database
- wp_qr_bonuses
- wp_qr_bonus_wins
- wp_qr_bonus_users
- Zombie WordPress options were found after uninstall: 11 options
- widget_theysaidso_widget
- db_upgraded
- qr_bonus_date_format
- qr_bonus_card_deactivate_img_url
- can_compress_scripts
- qr_bonus_card_active_img_url
- widget_recent-comments
- qr_bonus_win_count
- widget_recent-posts
- qr_bonus_checksum
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+25
Undefined index: pagination
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+71
Undefined index: s
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonuses.php+74
Undefined index: id_list
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+71
Undefined index: date
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+64
Undefined index: from_date
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+143
Undefined index: export
- > GET request to /wp-admin/admin.php?page=qr-bonus-card-wins
- > Notice in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php+67
Undefined index: to_date
SRP 50% 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 fix the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-bonus-card/includes/admin-bonus-wins.php:3
- > PHP Fatal error
Uncaught Error: Class 'QRBC_QrCodeBonus' not found in wp-content/plugins/qr-code-bonus-card/includes/bonus-profile-page.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-bonus-card/includes/setting.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/qr-code-bonus-card/includes/database.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/qr-code-bonus-card/includes/bonus-generate-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-bonus-card/includes/admin-ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qr-code-bonus-card/includes/admin-bonuses.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/qr-code-bonus-card/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/qr-code-bonus-card/includes/pages.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues 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
5 plugin tags: qr-code, bonus barcode, card, bonus card, bonus
qr-code-bonus-card/index.php 92% from 13 tests
The entry point to "QR-Code Bonus Card" version 1.2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("qr-code-bonus-card.php" instead of "index.php")
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 plugin1,763 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 108 | 12 | 999 |
CSS | 2 | 49 | 0 | 268 |
PO File | 2 | 112 | 484 | 244 |
JavaScript | 5 | 27 | 13 | 236 |
JSON | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.95MB with 1.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 235.47KB | 60.20KB | ▼ 74.43% |
assets/screenshot-2.png | 346.42KB | 86.20KB | ▼ 75.12% |
assets/screenshot-3.png | 308.95KB | 75.60KB | ▼ 75.53% |
assets/screenshot-1.png | 696.79KB | 202.78KB | ▼ 70.90% |
assets/screenshot-5.png | 403.78KB | 105.15KB | ▼ 73.96% |