Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php+28
require_once(wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.02MB] [CPU: ▼306.76ms] Passed 4 tests
Analyzing server-side resources used by Online Booking Calendar Scheduled247
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.47 ▲5.21 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.33 ▼0.51 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.28 ▼0.93 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 94.11 ▼1,223.74 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.06 ▼1.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Online Booking Calendar Scheduled247
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲8 | 16.19 ▲0.12 | 6.15 ▼0.34 | 2.29 ▼0.43 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.10 | 116.58 ▼21.05 | 155.31 ▼3.06 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▲0.00 | 62.37 ▼0.59 | 140.94 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,661 ▼50 | 16.43 ▼4.73 | 423.99 ▼8.64 | 151.12 ▼3.98 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▼0.02 | 134.84 ▼20.94 | 185.15 ▼11.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php' (include_path='.:/usr/share/php') in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/online-booking-calendar-scheduled247/includes/CP_S247_SHORTCODE.php:16
- > PHP Warning
require_once(wp-content/plugins/online-booking-calendar-scheduled247/includes/S247_SHORTCODE.php): failed to open stream: No such file or directory in wp-content/plugins/online-booking-calendar-scheduled247/cp-schedule247.php on line 28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: online scheduling, appointments, calendar, online appointments, scheduled247...
online-booking-calendar-scheduled247/cp-schedule247.php 92% from 13 tests
The primary PHP file in "Online Booking Calendar Scheduled247" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("online-booking-calendar-scheduled247.php" instead of "cp-schedule247.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin69 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 16 | 9 | 69 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 1 | 33.33% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
There were not PNG files found in your plugin