Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.88ms] Passed 4 tests
A check of server-side resources used by WooCommerce Booking Bundle Hours
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.62 ▲0.32 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.28 ▲0.46 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.41 ▲0.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.94 ▼12.84 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.56 ▲5.72 |
Booking Bundle Hours /wp-admin/admin.php?page=woo_booking_bundle_hours | 3.31 | 35.27 |
Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_bookingbundlehours |
New WordPress options |
---|
woo_bbh_category |
woo_booking_bundle_hours_db_version |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Booking Bundle Hours
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.47 ▲0.12 | 2.59 ▲0.98 | 45.90 ▲3.94 |
Dashboard /wp-admin | 2,215 ▲38 | 5.56 ▼0.15 | 83.49 ▼3.52 | 38.89 ▼3.67 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.99 ▲0.01 | 37.68 ▲1.62 | 33.28 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.43 ▲0.33 | 666.90 ▲3.21 | 59.33 ▲12.08 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.18 ▼0.00 | 94.99 ▼5.24 | 41.27 ▼1.89 |
Booking Bundle Hours /wp-admin/admin.php?page=woo_booking_bundle_hours | 1,106 | 2.07 | 27.32 | 27.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, booking, hours, bundle, services
woo-booking-bundle-hours/woo-booking-bundle-hours.php 77% from 13 tests
The principal PHP file in "WooCommerce Booking Bundle Hours" v. 0.7.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "7.0")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 167 characters long)
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 detected3,990 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 232 | 317 | 1,866 |
CSS | 7 | 98 | 54 | 1,353 |
PHP | 8 | 549 | 122 | 771 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
assets/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |