Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by Qreatmenu - Restaurant QR Menu for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.63 ▼2.37 |
Dashboard /wp-admin | 3.40 ▲0.10 | 52.39 ▼2.78 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.97 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 88.81 ▼18.40 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 38.65 ▲2.35 |
QR Menu /wp-admin/admin.php?page=qr-menu | 3.27 | 35.35 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
woocommerce_shop_page_display |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Qreatmenu - Restaurant QR Menu for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.88 ▼0.34 | 8.60 ▲6.85 | 39.11 ▼1.31 |
Dashboard /wp-admin | 2,215 ▲35 | 5.73 ▲0.06 | 96.28 ▼3.32 | 40.83 ▼4.57 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.08 ▲0.06 | 43.05 ▲5.38 | 38.37 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.18 ▲0.01 | 588.93 ▼74.00 | 62.36 ▲5.44 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.29 ▲0.07 | 102.28 ▼4.01 | 46.17 ▼1.70 |
QR Menu /wp-admin/admin.php?page=qr-menu | 820 | 1.36 | 7.96 | 29.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- woocommerce_shop_page_display
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=qr-menu
- > Error in wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/class-qreat-woocommerce-qr-menu-admin.php+202
Uncaught Error: Call to undefined function wc_get_page_permalink() in wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/class-qreat-woocommerce-qr-menu-admin.php:202
Stack trace:
#0 wp-includes/class-wp-hook.php(310): Qreat_Woocommerce_Qr_Menu_Admin->amc_register_qr_menu_subpage_callback()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/partials/qreat-woocommerce-qr-menu-admin-display.php
- > /wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/public/partials/qreat-woocommerce-qr-menu-public-display.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=qr-menu
- > Network (severe)
wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/img/step-2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=qr-menu
- > Network (severe)
wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/img/step-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=qr-menu
- > Network (severe)
wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/img/step-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=qr-menu
- > Network (severe)
wp-content/plugins/qreatmenu-restaurant-qr-menu-for-woocommerce/admin/img/step-4.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
7 plugin tags: restaurant menu, woocommerce, restaurant, qr, qr menu...
qreatmenu-restaurant-qr-menu-for-woocommerce/qreat-woocommerce-qr-menu.php 85% from 13 tests
The main file in "Qreatmenu - Restaurant QR Menu for WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("qreatmenu-restaurant-qr-menu-for-woocommerce.php" instead of "qreat-woocommerce-qr-menu.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,044 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 101 | 156 | 1,265 |
CSS | 2 | 102 | 13 | 388 |
PHP | 12 | 192 | 557 | 324 |
PO File | 1 | 22 | 25 | 60 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Step-2.png | 61.43KB | 20.58KB | ▼ 66.49% |
admin/img/Step-1.png | 50.90KB | 15.89KB | ▼ 68.78% |
admin/img/Step-4.png | 46.27KB | 17.75KB | ▼ 61.64% |
admin/img/Step-3.png | 68.38KB | 21.30KB | ▼ 68.85% |