Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲7.36ms] 75% from 4 tests
Analyzing server-side resources used by Calendarista Basic Edition - WordPress appointment booking system
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 502.97ms on /wp-admin/admin.php?page=calendarista-sales)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 44.07 ▲5.61 |
Dashboard /wp-admin | 3.90 ▲0.60 | 53.65 ▲6.41 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 54.05 ▲8.59 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 96.32 ▲8.81 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 61.73 ▲27.68 |
Services /wp-admin/admin.php?page=calendarista-index | 4.24 | 504.19 |
Places /wp-admin/admin.php?page=calendarista-places | 4.11 | 500.20 |
Settings /wp-admin/admin.php?page=calendarista-settings | 4.45 | 510.41 |
Setup Wizard /wp-admin/admin.php?page=calendarista-setup | 4.08 | 514.84 |
Appointments /wp-admin/admin.php?page=calendarista-appointments | 4.16 | 491.36 |
Sales /wp-admin/admin.php?page=calendarista-sales | 4.67 | 502.97 |
Server storage [IO: ▲9.07MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 667 new files
Database: 40 new tables, 7 new options
New tables |
---|
wp_calendarista_tags |
wp_calendarista_settings |
wp_calendarista_formelement |
wp_calendarista_error_log |
wp_calendarista_season |
wp_calendarista_place |
wp_calendarista_tags_availability |
wp_calendarista_formelement_booked |
wp_calendarista_roles |
wp_calendarista_waypoint |
... |
New WordPress options |
---|
calendarista_db_version |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Calendarista Basic Edition - WordPress appointment booking system: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲233 | 14.88 ▲0.10 | 24.15 ▲22.32 | 38.05 ▼3.69 |
Dashboard /wp-admin | 2,237 ▲57 | 5.55 ▼0.12 | 89.32 ▲4.79 | 40.98 ▲1.69 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.00 ▲0.03 | 39.67 ▲2.07 | 35.11 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,562 ▲26 | 23.55 ▲5.43 | 608.82 ▼17.48 | 54.07 ▼12.86 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.17 ▼0.05 | 135.01 ▲37.61 | 52.16 ▲9.75 |
Services /wp-admin/admin.php?page=calendarista-index | 1,574 | 5.12 | 74.51 | 38.39 |
Places /wp-admin/admin.php?page=calendarista-places | 1,090 | 4.12 | 47.39 | 22.90 |
Settings /wp-admin/admin.php?page=calendarista-settings | 2,494 | 5.50 | 83.78 | 33.26 |
Setup Wizard /wp-admin/admin.php?page=calendarista-setup | 1,174 | 3.23 | 36.69 | 61.58 |
Appointments /wp-admin/admin.php?page=calendarista-appointments | 1,971 | 4.44 | 87.23 | 93.79 |
Sales /wp-admin/admin.php?page=calendarista-sales | 1,280 | 3.33 | 52.95 | 84.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 40 tables in the database
- wp_calendarista_formelement
- wp_calendarista_dynamic_field_booked
- wp_calendarista_waypoint_booked
- wp_calendarista_staging
- wp_calendarista_feeds
- wp_calendarista_coupons
- wp_calendarista_timeslot
- wp_calendarista_settings
- wp_calendarista_optional_group
- wp_calendarista_staff
- ...
- Zombie WordPress options detected upon uninstall: 7 options
- calendarista_db_version
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 233× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_BaseController' not found in wp-content/plugins/calendarista-basic-edition/lib/controller/AppointmentsController.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_RepositoryBase' not found in wp-content/plugins/calendarista-basic-edition/lib/domainmodel/repository/DynamicFieldPricingRepository.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_EntityBase' not found in wp-content/plugins/calendarista-basic-edition/lib/domainmodel/entities/ErrorLog.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_List' not found in wp-content/plugins/calendarista-basic-edition/lib/infrastructure/ui/lists/CouponsList.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_List' not found in wp-content/plugins/calendarista-basic-edition/lib/infrastructure/ui/lists/AvailabilityDayList.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_TemplateBase' not found in wp-content/plugins/calendarista-basic-edition/lib/views/partials/RepeatItemsTmpl.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_CollectionBase' not found in wp-content/plugins/calendarista-basic-edition/lib/domainmodel/entities/Places.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_BaseController' not found in wp-content/plugins/calendarista-basic-edition/lib/controller/SeasonController.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_EntityBase' not found in wp-content/plugins/calendarista-basic-edition/lib/domainmodel/entities/Place.php:2
- > PHP Fatal error
Uncaught Error: Class 'Calendarista_ViewBase' not found in wp-content/plugins/calendarista-basic-edition/lib/views/partials/admin/AvailabilityTemplate.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 need descriptions #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in calendarista-basic-edition/assets to your readme.txt
calendarista-basic-edition/CalendaristaBasic.php 92% from 13 tests
The primary PHP file in "Calendarista Basic Edition - WordPress appointment booking system" version 3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("calendarista-basic-edition.php" instead of "CalendaristaBasic.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin101,170 lines of code in 577 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 328 | 1,513 | 3,457 | 54,059 |
PO File | 5 | 7,112 | 20,880 | 15,018 |
JavaScript | 216 | 921 | 1,136 | 13,705 |
CSS | 18 | 105 | 143 | 12,751 |
SVG | 4 | 0 | 0 | 3,973 |
Ant | 2 | 23 | 90 | 969 |
SQL | 3 | 43 | 0 | 690 |
XML | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 23.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 269.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 320 | |
▷ Abstract classes | 3 | 0.94% |
▷ Concrete classes | 317 | 99.06% |
▷ Final classes | 0 | 0.00% |
Methods | 2,315 | |
▷ Static methods | 282 | 12.18% |
▷ Public methods | 2,015 | 87.04% |
▷ Protected methods | 243 | 10.50% |
▷ Private methods | 57 | 2.46% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 204 | |
▷ Global constants | 15 | 7.35% |
▷ Class constants | 189 | 92.65% |
▷ Public constants | 189 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
36 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
assets/admin/css/jquery-ui/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/admin/css/jquery-ui/smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/jquery-ui/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/jquery-ui/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |