Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.54ms] Passed 4 tests
An overview of server-side resources used by Sports Booking Slot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.09 ▲0.24 |
Dashboard /wp-admin | 3.54 ▲0.24 | 54.15 ▼1.26 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.64 ▲4.24 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 96.04 ▲4.03 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 39.09 ▲3.14 |
Booking Slot Lists /wp-admin/admin.php?page=sports-booking-slot | 3.40 | 35.68 |
Add New Slot /wp-admin/admin.php?page=sports-booking-slot&action=new | 3.37 | 35.21 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
onsbks_version |
sbks_installed |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sports Booking Slot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.27 ▼1.08 | 4.57 ▲2.53 | 39.23 ▼5.00 |
Dashboard /wp-admin | 2,236 ▲48 | 5.83 ▼0.07 | 101.96 ▼7.58 | 39.93 ▼4.55 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.00 ▼0.02 | 34.63 ▼10.98 | 36.03 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.33 ▼0.11 | 666.67 ▲35.12 | 54.57 ▼0.03 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.31 ▲0.06 | 97.42 ▼9.80 | 45.05 ▼0.20 |
Booking Slot Lists /wp-admin/admin.php?page=sports-booking-slot | 882 | 2.04 | 26.10 | 24.64 |
Add New Slot /wp-admin/admin.php?page=sports-booking-slot&action=new | 1,258 | 2.04 | 25.59 | 23.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- onsbks_version
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- sbks_installed
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sports-booking-slot/includes/Frontend/views/newbook.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: products in wp-content/plugins/sports-booking-slot/includes/Frontend/views/newbook.php on line 27
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sports-booking-slot/includes/Frontend/views/newbook.php on line 58
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sports-booking-slot/includes/Frontend/views/newbook.php on line 27
- > PHP Notice
Undefined variable: post_metas in wp-content/plugins/sports-booking-slot/includes/Frontend/views/newbook.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function onsbks_get_product_id_title() in wp-content/plugins/sports-booking-slot/includes/Admin/views/address-new.php:7
- > PHP Fatal error
Uncaught Error: Class 'ONSBKS_Slots\\Includes\\Admin\\SlotList' not found in wp-content/plugins/sports-booking-slot/includes/Admin/views/address-list.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: sports-booking, games, booking-slot
sports-booking-slot/sports-booking-slot.php Passed 13 tests
"Sports Booking Slot" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
75 characters long description:
This plugin allow users to book different available slots of sports venues.
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
Everything looks great! No dangerous files found in this plugin2,070 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 342 | 689 | 1,431 |
CSS | 2 | 34 | 12 | 400 |
JavaScript | 2 | 29 | 32 | 220 |
JSON | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 89 | |
▷ Static methods | 15 | 16.85% |
▷ Public methods | 87 | 97.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.25% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 2.09MB with 1.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-9.png | 52.20KB | 26.86KB | ▼ 48.55% |
assets/screenshot-6.png | 79.95KB | 30.55KB | ▼ 61.78% |
assets/screenshot-11.png | 109.48KB | 55.05KB | ▼ 49.72% |
assets/banner-1880x609.png | 598.20KB | 174.04KB | ▼ 70.91% |
assets/icon-128x128.png | 24.02KB | 8.12KB | ▼ 66.18% |