Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.76MB] [CPU: ▲1,040.47ms] 50% from 4 tests
This is a short check of server-side resources used by Solidres - Hotel booking plugin for WordPress
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,396.30ms on /wp-admin/admin.php?page=sr-countries)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,040.47ms on /wp-admin/admin.php?page=sr-countries)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.45 ▲1.99 | 62.31 ▲22.22 |
Dashboard /wp-admin | 6.34 ▲3.04 | 1,464.92 ▲1,409.84 |
Posts /wp-admin/edit.php | 6.38 ▲3.02 | 1,448.63 ▲1,397.12 |
Add New Post /wp-admin/post-new.php | 8.98 ▲3.09 | 1,426.70 ▲1,332.70 |
Media Library /wp-admin/upload.php | 6.23 ▲3.00 | 1,447.66 ▲1,411.58 |
Limit bookings /wp-admin/admin.php?page=sr-limit-bookings | 6.14 | 1,399.21 |
Categories /wp-admin/admin.php?page=sr-categories | 6.12 | 1,400.23 |
Assets /wp-admin/admin.php?page=sr-assets | 6.12 | 1,464.01 |
Employees /wp-admin/admin.php?page=sr-employees | 6.14 | 1,454.96 |
Add new country /wp-admin/admin.php?page=sr-add-new-country | 6.15 | 1,364.79 |
System Info /wp-admin/admin.php?page=sr-systems | 6.15 | 1,655.97 |
Add new asset /wp-admin/admin.php?page=sr-add-new-asset | 6.49 | 1,429.78 |
Add new state /wp-admin/admin.php?page=sr-add-new-state | 6.47 | 1,492.49 |
Room types /wp-admin/admin.php?page=sr-room-types | 6.12 | 1,354.00 |
Countries /wp-admin/admin.php?page=sr-countries | 6.41 | 1,396.30 |
Server storage [IO: ▲2.94MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 378 new files
Database: 27 new tables, 9 new options
New tables |
---|
wp_sr_extras |
wp_sr_reservations |
wp_sr_reservation_assets |
wp_sr_geo_states |
wp_sr_tariffs |
wp_sr_config_data |
wp_sr_room_type_extra_xref |
wp_sr_tariff_details |
wp_sr_reservation_room_extra_xref |
wp_sr_media_reservation_assets_xref |
... |
New WordPress options |
---|
widget_sr_widget_check_availability |
widget_sr_widget_currency |
theysaidso_admin_options |
solidres_db_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Solidres - Hotel booking plugin for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,295 ▲509 | 16.44 ▲1.81 | 17.26 ▲14.71 | 44.07 ▲0.21 |
Dashboard /wp-admin | 2,399 ▲222 | 6.15 ▲0.55 | 100.45 ▼1.71 | 43.24 ▲1.31 |
Posts /wp-admin/edit.php | 2,323 ▲220 | 3.52 ▲1.48 | 48.08 ▲12.36 | 33.32 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,869 ▲343 | 23.91 ▲0.87 | 690.27 ▲5.00 | 37.67 ▼27.58 |
Media Library /wp-admin/upload.php | 1,619 ▲222 | 5.59 ▲1.37 | 109.68 ▼13.20 | 49.85 ▲1.68 |
Limit bookings /wp-admin/admin.php?page=sr-limit-bookings | 1,010 | 3.04 | 35.70 | 28.65 |
Categories /wp-admin/admin.php?page=sr-categories | 1,269 | 3.53 | 45.89 | 30.29 |
Assets /wp-admin/admin.php?page=sr-assets | 2,400 | 3.41 | 57.88 | 34.01 |
Employees /wp-admin/admin.php?page=sr-employees | 1,013 | 3.06 | 35.61 | 24.08 |
Add new country /wp-admin/admin.php?page=sr-add-new-country | 1,114 | 3.11 | 39.79 | 28.46 |
System Info /wp-admin/admin.php?page=sr-systems | 1,480 | 3.20 | 43.08 | 74.64 |
Add new asset /wp-admin/admin.php?page=sr-add-new-asset | 4,316 | 10.42 | 224.66 | 70.34 |
Add new state /wp-admin/admin.php?page=sr-add-new-state | 2,118 | 3.21 | 40.99 | 29.06 |
Room types /wp-admin/admin.php?page=sr-room-types | 1,370 | 3.07 | 49.49 | 27.83 |
Countries /wp-admin/admin.php?page=sr-countries | 1,426 | 3.44 | 44.15 | 32.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_sr_widget_check_availability
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_sr_widget_currency
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sr-room-types
- > Warning in wp-content/plugins/solidres/includes/class-sr-list-table.php+86
count(): Parameter must be an array or an object that implements Countable
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/solidres/templates/emails/reservation_note_notification_customer_html_inliner.php
- > /wp-content/plugins/solidres/templates/emails/reservation_complete_owner_html_inliner.php
- > /wp-content/plugins/solidres/templates/emails/reservation_complete_customer_html_inliner.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sr-countries
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&ver=6.3.1 235:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
solidres/solidres.php Passed 13 tests
The principal PHP file in "Solidres - Hotel booking plugin for WordPress" v. 0.9.4 is loaded by WordPress automatically on each request
45 characters long description:
Solidres - Hotel booking plugin for WordPress
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
There were no executable files found in this plugin45,067 lines of code in 339 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 167 | 3,519 | 3,585 | 29,767 |
JavaScript | 158 | 1,460 | 3,076 | 10,692 |
CSS | 13 | 525 | 137 | 4,598 |
SVG | 1 | 1 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 39.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 243.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 2 | 3.51% |
▷ Concrete classes | 55 | 96.49% |
▷ Final classes | 1 | 1.82% |
Methods | 513 | |
▷ Static methods | 94 | 18.32% |
▷ Public methods | 478 | 93.18% |
▷ Protected methods | 11 | 2.14% |
▷ Private methods | 24 | 4.68% |
Functions | 79 | |
▷ Named functions | 74 | 93.67% |
▷ Anonymous functions | 5 | 6.33% |
Constants | 64 | |
▷ Global constants | 55 | 85.94% |
▷ Class constants | 9 | 14.06% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 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/lib/colorbox/images/controls.png | 1.59KB | 1.67KB | 0.00% |
assets/images/close_btn.png | 1.61KB | 0.76KB | ▼ 53.06% |
assets/images/icon-hotel-4.png | 0.98KB | 0.68KB | ▼ 30.23% |
assets/lib/bootstrap/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
assets/images/icon-hotel-5.png | 1.00KB | 0.68KB | ▼ 31.64% |