Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/cp-reservation-calendar/dex_reservations.php+45
Undefined variable: wpdb
Server metrics [RAM: ▲0.17MB] [CPU: ▲0.23ms] Passed 4 tests
An overview of server-side resources used by CP Reservation Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 34.34 ▼7.01 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.64 ▼0.62 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.68 ▲5.65 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 97.97 ▲9.40 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.29 ▲2.91 |
CP Reservation Calendar /wp-admin/options-general.php?page=dex_reservations | 3.48 | 33.72 |
Server storage [IO: ▲0.69MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_reservation_calendars_data |
wp_dex_reservations |
wp_reservation_calendars |
wp_dex_reservations_discount_codes |
New WordPress options |
---|
installed_cp-reservation-calendar |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CP Reservation Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲152 | 13.39 ▼0.92 | 8.11 ▲6.15 | 41.22 ▼1.74 |
Dashboard /wp-admin | 2,218 ▲38 | 5.63 ▼0.03 | 92.32 ▲0.91 | 41.15 ▲2.97 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.01 ▼0.00 | 39.24 ▲1.84 | 35.59 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.47 ▲0.01 | 631.70 ▼77.62 | 62.69 ▲12.22 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.22 ▼0.03 | 99.08 ▼2.37 | 42.04 ▼1.39 |
CP Reservation Calendar /wp-admin/options-general.php?page=dex_reservations | 1,062 | 2.05 | 24.62 | 42.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 4 tables
- wp_reservation_calendars
- wp_dex_reservations_discount_codes
- wp_reservation_calendars_data
- wp_dex_reservations
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- installed_cp-reservation-calendar
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cp-reservation-calendar/TDE_RCalendar/events.php
- > /wp-content/plugins/cp-reservation-calendar/captcha/captcha.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cp-reservation-calendar/dex_scheduler.inc.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-reservation-calendar/dex_reservations_admin_int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/cp-reservation-calendar/dex_reservations.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-reservation-calendar/dex_reservations_admin_int_calendar_list.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-reservation-calendar/cp-feedback.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Inserting the reservation calendar into a page.), #2 (Booking form/reservation form.), #3 (Booking calendar configuration and administration.)
cp-reservation-calendar/dex_reservations.php 92% from 13 tests
The principal PHP file in "CP Reservation Calendar" v. 1.1.39 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cp-reservation-calendar.php" instead of "dex_reservations.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 plugin4,639 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 605 | 1,140 | 2,669 |
PHP | 7 | 360 | 43 | 1,598 |
CSS | 2 | 88 | 20 | 303 |
PO File | 1 | 26 | 58 | 69 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 73 | |
▷ Global constants | 73 | 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
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 75.79KB | 39.19KB | ▼ 48.29% |
screenshot-1.png | 34.95KB | 14.94KB | ▼ 57.24% |
screenshot-2.png | 13.14KB | 7.00KB | ▼ 46.76% |