Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼24.51ms] Passed 4 tests
Server-side resources used by Book a Room Event Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▼0.01 | 52.65 ▼9.88 |
Dashboard /wp-admin | 3.32 ▼0.03 | 54.11 ▼40.12 |
Posts /wp-admin/edit.php | 3.37 ▼0.47 | 51.37 ▼23.40 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 98.74 ▼24.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.97 ▼7.89 |
Events Settings /wp-admin/options-general.php?page=bookaroom-Events | 3.26 | 34.01 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Book a Room Event Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲230 | 13.85 ▼0.58 | 7.05 ▲4.91 | 46.08 ▼9.66 |
Dashboard /wp-admin | 2,237 ▲55 | 5.93 ▼0.03 | 100.47 ▼35.30 | 39.53 ▼10.05 |
Posts /wp-admin/edit.php | 2,123 ▲28 | 2.09 ▼0.07 | 36.43 ▼27.05 | 34.50 ▼14.16 |
Add New Post /wp-admin/post-new.php | 1,551 ▲32 | 23.04 ▼0.17 | 716.55 ▼8.57 | 39.49 ▼15.24 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.22 ▲0.08 | 101.14 ▼23.03 | 48.83 ▼2.99 |
Events Settings /wp-admin/options-general.php?page=bookaroom-Events | 972 | 1.92 | 28.31 | 32.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/book-a-room-event-calendar/bookaroom-create_iCal.php
- > /wp-content/plugins/book-a-room-event-calendar/templates/events_list.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room-event-calendar/templates/emailRegistrations_email.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room-event-calendar/templates/emailRegistrations_success.php:1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/book-a-room-event-calendar/templates/events_list.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room-event-calendar/templates/searchResults.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-a-room-event-calendar/bookaroom-create_iCal.php on line 42
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room-event-calendar/templates/events_settings.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-a-room-event-calendar/bookaroom-create_iCal.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/book-a-room-event-calendar/templates/events_settings_success.php:5
- > PHP Notice
Undefined variable: eventList in wp-content/plugins/book-a-room-event-calendar/templates/events_list.php on line 66
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/book-a-room-event-calendar/bookaroom-create_iCal.php on line 41
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=bookaroom-Events
- > Network (severe)
wp-content/plugins/book-a-room-event-calendar/js/scripts.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=bookaroom-Events
- > Network (severe)
wp-content/plugins/book-a-room-event-calendar/js/jstree/jquery.jstree.js - Failed to load resource: the server responded with a status of 404 (Not 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 to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Book a Room Event Calendar===
)
book-a-room-event-calendar/bookaroom-events.php 92% from 13 tests
The main PHP file in "Book a Room Event Calendar" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("book-a-room-event-calendar.php" instead of "bookaroom-events.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
Success! There were no dangerous files found in this plugin2,636 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 430 | 147 | 2,328 |
CSS | 1 | 20 | 0 | 308 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 31.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 40 | 100.00% |
▷ Public methods | 18 | 45.00% |
▷ Protected methods | 22 | 55.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected