Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-appointments/app/init.php+47
Use of undefined constant BFITHUMB_UPLOAD_DIR - assumed 'BFITHUMB_UPLOAD_DIR' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.84MB] [CPU: ▼309.89ms] Passed 4 tests
Analyzing server-side resources used by Wp Appointments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 5.16 ▼15.14 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.28 ▼38.98 |
Posts /wp-admin/edit.php | 1.81 ▼1.29 | 5.61 ▼37.69 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.37 ▼1,130.97 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.31 ▼31.91 |
Appointments /wp-admin/admin.php?page=wst_wp_appointments_app | 1.81 | 5.22 |
Settings /wp-admin/admin.php?page=wst_app_settings | 1.81 | 5.24 |
Server storage [IO: ▲0.98MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: 6 new tables, 1 new option
New tables |
---|
wp_wst_appointments |
wp_wst_connections |
wp_wst_services |
wp_wst_staff |
wp_wst_locations |
wp_wst_options |
New WordPress options |
---|
wp_appointment_id |
Browser metrics Passed 4 tests
Checking browser requirements for Wp Appointments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲151 | 15.85 ▼0.05 | 8.06 ▲0.06 | 63.68 ▲16.89 |
Dashboard /wp-admin | 2,994 ▲141 | 6.19 ▲0.30 | 142.06 ▲8.55 | 95.46 ▼6.06 |
Posts /wp-admin/edit.php | 2,767 ▲64 | 2.73 ▲0.05 | 66.83 ▼2.88 | 87.59 ▼8.19 |
Add New Post /wp-admin/post-new.php | 1,706 ▲53 | 18.66 ▼0.09 | 354.22 ▼5.99 | 111.30 ▼4.53 |
Media Library /wp-admin/upload.php | 1,836 ▲64 | 5.05 ▲0.01 | 149.71 ▼11.78 | 106.05 ▼9.69 |
Appointments /wp-admin/admin.php?page=wst_wp_appointments_app | 1,306 | 2.43 | 62.23 | 67.24 |
Settings /wp-admin/admin.php?page=wst_app_settings | 2,936 | 8.78 | 182.49 | 133.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-appointments/app/init.php+47
Use of undefined constant BFITHUMB_UPLOAD_DIR - assumed 'BFITHUMB_UPLOAD_DIR' (this will throw an Error in a future version of PHP)
- Zombie tables detected upon uninstall: 6 tables
- wp_wst_services
- wp_wst_options
- wp_wst_locations
- wp_wst_appointments
- wp_wst_connections
- wp_wst_staff
- Zombie WordPress options detected upon uninstall: 1 option
- wp_appointment_id
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > Warning in wp-content/plugins/wp-appointments/app/init.php+47
Use of undefined constant BFITHUMB_UPLOAD_DIR - assumed 'BFITHUMB_UPLOAD_DIR' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > User deprecated in wp-includes/functions.php+5401
class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WST_DB_Setup' not found in wp-content/plugins/wp-appointments/app/back-end/templates/popup/services.tpl.update.php:2
- > PHP Fatal error
Uncaught Error: Class 'WST_DB_Setup' not found in wp-content/plugins/wp-appointments/app/back-end/templates/popup/location.tpl.update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-appointments/app/back-end/templates/popup/services.tpl.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-appointments/app/back-end/templates/appointment.tpl.php:2
- > PHP Fatal error
Uncaught Error: Class 'WST_DB_Setup' not found in wp-content/plugins/wp-appointments/app/back-end/templates/popup/connections.tpl.update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-appointments/app/back-end/templates/popup/location.tpl.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-appointments/app/init.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/wp-appointments/app/back-end/templates/tpl-email.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-appointments/app/init.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-appointments/app/back-end/templates/popup/staff.tpl.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > Javascript (severe) in unknown
/wp-content/plugins/wp-appointments/app/assets/back-end/js/scripts.js?ver=1.0 311:31 Uncaught TypeError: $(...).live is not a function
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-appointments/app/assets/back-end/js/scripts.js?ver=1.0:28:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/admin.php?page=wst_app_settings
- > Network (severe)
wp-admin/images/comment-grey-bubble.png' - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires at least: Version format is invalid
wp-appointments/wp-appointments.php Passed 13 tests
This is the main PHP file of "Wp Appointments" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Advance and modern Appointments managment system powered by Webinane
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,333 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 1,293 | 960 | 8,224 |
PHP | 27 | 343 | 234 | 4,044 |
CSS | 16 | 432 | 100 | 2,866 |
HTML | 9 | 105 | 10 | 1,112 |
SVG | 1 | 0 | 0 | 82 |
Markdown | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 95 | 87.16% |
▷ Public methods | 106 | 97.25% |
▷ Protected methods | 2 | 1.83% |
▷ Private methods | 1 | 0.92% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/back-end/img/select2.png | 0.60KB | 0.99KB | 0.00% |