Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.93ms] Passed 4 tests
Server-side resources used by Sports Booking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.28 ▲7.44 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.79 ▼13.04 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.86 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 87.77 ▼2.82 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.30 ▲0.43 |
Calendar View /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view | 3.25 | 42.56 |
Add New Booking /wp-admin/admin.php?page=nd-sports-booking-settings-add-orders | 3.26 | 35.75 |
Add Timing /wp-admin/admin.php?page=nd-sports-booking-add-timing | 3.28 | 31.67 |
Stripe /wp-admin/admin.php?page=nd-sports-booking-stripe | 3.28 | 38.96 |
Premium Addons /wp-admin/admin.php?page=nd-sports-booking-settings-premium-addons | 3.28 | 32.66 |
Import Export /wp-admin/admin.php?page=nd-sports-booking-settings-import-export | 3.28 | 37.11 |
Paypal /wp-admin/admin.php?page=nd-sports-booking-paypal | 3.28 | 37.03 |
Sports /wp-admin/edit.php?post_type=nd_spt_cpt_1 | 3.36 | 40.42 |
All Bookings /wp-admin/admin.php?page=nd-sports-booking-settings-orders | 3.37 | 30.56 |
Sports Booking /wp-admin/admin.php?page=nd-sports-booking-settings | 3.29 | 34.65 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 76 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_nd_spt_booking |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Sports Booking
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲249 | 13.69 ▼0.68 | 5.31 ▲3.64 | 43.72 ▲3.98 |
Dashboard /wp-admin | 2,317 ▲126 | 5.88 ▼0.02 | 118.05 ▲19.09 | 45.01 ▲1.33 |
Posts /wp-admin/edit.php | 2,196 ▲110 | 2.20 ▲0.15 | 38.38 ▲0.75 | 36.46 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,603 ▲83 | 23.16 ▼0.02 | 675.88 ▼13.33 | 59.74 ▲1.88 |
Media Library /wp-admin/upload.php | 1,499 ▲111 | 4.43 ▲0.32 | 104.11 ▼10.67 | 47.29 ▲0.55 |
Calendar View /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view | 1,003 | 1.96 | 29.50 | 26.34 |
Add New Booking /wp-admin/admin.php?page=nd-sports-booking-settings-add-orders | 1,449 | 2.05 | 24.46 | 28.06 |
Add Timing /wp-admin/admin.php?page=nd-sports-booking-add-timing | 982 | 2.05 | 24.06 | 28.24 |
Stripe /wp-admin/admin.php?page=nd-sports-booking-stripe | 1,828 | 2.03 | 24.73 | 29.74 |
Premium Addons /wp-admin/admin.php?page=nd-sports-booking-settings-premium-addons | 1,376 | 2.21 | 27.22 | 35.07 |
Import Export /wp-admin/admin.php?page=nd-sports-booking-settings-import-export | 1,022 | 2.02 | 22.62 | 27.12 |
Paypal /wp-admin/admin.php?page=nd-sports-booking-paypal | 1,307 | 2.03 | 24.14 | 28.17 |
Sports /wp-admin/edit.php?post_type=nd_spt_cpt_1 | 1,169 | 1.96 | 31.88 | 34.64 |
All Bookings /wp-admin/admin.php?page=nd-sports-booking-settings-orders | 866 | 2.06 | 24.11 | 25.51 |
Sports Booking /wp-admin/admin.php?page=nd-sports-booking-settings | 1,348 | 2.03 | 24.41 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_nd_spt_booking
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view
- > Notice in wp-content/plugins/nd-sports-booking/addons/calendar-view/index.php+20
Undefined index: nd_spt_arrive_from_filter
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-orders
- > Notice in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/orders.php+7
Undefined index: nd_spt_order_status
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view
- > Notice in wp-content/plugins/nd-sports-booking/addons/calendar-view/index.php+22
Undefined index: nd_spt_date
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view
- > Notice in wp-content/plugins/nd-sports-booking/addons/calendar-view/index.php+23
Undefined index: nd_spt_sport
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-calendar-view
- > Notice in wp-content/plugins/nd-sports-booking/inc/functions/functions.php+55
A non well formed numeric value encountered
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-add-orders
- > Notice in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/add.php+263
Undefined variable: nd_spt_occasions_array
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-add-orders
- > Warning in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/add.php+263
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-orders
- > Notice in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/orders.php+5
Undefined index: nd_spt_pag_from
- > GET request to /wp-admin/admin.php?page=nd-sports-booking-settings-orders
- > Notice in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/orders.php+6
Undefined index: nd_spt_pag_to
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 52× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: nd_spt_month_today in wp-content/plugins/nd-sports-booking/inc/shortcodes/include/nd_spt_booking_calendar.php on line 6
- > PHP Notice
Undefined variable: match_finalresultlabel in wp-content/plugins/nd-sports-booking/addons/elementor/widgets/match/layout/layout-1.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-sports-booking/inc/admin/plugin-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-sports-booking/inc/cpt/cpt-1.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-sports-booking/inc/admin/5-stripe/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nd-sports-booking/inc/admin/3-orders/include/add.php:4
- > PHP Notice
Undefined variable: match_finalresultlabel in wp-content/plugins/nd-sports-booking/addons/elementor/widgets/match/layout/layout-1.php on line 18
- > PHP Notice
Undefined variable: match_player1result in wp-content/plugins/nd-sports-booking/addons/elementor/widgets/match/layout/layout-1.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function nd_spt_get_next_prev_month_year() in wp-content/plugins/nd-sports-booking/inc/shortcodes/include/nd_spt_booking_calendar.php:9
- > PHP Notice
Undefined variable: match_player2label in wp-content/plugins/nd-sports-booking/addons/elementor/widgets/match/layout/layout-1.php on line 50
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
2 plugin tags: sports, booking
nd-sports-booking/nd-sports-booking.php 92% from 13 tests
This is the main PHP file of "Sports Booking" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 210 characters long)
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
Good job! No executable or dangerous file extensions detected6,896 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 2,894 | 375 | 5,329 |
CSS | 9 | 178 | 63 | 948 |
JavaScript | 4 | 351 | 156 | 543 |
SVG | 2 | 0 | 2 | 76 |
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.18 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 4 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
23 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-down-grey.png | 1.06KB | 0.19KB | ▼ 82.46% |
assets/img/remove.png | 0.16KB | 0.15KB | ▼ 9.52% |
assets/img/004-restaurant.png | 18.86KB | 3.49KB | ▼ 81.48% |
inc/shortcodes/include/004-sport.png | 13.56KB | 4.11KB | ▼ 69.70% |
assets/img/001-time.png | 18.75KB | 3.35KB | ▼ 82.13% |