Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.65ms] Passed 4 tests
An overview of server-side resources used by WEBD Woo Event Bookings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.54 ▲3.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.05 ▼9.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.61 ▲0.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.23 ▼0.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.13 ▼0.91 |
Server storage [IO: ▲4.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 327 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WEBD Woo Event Bookings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.66 ▼0.61 | 1.86 ▲0.14 | 46.53 ▲2.36 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▲0.95 | 97.54 ▼7.54 | 43.40 ▲2.45 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.04 | 40.72 ▲2.86 | 36.85 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.67 ▼5.27 | 621.11 ▼59.45 | 50.47 ▼0.99 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.04 | 96.05 ▼18.62 | 40.00 ▼11.52 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-search.php:322
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/timeline.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webd-woo-event-bookings/includes/admin/Meta-Boxes/classes.fields.php:633
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webd-woo-event-bookings/includes/class-email-reminder.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/webd_view-sc-grid.php:101
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/webd-woo-event-bookings/templates/webd_view/webd-view-listing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-grid.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/event-carousel.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/webd-woo-event-bookings/shortcode/venues-sc.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/webd-woo-event-bookings/shortcode/content/content-grid-classic.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in webd-woo-event-bookings/assets to your readme.txt
webd-woo-event-bookings/webd-event-bookings-daywise-cost.php 92% from 13 tests
This is the main PHP file of "WEBD Woo Event Bookings" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("webd-woo-event-bookings.php" instead of "webd-event-bookings-daywise-cost.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected52,970 lines of code in 271 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 146 | 2,002 | 3,541 | 22,464 |
PHP | 57 | 1,291 | 1,045 | 16,989 |
CSS | 31 | 614 | 614 | 9,378 |
Sass | 13 | 28 | 24 | 1,560 |
LESS | 13 | 28 | 34 | 1,550 |
SVG | 1 | 0 | 0 | 655 |
JSON | 6 | 0 | 0 | 184 |
Markdown | 1 | 27 | 0 | 72 |
PO File | 2 | 16 | 20 | 63 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 23.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 213 | |
▷ Static methods | 2 | 0.94% |
▷ Public methods | 206 | 96.71% |
▷ Protected methods | 3 | 1.41% |
▷ Private methods | 4 | 1.88% |
Functions | 179 | |
▷ Named functions | 179 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
37 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
shortcode/markerclusterer/images/people45.png | 2.03KB | 1.75KB | ▼ 13.68% |
shortcode/markerclusterer/images/people35.png | 1.36KB | 1.43KB | 0.00% |
includes/admin/Meta-Boxes/css/select-js-css/jquery-ui/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
includes/admin/Meta-Boxes/css/select-js-css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
shortcode/markerclusterer/images/heart50.png | 2.93KB | 1.96KB | ▼ 33.08% |