Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/cp-appointment-calendar/dex_appointments.php+41
Undefined variable: wpdb
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.50ms] Passed 4 tests
This is a short check of server-side resources used by CP Appointment Calendar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 42.45 ▲1.42 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.14 ▲1.10 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.50 ▼1.66 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 85.64 ▼6.87 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.55 ▲1.77 |
CP Appointment Calendar /wp-admin/options-general.php?page=dex_appointments | 3.49 | 38.17 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 36 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_appointment_calendars |
wp_appointment_calendars_data |
wp_dex_appointments |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
installed_cp-appointment-calendar |
dex_appointments_data |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
CP Appointment Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.22 ▼0.08 | 2.19 ▲0.41 | 42.93 ▼1.77 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.01 | 90.83 ▲1.72 | 35.40 ▼9.11 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.04 | 39.36 ▲1.84 | 36.39 ▲1.36 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.21 ▼2.20 | 638.19 ▼25.74 | 56.93 ▼11.29 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.14 ▼0.03 | 100.89 ▲1.83 | 41.82 ▼5.37 |
CP Appointment Calendar /wp-admin/options-general.php?page=dex_appointments | 5,950 | 3.12 | 100.05 | 52.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_appointment_calendars
- wp_appointment_calendars_data
- wp_dex_appointments
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- installed_cp-appointment-calendar
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cp-appointment-calendar/dex_scheduler.inc.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/cp-appointment-calendar/dex_appointments.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cp-appointment-calendar/dex_appointments_admin_int.inc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-appointment-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
There were no browser issues found
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 do not have images: #1 (Inserting the calendar into a page.), #2 (Booking/reservation form.), #3 (Calendar configuration and administration.)
cp-appointment-calendar/dex_appointments.php 92% from 13 tests
"CP Appointment Calendar" version 1.1.38's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cp-appointment-calendar.php" instead of "dex_appointments.php")
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
Good job! No executable or dangerous file extensions detected3,080 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 162 | 113 | 1,256 |
PHP | 4 | 217 | 25 | 958 |
CSS | 8 | 154 | 70 | 866 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 56 | |
▷ Global constants | 56 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
TDE_AppCalendar/blankimage.png | 2.26KB | 2.16KB | ▼ 4.36% |
screenshot-3.png | 67.34KB | 34.31KB | ▼ 49.05% |
screenshot-2.png | 14.69KB | 7.86KB | ▼ 46.51% |
screenshot-1.png | 35.10KB | 15.11KB | ▼ 56.95% |
TDE_AppCalendar/sprite.png | 3.05KB | 3.04KB | 0.22% |