Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼1.69ms] Passed 4 tests
An overview of server-side resources used by Beds24 Online Booking
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 47.76 ▲8.10 |
Dashboard /wp-admin | 3.55 ▲0.25 | 52.01 ▼3.16 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.56 ▼1.56 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 88.54 ▼7.27 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.34 ▲5.22 |
Beds24 /wp-admin/options-general.php?page=beds24-admin-menu | 3.47 | 37.91 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/beds24-online-booking/" and "wp-content/uploads/"
- (new file) wp-content/plugins/activation_output_buffer.html
Filesystem: 43 new files
Database: no new tables, 28 new options
New WordPress options |
---|
beds24_target |
widget_beds24_widget |
beds24_color |
beds24_advancedays |
beds24_referer |
beds24_numnight |
beds24_hidecalendar |
beds24_custom |
beds24_layout |
beds24_ownerid |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beds24 Online Booking
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲180 | 13.66 ▼0.71 | 11.16 ▲9.35 | 41.81 ▼4.00 |
Dashboard /wp-admin | 2,220 ▲43 | 4.85 ▼0.78 | 87.68 ▼4.29 | 36.91 ▼8.47 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.31 ▲0.32 | 35.77 ▲0.46 | 30.65 ▼8.57 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 18.46 ▼4.55 | 621.57 ▼76.05 | 34.44 ▼21.12 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.45 ▲0.27 | 100.54 ▼5.94 | 42.91 ▼2.55 |
Beds24 /wp-admin/options-general.php?page=beds24-admin-menu | 5,715 | 2.33 | 62.87 | 44.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_beds24_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/beds24-online-booking/inc/plugin-options/plugin-languages.php
- > /wp-content/plugins/beds24-online-booking/inc/plugin-options/plugin-documentation.php
- > /wp-content/plugins/beds24-online-booking/theme-files/beds24-searchbox.php
- > /wp-content/plugins/beds24-online-booking/theme-files/beds24-box.php
- > /wp-content/plugins/beds24-online-booking/theme-files/beds24-strip.php
- > /wp-content/plugins/beds24-online-booking/theme-files/beds24-prop-xml.php
- > /wp-content/plugins/beds24-online-booking/inc/plugin-options/plugin-adminfooter.php
- > /wp-content/plugins/beds24-online-booking/inc/plugin-options/plugin-agency.php
- > /wp-content/plugins/beds24-online-booking/inc/plugin-options/plugin-about.php
- 252× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: translate in wp-content/plugins/beds24-online-booking/theme-files/beds24-strip.php on line 44
- > PHP Notice
Undefined variable: translate in wp-content/plugins/beds24-online-booking/theme-files/beds24-box.php on line 34
- > PHP Notice
Undefined index: category4 in wp-content/plugins/beds24-online-booking/theme-files/beds24-searchbox.php on line 183
- > PHP Notice
Undefined variable: post in wp-content/plugins/beds24-online-booking/theme-files/beds24-prop-post.php on line 5
- > PHP Notice
Undefined variable: translate in wp-content/plugins/beds24-online-booking/theme-files/beds24-strip.php on line 33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/beds24-online-booking/theme-files/beds24-box.php on line 24
- > PHP Notice
Undefined variable: translate in wp-content/plugins/beds24-online-booking/theme-files/beds24-strip.php on line 33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/beds24-online-booking/theme-files/beds24-box.php on line 34
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/beds24-online-booking/theme-files/beds24-box.php on line 34
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/beds24-online-booking/theme-files/beds24-strip.php on line 44
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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 your attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
beds24-online-booking/beds24-online-booking.php 92% from 13 tests
Analyzing the main PHP file in "Beds24 Online Booking" version 2.0.23
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 580 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,879 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 289 | 61 | 2,879 |
JavaScript | 21 | 105 | 78 | 732 |
CSS | 2 | 38 | 0 | 268 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme-files/include/ic_calendar.png | 1.67KB | 0.90KB | ▼ 46.44% |
theme-files/include/ic_calendar2.png | 0.68KB | 0.76KB | 0.00% |