Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲7.88MB] [CPU: ▲59.51ms] 25% from 4 tests
Server-side resources used by WP BASE Booking of Appointments, Services and Events
Please take the time to fix the following items
- RAM: Total memory usage must be kept under 10MB (currently 11.88MB on /wp-admin/admin.php?page=appointments)
- CPU: Total CPU usage must kept under 500.00ms (currently 2,996.91ms on /wp-admin/admin.php?page=app_addons)
- Extra RAM: The extra memory usage must be under 5MB (currently 7.88MB on /wp-admin/admin.php?page=appointments)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.92 ▲6.46 | 84.81 ▲46.17 |
Dashboard /wp-admin | 11.70 ▲8.35 | 163.88 ▲100.05 |
Posts /wp-admin/edit.php | 11.71 ▲8.35 | 108.58 ▲62.54 |
Add New Post /wp-admin/post-new.php | 14.26 ▲8.37 | 154.64 ▲68.39 |
Media Library /wp-admin/upload.php | 11.60 ▲8.36 | 96.96 ▲60.94 |
Business Settings /wp-admin/admin.php?page=app_business | 11.74 | 115.24 |
Your Bookings /wp-admin/users.php?page=your_bookings | 11.78 | 95.47 |
Clients /wp-admin/admin.php?page=app_clients | 11.63 | 96.12 |
Schedules /wp-admin/admin.php?page=app_schedules | 11.94 | 103.49 |
Payment History /wp-admin/admin.php?page=app_transactions | 11.62 | 87.36 |
Global Settings /wp-admin/admin.php?page=app_settings | 11.84 | 89.86 |
Monetary Settings /wp-admin/admin.php?page=app_monetary | 11.83 | 116.33 |
Addons /wp-admin/admin.php?page=app_addons | 12.03 | 2,996.91 |
Tools /wp-admin/admin.php?page=app_tools | 11.62 | 94.22 |
Dashboard /wp-admin/admin.php?page=appointments | 11.88 | 109.79 |
Server storage [IO: ▲6.24MB] [DB: ▲0.20MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 461 new files
Database: 9 new tables, 16 new options
New tables |
---|
wp_base_wh_a |
wp_base_meta |
wp_base_workers |
wp_base_services |
wp_base_wh_w |
wp_base_wh_s |
wp_base_transactions |
wp_base_locations |
wp_base_bookings |
New WordPress options |
---|
wp_base_last_update |
can_compress_scripts |
widget_appointments_theme_selector |
wp_base_db_version |
widget_appointments_services |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_appointments_monthly_calendar |
wp_base_installed |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP BASE Booking of Appointments, Services and Events
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,302 ▲556 | 13.20 ▼1.17 | 4.73 ▲3.13 | 40.93 ▼2.96 |
Dashboard /wp-admin | 2,504 ▲323 | 5.62 ▼0.10 | 99.55 ▼2.90 | 44.70 ▲6.27 |
Posts /wp-admin/edit.php | 2,344 ▲247 | 2.02 ▲0.08 | 41.13 ▲5.72 | 37.28 ▲4.24 |
Add New Post /wp-admin/post-new.php | 1,747 ▲216 | 22.56 ▼0.63 | 792.35 ▲83.26 | 74.19 ▲20.77 |
Media Library /wp-admin/upload.php | 1,672 ▲272 | 4.34 ▲0.14 | 102.03 ▼1.70 | 40.34 ▼4.54 |
Business Settings /wp-admin/admin.php?page=app_business | 1,947 | 6.06 | 126.31 | 83.00 |
Your Bookings /wp-admin/users.php?page=your_bookings | 1,162 | 4.05 | 78.90 | 27.26 |
Clients /wp-admin/admin.php?page=app_clients | 1,393 | 3.67 | 60.60 | 28.95 |
Schedules /wp-admin/admin.php?page=app_schedules | 1,335 | 4.62 | 85.09 | 47.37 |
Payment History /wp-admin/admin.php?page=app_transactions | 1,653 | 4.05 | 69.28 | 35.84 |
Global Settings /wp-admin/admin.php?page=app_settings | 2,332 | 4.01 | 77.11 | 38.24 |
Monetary Settings /wp-admin/admin.php?page=app_monetary | 2,183 | 3.91 | 73.77 | 53.81 |
Addons /wp-admin/admin.php?page=app_addons | 2,797 | 5.29 | 74.08 | 68.44 |
Tools /wp-admin/admin.php?page=app_tools | 1,143 | 3.47 | 61.13 | 29.73 |
Dashboard /wp-admin/admin.php?page=appointments | 2,175 | 3.93 | 72.90 | 31.35 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.20MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure failed, leaving 9 tables in the database
- wp_base_wh_a
- wp_base_transactions
- wp_base_wh_w
- wp_base_workers
- wp_base_bookings
- wp_base_meta
- wp_base_locations
- wp_base_services
- wp_base_wh_s
- The uninstall procedure has failed, leaving 16 options in the database
- widget_recent-comments
- wp_base_last_update
- theysaidso_admin_options
- widget_appointments_monthly_calendar
- widget_appointments_service_providers
- widget_theysaidso_widget
- appointments_salt
- widget_recent-posts
- wp_base_db_version
- wp_base_shortcodes
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/sample/sample-appointments-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function BASE() in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/includes/admin/service-props.php:369
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/wp-base.php:32
- > PHP Notice
Undefined variable: mce_locale in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/includes/admin/tinymce/langs/langs.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/sample/sample-custom-functions.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_contents() in wp-content/plugins/wp-base-booking-of-appointments-services-and-events/includes/admin/tinymce/langs/langs.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 13 tag instead of maximum 10
wp-base-booking-of-appointments-services-and-events/wp-base.php 85% from 13 tests
The primary PHP file in "WP BASE Booking of Appointments, Services and Events" version 3.9.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-base-booking-of-appointments-services-and-events.php" instead of "wp-base.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected77,269 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 73 | 8,168 | 11,058 | 36,033 |
JavaScript | 145 | 2,580 | 2,124 | 21,257 |
CSS | 27 | 3,007 | 980 | 19,927 |
SVG | 3 | 15 | 0 | 52 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 74.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 490.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 84 | 100.00% |
▷ Final classes | 2 | 2.38% |
Methods | 1,540 | |
▷ Static methods | 139 | 9.03% |
▷ Public methods | 1,325 | 86.04% |
▷ Protected methods | 32 | 2.08% |
▷ Private methods | 183 | 11.88% |
Functions | 311 | |
▷ Named functions | 289 | 92.93% |
▷ Anonymous functions | 22 | 7.07% |
Constants | 62 | |
▷ Global constants | 46 | 74.19% |
▷ Class constants | 16 | 25.81% |
▷ Public constants | 16 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
186 PNG files occupy 0.89MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/cupertino/images/ui-icons_72a7cf_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/flick/images/ui-icons_0073ea_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/base/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
css/humanity/images/ui-icons_f35f07_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/pepper-grinder/images/ui-bg_fine-grain_10_eceadf_60x60.png | 10.51KB | 1.42KB | ▼ 86.44% |