Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/easy-table-booking/includes/admin_function.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; rbytbAdminfunction has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼58.03ms] Passed 4 tests
A check of server-side resources used by Easy Restaurant Table Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.32 | 4.96 ▼36.17 |
Dashboard /wp-admin | 2.21 ▼1.14 | 7.15 ▼47.38 |
Posts /wp-admin/edit.php | 2.21 ▼1.19 | 7.20 ▼46.13 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.72 | 6.76 ▼102.45 |
Media Library /wp-admin/upload.php | 2.21 ▼1.06 | 6.33 ▼33.89 |
Settings /wp-admin/admin.php?page=tbl-settings | 2.21 | 5.99 |
Bookings /wp-admin/admin.php?page=tbl-bookings | 2.21 | 7.10 |
Add Table /wp-admin/admin.php?page=tbl-addtable | 2.21 | 5.92 |
Table List /wp-admin/admin.php?page=tbl-list | 2.21 | 5.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_table_master |
wp_booking_master |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
esytb_default |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Restaurant Table Booking
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲200 | 13.53 ▼1.18 | 9.59 ▲8.01 | 40.04 ▲0.68 |
Dashboard /wp-admin | 2,242 ▲65 | 5.67 ▲0.14 | 88.14 ▼1.46 | 39.92 ▼3.68 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.21 ▲0.22 | 34.63 ▼5.51 | 38.33 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.05 ▲0.11 | 587.51 ▼96.63 | 61.55 ▲2.53 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.26 ▲0.14 | 100.11 ▼16.78 | 42.97 ▼6.58 |
Settings /wp-admin/admin.php?page=tbl-settings | 1,781 | 2.19 | 28.48 | 30.93 |
Bookings /wp-admin/admin.php?page=tbl-bookings | 1,192 | 2.22 | 33.54 | 30.58 |
Add Table /wp-admin/admin.php?page=tbl-addtable | 895 | 2.20 | 28.69 | 28.08 |
Table List /wp-admin/admin.php?page=tbl-list | 884 | 2.19 | 25.52 | 26.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/easy-table-booking/includes/admin_function.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; rbytbAdminfunction has a deprecated constructor
- Zombie tables detected upon uninstall: 2 tables
- wp_table_master
- wp_booking_master
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tbl-list
- > Deprecated in wp-content/plugins/easy-table-booking/includes/admin_function.class.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; rbytbAdminfunction has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=tbl-settings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+560
Undefined index: booked_con
- > GET request to /wp-admin/admin.php?page=tbl-settings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+589
Undefined index: date_format
- > GET request to /wp-admin/admin.php?page=tbl-bookings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+229
Undefined index: filter
- > GET request to /wp-admin/admin.php?page=tbl-bookings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+270
Undefined index: datefrom
- > GET request to /wp-admin/admin.php?page=tbl-bookings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+271
Undefined index: dateto
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tbl-bookings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+285
Undefined index: tm12
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tbl-bookings
- > Notice in wp-content/plugins/easy-table-booking/includes/admin_menu.class.php+297
Undefined index: status
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-table-booking/includes/template-function.php:126
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 27 tag instead of maximum 10
easy-table-booking/easytablebooking.php 85% from 13 tests
"Easy Restaurant Table Booking" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-table-booking.php" instead of "easytablebooking.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,938 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 57 | 94 | 1,656 |
PHP | 4 | 132 | 35 | 1,230 |
JavaScript | 1 | 1 | 0 | 52 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 39.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/jquery-ui/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
assets/js/jquery-ui/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/js/jquery-ui/themes/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/js/jquery-ui/themes/smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/js/jquery-ui/themes/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |