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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼0.37ms] Passed 4 tests
An overview of server-side resources used by 1Day Booking Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 38.51 ▼1.36 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.03 ▲2.37 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 52.73 ▲1.51 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 95.34 ▼0.96 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.43 ▼0.66 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 1Day Booking Engine
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 14.18 ▼0.54 | 10.02 ▲8.30 | 37.71 ▼5.50 |
Dashboard /wp-admin | 2,243 ▲66 | 5.91 ▲0.25 | 90.83 ▲0.79 | 43.37 ▲1.53 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 2.38 ▲0.37 | 40.70 ▼2.28 | 37.94 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.25 ▲0.50 | 599.40 ▼76.65 | 34.14 ▼25.78 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.55 ▲0.31 | 100.31 ▼1.66 | 46.12 ▲5.23 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 30× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: room in wp-content/plugins/1day-io/inc/templates/rooms/rates/rates-list.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1day-io/inc/enqueue_scripts.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/1day-io/inc/templates/admin/review.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1day-io/inc/hooks/woocommerce.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/1day-io/inc/shortcodes/search_form.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/1day-io/inc/templates/rooms/data.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/1day-io/inc/shortcodes/search_results.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/1day-io/inc/class/init/init_filter_post_type.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/1day-io/inc/templates/rooms/booking_button.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/1day-io/inc/templates/search/form.php:1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: booking engine, reservation, hotel, hotel booking, booking system...
1day-io/1day-io.php Passed 13 tests
Analyzing the main PHP file in "1Day Booking Engine" version 1.0.4
48 characters long description:
The plugin display hotels and rooms from 1day.io
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,316 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 724 | 169 | 3,311 |
CSS | 2 | 0 | 2 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 33.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 4 | 5.41% |
▷ Public methods | 66 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.81% |
Functions | 72 | |
▷ Named functions | 56 | 77.78% |
▷ Anonymous functions | 16 | 22.22% |
Constants | 8 | |
▷ Global constants | 8 | 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
No PNG files were detected