Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼30.44ms] Passed 4 tests
This is a short check of server-side resources used by Resource Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 35.59 ▼6.78 |
Dashboard /wp-admin | 3.34 ▲0.04 | 24.62 ▼25.85 |
Posts /wp-admin/edit.php | 3.34 ▼0.01 | 26.62 ▼18.04 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.54 | 28.15 ▼71.07 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 26.81 ▼3.22 |
Resource Information /wp-admin/admin.php?page=resource-calendar_resource | 3.34 | 25.90 |
Reservations /wp-admin/admin.php?page=resource-calendar_reservation | 3.34 | 25.02 |
Environment Setting /wp-admin/admin.php?page=resource-calendar_maintenace | 3.34 | 24.81 |
Mail Setting /wp-admin/admin.php?page=resource-calendar_mail | 3.34 | 25.58 |
View Log /wp-admin/admin.php?page=resource-calendar_log | 3.34 | 23.07 |
Server storage [IO: ▲1.08MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 135 new files
Database: 6 new tables, 9 new options
New tables |
---|
wp_rcal_repeat |
wp_rcal_reservation |
wp_rcal_resource |
wp_rcal_category |
wp_rcal_photo |
wp_rcal_log |
New WordPress options |
---|
rcal_holiday |
rcal_installed |
widget_theysaidso_widget |
widget_recent-comments |
rcal_confirm_page_id |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Resource Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,053 ▲296 | 14.01 ▼0.67 | 12.34 ▲10.35 | 37.35 ▼10.26 |
Dashboard /wp-admin | 2,244 ▲53 | 5.99 ▲1.10 | 96.83 ▼9.91 | 79.87 ▲36.66 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.03 ▲0.01 | 37.96 ▲4.19 | 34.57 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 18.66 ▲0.39 | 743.65 ▲124.31 | 71.37 ▲14.06 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.19 ▼0.02 | 104.47 ▲7.01 | 73.47 ▲29.23 |
Resource Information /wp-admin/admin.php?page=resource-calendar_resource | 1,830 | 3.05 | 65.73 | 76.52 |
Reservations /wp-admin/admin.php?page=resource-calendar_reservation | 2,718 | 2.91 | 74.42 | 57.04 |
Environment Setting /wp-admin/admin.php?page=resource-calendar_maintenace | 1,544 | 2.95 | 66.49 | 57.01 |
Mail Setting /wp-admin/admin.php?page=resource-calendar_mail | 1,239 | 2.67 | 37.34 | 45.40 |
View Log /wp-admin/admin.php?page=resource-calendar_log | 1,095 | 2.77 | 48.50 | 35.45 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/resource-calendar/resource-calendar.php+243
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=resource-calendar_log
- > Notice in wp-content/plugins/resource-calendar/resource-calendar.php+243
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 149× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant RCAL_PLUGIN_SRC_DIR - assumed 'RCAL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/resource-calendar/src/page/bookingfront-page.php on line 3
- > PHP Warning
Use of undefined constant RCAL_PLUGIN_SRC_DIR - assumed 'RCAL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/resource-calendar/src/control/category-control.php on line 3
- > PHP Warning
require_once(RCAL_PLUGIN_SRC_DIRpage/resource-calendar-page.php): failed to open stream: No such file or directory in wp-content/plugins/resource-calendar/src/page/config-page.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'RCAL_PLUGIN_SRC_DIRcontrol/resource-calendar-control.php' (include_path='.:/usr/share/php') in wp-content/plugins/resource-calendar/src/control/photo-control.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'RCAL_PLUGIN_SRC_DIRcontrol/resource-calendar-control.php' (include_path='.:/usr/share/php') in wp-content/plugins/resource-calendar/src/control/category-control.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'RCAL_PLUGIN_SRC_DIRcontrol/resource-calendar-control.php' (include_path='.:/usr/share/php') in wp-content/plugins/resource-calendar/src/control/config-control.php on line 3
- > PHP Warning
require_once(RCAL_PLUGIN_SRC_DIRcontrol/resource-calendar-control.php): failed to open stream: No such file or directory in wp-content/plugins/resource-calendar/src/control/log-control.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'ResourceCalendar_Component' not found in wp-content/plugins/resource-calendar/src/comp/booking-component.php:3
- > PHP Fatal error
require_once(): Failed opening required 'RCAL_PLUGIN_SRC_DIRpage/resource-calendar-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/resource-calendar/src/page/resource-page.php on line 3
- > PHP Warning
require_once(RCAL_PLUGIN_SRC_DIRpage/resource-calendar-page.php): failed to open stream: No such file or directory in wp-content/plugins/resource-calendar/src/page/category-edit.php on line 3
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: resource, salon, calendar, reservation, booking...
resource-calendar/resource-calendar.php Passed 13 tests
This is the main PHP file of "Resource Calendar" version 1.5.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Resource Calendar enables the reservation of resources.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin15,160 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 2,264 | 764 | 10,877 |
CSS | 6 | 284 | 137 | 1,960 |
PO File | 1 | 392 | 605 | 1,243 |
JavaScript | 9 | 138 | 204 | 1,080 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 72 | |
▷ Abstract classes | 2 | 2.78% |
▷ Concrete classes | 70 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 378 | |
▷ Static methods | 54 | 14.29% |
▷ Public methods | 362 | 95.77% |
▷ Protected methods | 2 | 0.53% |
▷ Private methods | 14 | 3.70% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 101 | |
▷ Global constants | 15 | 14.85% |
▷ Class constants | 86 | 85.15% |
▷ Public constants | 86 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/images/magnifier.png | 0.60KB | 0.60KB | 0.00% |
images/forward_enabled.png | 1.35KB | 0.58KB | ▼ 56.96% |
css/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |