Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼296.19ms] Passed 4 tests
Analyzing server-side resources used by Better Appointment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.20 | 57.88 ▲5.18 |
Dashboard /wp-admin | 3.56 ▲0.15 | 38.34 ▲4.17 |
Posts /wp-admin/edit.php | 3.79 ▲0.15 | 41.84 ▲3.79 |
Add New Post /wp-admin/post-new.php | 7.82 ▲0.85 | 103.06 ▼1,189.39 |
Media Library /wp-admin/upload.php | 3.51 ▲0.21 | 27.46 ▼3.33 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 149 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ba_email_admin |
ba_form_terms |
ba_email_customer |
ba_installed |
ba_version |
ba_jwt_secret |
ba_success_page_datetime |
Browser metrics Passed 4 tests
Checking browser requirements for Better Appointment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲65 | 15.92 ▲0.14 | 5.72 ▼0.82 | 2.26 ▼0.73 |
Dashboard /wp-admin | 2,930 ▲72 | 6.16 ▲0.01 | 118.75 ▼13.14 | 156.11 ▼9.33 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.23 ▲0.00 | 64.25 ▼2.40 | 137.29 ▼7.44 |
Add New Post /wp-admin/post-new.php | 1,742 ▼10 | 22.17 ▲0.57 | 458.66 ▲2.23 | 157.99 ▼2.08 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.51 ▼0.04 | 144.69 ▲4.38 | 188.51 ▼4.04 |
Appointments /wp-admin/admin.php?page=better-appointment#/ | 1,147 | 4.34 | 96.09 | 126.59 |
Settings /wp-admin/admin.php?page=better-appointment#/settings | 1,750 | 5.19 | 121.08 | 191.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- ba_version
- ba_email_admin
- ba_form_terms
- ba_jwt_secret
- ba_email_customer
- ba_installed
- ba_success_page_datetime
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 61× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Hackzilla\\PasswordGenerator\\RandomGenerator\\RandomGeneratorInterface' not found in wp-content/plugins/better-appointment/vendor/hackzilla/password-generator/RandomGenerator/Php5RandomGenerator.php:8
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/NotIn.php:8
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/Json.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/Before.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/Alpha.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/Url.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rule' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/After.php:7
- > PHP Fatal error
Uncaught Error: Class 'Hackzilla\\PasswordGenerator\\Generator\\AbstractPasswordGenerator' not found in wp-content/plugins/better-appointment/vendor/hackzilla/password-generator/Generator/HumanPasswordGenerator.php:11
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rules\\Required' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/RequiredWithoutAll.php:7
- > PHP Fatal error
Uncaught Error: Class 'Rakit\\Validation\\Rules\\Required' not found in wp-content/plugins/better-appointment/vendor/rakit/validation/src/Rules/RequiredWithAll.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=better-appointment#/
- > Network (severe)
wp-json/better-appointment/v1/get-appointments - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=better-appointment#/settings
- > Javascript (severe) in unknown
/wp-content/plugins/better-appointment/assets/js/admin.js?ver=1592590486 1:505298
- > GET request to /wp-admin/admin.php?page=better-appointment#/settings
- > Network (severe)
wp-json/better-appointment/v1/get-settings - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No plugin tags provided
better-appointment/plugin.php 85% from 13 tests
The principal PHP file in "Better Appointment" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("better-appointment.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin6,969 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 1,534 | 3,612 | 6,636 |
JSON | 5 | 0 | 0 | 319 |
YAML | 1 | 2 | 0 | 6 |
Markdown | 1 | 3 | 0 | 4 |
CSS | 2 | 0 | 10 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 6 | |
Traits | 5 | |
Classes | 114 | |
▷ Abstract classes | 3 | 2.63% |
▷ Concrete classes | 111 | 97.37% |
▷ Final classes | 1 | 0.90% |
Methods | 485 | |
▷ Static methods | 34 | 7.01% |
▷ Public methods | 424 | 87.42% |
▷ Protected methods | 47 | 9.69% |
▷ Private methods | 14 | 2.89% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 41 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 41 | 100.00% |
▷ Public constants | 41 | 100.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
There are no PNG files in this plugin