Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.86ms] Passed 4 tests
Analyzing server-side resources used by Bus Ticket Booking with Seat Reservation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.18 ▼3.13 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.05 ▼11.49 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.62 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.05 ▼13.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.91 ▲4.02 |
Bus /wp-admin/admin.php?page=wbtm_bus | 3.22 | 28.18 |
Quick Setup /wp-admin/admin.php?page=wbtm_quick_setup | 3.22 | 33.51 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bus Ticket Booking with Seat Reservation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲277 | 13.27 ▼1.12 | 1.69 ▼0.03 | 44.46 ▼2.27 |
Dashboard /wp-admin | 2,420 ▲232 | 5.14 ▲0.26 | 107.01 ▼8.08 | 40.27 ▼1.84 |
Posts /wp-admin/edit.php | 2,270 ▲181 | 2.08 ▲0.04 | 42.37 ▲7.59 | 32.97 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.41 ▲0.51 | 615.85 ▼28.06 | 51.49 ▲1.66 |
Media Library /wp-admin/upload.php | 1,635 ▲253 | 4.48 ▲0.29 | 104.92 ▲7.46 | 42.22 ▼4.72 |
Bus /wp-admin/admin.php?page=wbtm_bus | 1,103 | 2.35 | 45.43 | 50.64 |
Quick Setup /wp-admin/admin.php?page=wbtm_quick_setup | 1,106 | 2.31 | 45.90 | 41.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/templates/bus-search-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/admin/template/pickup_point.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/templates/bus-search-result.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/admin/template/seat_pricing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/template-hooks/search-form/button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/template-hooks/get_form_data.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/templates/bus-search-form.php:1
- > PHP Fatal error
require_once(): Failed opening required 'WBTM_PLUGIN_DIRpublic/template-hooks/get_form_data.php' (include_path='.:/usr/share/php') in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/template-hooks/templating.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/template-hooks/search-form/dates.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bus-ticket-booking-with-seat-reservation/public/templates/bus-search-form-fields.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wbtm_bus
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bus-ticket-booking-with-seat-reservation//assets/admin/mp_admin_settings.js?ver=1696835415:22:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wbtm_quick_setup
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).find(...).sortable is not a function
- > GET request to /wp-admin/admin.php?page=wbtm_quick_setup
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bus-ticket-booking-with-seat-reservation//assets/admin/mp_admin_settings.js?ver=1696835417:22:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in bus-ticket-booking-with-seat-reservation/assets to your readme.txt
bus-ticket-booking-with-seat-reservation/woocommerce-bus.php 92% from 13 tests
The entry point to "Bus Ticket Booking with Seat Reservation" version 5.2.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bus-ticket-booking-with-seat-reservation.php" instead of "woocommerce-bus.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin54,596 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 6,343 | 1,934 | 37,006 |
CSS | 46 | 1,306 | 784 | 10,511 |
JavaScript | 22 | 631 | 367 | 4,771 |
PO File | 2 | 1,023 | 1,588 | 2,308 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,641)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 166.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,641.00 |
Average method complexity | 13.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 504 | |
▷ Static methods | 27 | 5.36% |
▷ Public methods | 418 | 82.94% |
▷ Protected methods | 6 | 1.19% |
▷ Private methods | 80 | 15.87% |
Functions | 171 | |
▷ Named functions | 171 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
86 PNG files occupy 0.54MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/helper/images/welcome/missing_img.png | 76.65KB | 30.46KB | ▼ 60.26% |
admin/assets/css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
public/seat-template/images/seat-panel-single-left.png | 1.04KB | 0.91KB | ▼ 12.39% |
public/seat-template/images/arrow_up.png | 1.03KB | 0.23KB | ▼ 77.65% |
admin/assets/css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |