Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+53
Constant WP_POST_REVISIONS already defined
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.25ms] Passed 4 tests
A check of server-side resources used by SB Hotel Rooms
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.33 ▼36.66 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.42 ▼41.54 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.18 ▼42.79 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.82 ▼91.99 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.19 ▼28.53 |
Rooms /wp-admin/edit.php?post_type=rooms | 2.16 | 6.19 |
Rooms Options /wp-admin/options-general.php?page=jfcow-options-rooms | 2.16 | 6.25 |
New Room /wp-admin/post-new.php?post_type=rooms | 2.16 | 7.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SB Hotel Rooms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲76 | 13.21 ▼1.05 | 1.79 ▼0.08 | 47.00 ▼0.95 |
Dashboard /wp-admin | 2,239 ▲48 | 6.01 ▲1.14 | 102.01 ▼2.88 | 73.23 ▲35.50 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.04 ▲0.01 | 35.26 ▼0.94 | 32.75 ▲0.70 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.39 ▲0.10 | 648.28 ▲41.56 | 90.11 ▲40.54 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.23 ▼0.02 | 98.94 ▼2.86 | 88.79 ▲42.16 |
Rooms /wp-admin/edit.php?post_type=rooms | 1,080 | 1.93 | 30.21 | 27.64 |
Rooms Options /wp-admin/options-general.php?page=jfcow-options-rooms | 842 | 2.02 | 28.07 | 25.73 |
New Room /wp-admin/post-new.php?post_type=rooms | 2,304 | 7.75 | 163.66 | 115.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+55
Undefined index: sb_hotel_options
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+55
Undefined index: sb_hotel_options
- 10 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+74
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=jfcow-options-rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+234
Undefined index: saved
- > GET request to /wp-admin/options-general.php?page=jfcow-options-rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+235
Undefined index: reset
- > GET request to /wp-admin/options-general.php?page=jfcow-options-rooms
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jfcow-options-rooms
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jfcow-options-rooms
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+180
Undefined index: room-details
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Warning in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+143
Illegal string offset 'Price'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+145
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Warning in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php+145
Illegal string offset 'Amenities'
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Notice in wp-content/plugins/sb-hotel-rooms/forms/room_pictures.php+27
Undefined offset: 0
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sb-hotel-rooms/forms/room_pictures.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sb-hotel-rooms/sb_hotel_rooms.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-hotel-rooms/ajax_responses.php:2
- > PHP Notice
Undefined variable: metas in wp-content/plugins/sb-hotel-rooms/forms/room_pictures.php on line 27
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sb-hotel-rooms/forms/room_pictures.php on line 27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=rooms:447:20)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=rooms
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (http://sitebridge.net/wp-content/uploads/2012/10/screenshot1.png), #2 (http://sitebridge.net/wp-content/uploads/2012/10/screenshot2.png)
sb-hotel-rooms/sb_hotel_rooms.php 92% from 13 tests
Analyzing the main PHP file in "SB Hotel Rooms" version 1.0.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sb-hotel-rooms.php" instead of "sb_hotel_rooms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin434 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 60 | 307 |
CSS | 2 | 0 | 13 | 89 |
JavaScript | 2 | 0 | 13 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/room_icon.png | 1.71KB | 0.68KB | ▼ 60.19% |
screenshot1.png | 26.20KB | 25.27KB | ▼ 3.56% |
screenshot2.png | 31.84KB | 30.90KB | ▼ 2.96% |