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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.42ms] Passed 4 tests
An overview of server-side resources used by Restaurant Menu - Food Ordering System - Table Reservation
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.98 ▲6.52 |
Dashboard /wp-admin | 3.42 ▲0.08 | 45.22 ▼18.27 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.80 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.01 ▼17.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 36.81 ▲3.98 |
Overview /wp-admin/admin.php?page=glf-overview | 3.30 | 33.93 |
Settings /wp-admin/admin.php?page=glf-settings | 3.36 | 32.42 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 119 new files
Database: no new tables, 11 new options
New WordPress options |
---|
glf_mor_restaurant_data |
glf_check_old_widgets_elementor |
widget_glf-mor-commerce |
glf_mor_installation_id |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
glf_plugin_redirect |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restaurant Menu - Food Ordering System - Table Reservation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 13.61 ▼0.76 | 7.00 ▲5.35 | 38.10 ▼1.39 |
Dashboard /wp-admin | 2,246 ▲97 | 5.97 ▲0.31 | 113.06 ▲10.53 | 82.99 ▲39.67 |
Posts /wp-admin/edit.php | 2,155 ▲69 | 2.10 ▲0.08 | 39.23 ▲4.41 | 34.92 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6,368 ▲4,826 | 23.53 ▲5.45 | 848.93 ▲226.22 | 42.87 ▼17.06 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.27 ▲0.10 | 99.47 ▲1.35 | 75.34 ▲32.27 |
Overview /wp-admin/admin.php?page=glf-overview | 954 | 2.24 | 30.21 | 30.57 |
Settings /wp-admin/admin.php?page=glf-settings | 951 | 1.39 | 9.34 | 25.51 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- glf_plugin_redirect
- can_compress_scripts
- widget_recent-comments
- glf_check_old_widgets_elementor
- widget_glf-mor-commerce
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid url: ""
menu-ordering-reservations/restaurant-system.php 85% from 13 tests
This is the main PHP file of "Restaurant Menu - Food Ordering System - Table Reservation" version 2.3.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 309 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("menu-ordering-reservations.php" instead of "restaurant-system.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected10,321 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 805 | 671 | 5,265 |
CSS | 6 | 203 | 8 | 2,340 |
JavaScript | 12 | 188 | 25 | 1,290 |
Sass | 1 | 169 | 0 | 1,112 |
SVG | 21 | 32 | 0 | 221 |
PO File | 1 | 31 | 38 | 85 |
JSON | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 246 | |
▷ Static methods | 91 | 36.99% |
▷ Public methods | 225 | 91.46% |
▷ Protected methods | 11 | 4.47% |
▷ Private methods | 10 | 4.07% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 17 | |
▷ Global constants | 7 | 41.18% |
▷ Class constants | 10 | 58.82% |
▷ Public constants | 10 | 100.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
22 PNG files occupy 1.10MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 121.92KB | 84.95KB | ▼ 30.32% |
assets/images/partner-dashboard-restaurants-overview-browser-0c728ae305.png | 32.45KB | 32.52KB | 0.00% |
assets/images/help/publishing/q3-1.png | 125.73KB | 35.67KB | ▼ 71.63% |
assets/images/logo.png | 2.26KB | 0.83KB | ▼ 63.38% |
assets/images/help/publishing/q2-2.png | 61.26KB | 18.60KB | ▼ 69.63% |