Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▼2.20ms] Passed 4 tests
Analyzing server-side resources used by Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 48.55 ▲9.88 |
Dashboard /wp-admin | 3.95 ▲0.64 | 54.35 ▲3.35 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 49.34 ▼7.11 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 90.20 ▼13.74 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 41.87 ▲8.71 |
Install WBBM Plugins /wp-admin/plugins.php?page=wbbm-plugins | 3.88 | 37.07 |
Quick Setup /wp-admin/admin.php?page=wbbm_init_quick_setup | 3.78 | 36.07 |
Bus /wp-admin/admin.php?page=wbbm_bus | 3.78 | 37.55 |
Server storage [IO: ▲3.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 144 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wbbm_bus_booking_list |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲303 | 13.38 ▼1.02 | 2.00 ▲0.32 | 46.50 ▲5.77 |
Dashboard /wp-admin | 2,477 ▲286 | 5.23 ▲0.36 | 122.70 ▲18.95 | 46.74 ▲1.95 |
Posts /wp-admin/edit.php | 2,321 ▲229 | 2.20 ▲0.08 | 47.01 ▲6.95 | 38.17 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,596 ▲67 | 23.52 ▲5.21 | 648.17 ▲4.21 | 57.54 ▲4.52 |
Media Library /wp-admin/upload.php | 1,687 ▲299 | 4.55 ▲0.36 | 106.08 ▲11.21 | 47.70 ▲1.36 |
Install WBBM Plugins /wp-admin/plugins.php?page=wbbm-plugins | 1,129 | 1.90 | 45.69 | 30.09 |
Quick Setup /wp-admin/admin.php?page=wbbm_init_quick_setup | 1,157 | 2.37 | 48.48 | 52.97 |
Bus /wp-admin/admin.php?page=wbbm_bus | 1,157 | 2.37 | 47.54 | 44.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wbbm_bus_booking_list
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 items
- 25× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: cpt_label in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_configuration.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_pickuppoint.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_ondayoffday.php:3
- > PHP Fatal error
Uncaught Error: Class 'MAGE_Setting_API' not found in wp-content/plugins/bus-booking-manager/inc/wbbm_admin_settings.php:8
- > PHP Warning
Use of undefined constant WBTM_PLUGIN_URL - assumed 'WBTM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_configuration.php on line 2
- > PHP Notice
Undefined variable: cpt_label in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_routing.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bus-booking-manager/templates/taxonomy-organozer.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_configuration.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_routing.php:3
- > PHP Warning
Use of undefined constant WBTM_PLUGIN_URL - assumed 'WBTM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bus-booking-manager/inc/clean/layout/bus_tax.php on line 2
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/plugins.php?page=wbbm-plugins
- > 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: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at mp_load_date_picker (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993607:79:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993607:94:3)\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
- > GET request to /wp-admin/plugins.php?page=wbbm-plugins
- > 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-booking-manager//assets/admin/mp_admin_settings.js?ver=1696993607: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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wbbm_bus
- > 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 ReferenceError: mp_date_format is not defined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wbbm_bus
- > 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=wbbm_init_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: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at mp_load_date_picker (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993608:79:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993608:94:3)\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
- > GET request to /wp-admin/admin.php?page=wbbm_init_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-booking-manager//assets/admin/mp_admin_settings.js?ver=1696993608: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
- > GET request to /wp-admin/admin.php?page=wbbm_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: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at mp_load_date_picker (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993610:79:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/bus-booking-manager//assets/helper/mp_style/mp_script.js?ver=1696993610:94:3)\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
- > GET request to /wp-admin/admin.php?page=wbbm_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-booking-manager//assets/admin/mp_admin_settings.js?ver=1696993610: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 important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in bus-booking-manager/assets to your readme.txt
bus-booking-manager/woocommerce-bus.php 92% from 13 tests
The main file in "Multipurpose Ticket Booking Manager (Bus/Train/Ferry/Boat/Shuttle)" v. 4.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bus-booking-manager.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
There were no executable files found in this plugin49,112 lines of code in 98 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 5,764 | 1,351 | 34,094 |
CSS | 22 | 1,131 | 449 | 8,632 |
JavaScript | 28 | 487 | 556 | 6,386 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,605)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 122)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 227.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,605.00 |
Average method complexity | 15.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 122.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 393 | |
▷ Static methods | 26 | 6.62% |
▷ Public methods | 342 | 87.02% |
▷ Protected methods | 6 | 1.53% |
▷ Private methods | 45 | 11.45% |
Functions | 144 | |
▷ Named functions | 142 | 98.61% |
▷ Anonymous functions | 2 | 1.39% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.56MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/arrow_down.png | 1.06KB | 0.24KB | ▼ 77.47% |
assets/helper/images/extra_icon.png | 8.99KB | 3.74KB | ▼ 58.35% |
assets/helper/images/welcome/withMage.png | 50.10KB | 19.94KB | ▼ 60.21% |
images/bus-placeholder.png | 3.62KB | 1.72KB | ▼ 52.44% |
css/images/ui-icons_222222_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |