Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.43ms] Passed 4 tests
Server-side resources used by WooCommerce Accommodation Bookings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.55 ▲2.13 |
Dashboard /wp-admin | 3.37 ▲0.02 | 52.84 ▼11.84 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.63 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 101.74 ▼13.55 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.65 ▲2.22 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Accommodation Bookings
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.28 ▼0.00 | 1.77 ▼0.23 | 48.29 ▲2.20 |
Dashboard /wp-admin | 2,208 ▲34 | 5.64 ▲0.06 | 93.58 ▼3.39 | 45.95 ▲1.12 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.99 ▼0.01 | 45.71 ▲6.78 | 40.37 ▲3.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.72 ▲0.66 | 646.32 ▼18.56 | 56.17 ▲2.79 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▲0.00 | 97.98 ▼3.05 | 43.56 ▼1.40 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-rates-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function absint() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-data.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_text_input() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-rates.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-tabs.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-availability-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_text_input() in wp-content/plugins/woocommerce-accommodation-bookings/includes/admin/views/html-accommodation-booking-availability.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== woocommerce-accommodation-bookings ===
)
woocommerce-accommodation-bookings/woocommerce-accommodation-bookings.php Passed 13 tests
The main PHP file in "WooCommerce Accommodation Bookings" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
64 characters long description:
An accommodations add-on for the WooCommerce Bookings extension.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,144 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 369 | 790 | 1,887 |
JavaScript | 5 | 32 | 49 | 207 |
Sass | 1 | 6 | 0 | 49 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.83 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 9 | 9.18% |
▷ Public methods | 88 | 89.80% |
▷ Protected methods | 1 | 1.02% |
▷ Private methods | 9 | 9.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin