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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.74MB] [CPU: ▲8.71ms] Passed 4 tests
An overview of server-side resources used by Book a Room
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 45.93 ▲6.92 |
Dashboard /wp-admin | 5.29 ▲1.99 | 63.17 ▲12.83 |
Posts /wp-admin/edit.php | 5.41 ▲2.05 | 64.23 ▲13.54 |
Add New Post /wp-admin/post-new.php | 7.87 ▲1.99 | 99.45 ▲1.56 |
Media Library /wp-admin/upload.php | 5.22 ▲1.99 | 49.92 ▲16.21 |
Search /wp-admin/admin.php?page=bookaroom_meetings_search | 5.28 | 46.24 |
Approved [0] /wp-admin/admin.php?page=bookaroom_meetings_approvedRequests | 5.24 | 48.01 |
Content Admin /wp-admin/admin.php?page=bookaroom_Settings_Content | 5.26 | 48.65 |
Create Event /wp-admin/admin.php?page=bookaroom_event_management | 5.47 | 51.68 |
Containers Admin /wp-admin/admin.php?page=bookaroom_Settings_RoomCont | 5.20 | 42.68 |
Search Registrations /wp-admin/admin.php?page=bookaroom_event_management_customerSearch | 5.23 | 45.71 |
Pend. Payments [0] /wp-admin/admin.php?page=bookaroom_meetings_pendingPayment | 5.24 | 72.06 |
Room Admin /wp-admin/admin.php?page=bookaroom_Settings_Rooms | 5.19 | 45.80 |
Denied [0] /wp-admin/admin.php?page=bookaroom_meetings_deniedRequests | 5.24 | 45.63 |
Server storage [IO: ▲1.91MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 197 new files
Database: 16 new tables, 64 new options
New tables |
---|
wp_bookaroom_closings |
wp_bookaroom_roomConts |
wp_bookaroom_eventCats |
wp_bookaroom_times_deleted |
wp_bookaroom_event_ages |
wp_bookaroom_cityList |
wp_bookaroom_rooms |
wp_bookaroom_registrations |
wp_bookaroom_reservations_deleted |
wp_bookaroom_roomConts_members |
... |
New WordPress options |
---|
bookaroom_hide_contract |
bookaroom_regChange_subject |
can_compress_scripts |
bookaroom_addressType |
bookaroom_profit_pending_body |
bookaroom_profitDeposit |
bookaroom_regChange_body |
widget_theysaidso_widget |
bookaroom_newAlert_subject |
bookaroom_cleanupIncrement |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Book a Room
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,335 ▲600 | 15.07 ▲0.71 | 11.03 ▲8.99 | 36.81 ▼8.77 |
Dashboard /wp-admin | 2,442 ▲254 | 5.63 ▼0.24 | 119.64 ▲11.45 | 41.09 ▼4.88 |
Posts /wp-admin/edit.php | 2,325 ▲233 | 2.35 ▲0.33 | 50.87 ▲10.86 | 35.58 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,692 ▲150 | 23.32 ▲5.16 | 692.34 ▲53.28 | 55.70 ▼4.32 |
Media Library /wp-admin/upload.php | 1,624 ▲242 | 4.76 ▲0.54 | 103.93 ▲3.52 | 42.15 ▼1.24 |
Search /wp-admin/admin.php?page=bookaroom_meetings_search | 1,404 | 3.03 | 41.05 | 30.84 |
Approved [0] /wp-admin/admin.php?page=bookaroom_meetings_approvedRequests | 1,150 | 2.03 | 34.20 | 31.92 |
Content Admin /wp-admin/admin.php?page=bookaroom_Settings_Content | 2,126 | 7.36 | 137.54 | 61.60 |
Create Event /wp-admin/admin.php?page=bookaroom_event_management | 1,979 | 3.25 | 45.59 | 34.73 |
Containers Admin /wp-admin/admin.php?page=bookaroom_Settings_RoomCont | 1,123 | 2.27 | 31.89 | 26.63 |
Search Registrations /wp-admin/admin.php?page=bookaroom_event_management_customerSearch | 1,348 | 3.11 | 40.93 | 30.59 |
Pend. Payments [0] /wp-admin/admin.php?page=bookaroom_meetings_pendingPayment | 1,156 | 2.04 | 30.65 | 29.86 |
Room Admin /wp-admin/admin.php?page=bookaroom_Settings_Rooms | 1,118 | 2.27 | 33.85 | 28.45 |
Denied [0] /wp-admin/admin.php?page=bookaroom_meetings_deniedRequests | 1,153 | 2.05 | 33.17 | 29.40 |
/wp-admin/admin.php?page=# | 28 | 0.44 | 0.08 | 4.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- bookaroom_hide_contract
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- bookaroom_defaultState_name
- widget_recent-posts
- can_compress_scripts
- bookaroom_installing
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/book-a-room/templates/mainSettings/helpTableSetup.php
- > /wp-content/plugins/book-a-room/templates/events/delete_multi.php
- > /wp-content/plugins/book-a-room/templates/events/eventForm_instance.php
- > /wp-content/plugins/book-a-room/templates/events/eventForm_event.php
- > /wp-content/plugins/book-a-room/templates/events/eventForm_times.php
- 106× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room/templates/public/publicRequest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/closings/deleteMulti.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/rooms/addSuccess.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/amenities/add_success.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/events/categories_form_reactivate.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/branches/editSuccess.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/events/age_form_deactivate.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/events/eventList.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/amenities/delete_success.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/book-a-room/templates/closings/editSuccess.php:1
- > 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)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=#
- > Network (severe)
wp-admin/admin.php?page=# - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== book-a-room ===
)
book-a-room/bookaroom.php 92% from 13 tests
The main PHP file in "Book a Room" ver. 2.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("book-a-room.php" instead of "bookaroom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin36,432 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 2,434 | 1,241 | 21,160 |
JavaScript | 6 | 541 | 2,945 | 10,789 |
CSS | 13 | 205 | 85 | 3,531 |
HTML | 10 | 17 | 63 | 952 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 60.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 434.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 281 | |
▷ Static methods | 279 | 99.29% |
▷ Public methods | 152 | 54.09% |
▷ Protected methods | 128 | 45.55% |
▷ Private methods | 1 | 0.36% |
Functions | 24 | |
▷ Named functions | 13 | 54.17% |
▷ Anonymous functions | 11 | 45.83% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
scripts/zebra-dialog/css/flat/question.png | 1.61KB | 0.89KB | ▼ 44.89% |
js/jstree/themes/default-rtl/d.png | 7.28KB | 2.51KB | ▼ 65.48% |
scripts/zebra-dialog/css/default/confirmation.png | 4.57KB | 2.33KB | ▼ 49.11% |
scripts/zebra-dialog/css/flat/error.png | 1.98KB | 1.06KB | ▼ 46.29% |
js/jstree/themes/apple/d.png | 7.58KB | 2.63KB | ▼ 65.33% |