Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼292.54ms] Passed 4 tests
Analyzing server-side resources used by Appointment booking widget for salons and SPA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 63.68 ▲14.02 |
Dashboard /wp-admin | 3.45 ▲0.05 | 33.86 ▲1.73 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 36.01 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 91.14 ▼1,174.47 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 25.84 ▲2.52 |
BloknotApp widget /wp-admin/options-general.php?page=bloknot_settings | 3.31 | 23.05 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 3 new options
New WordPress options |
---|
blknt_buttoncolor |
blknt_widgetlink |
blknt_widgetposition |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Appointment booking widget for salons and SPA
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 593 ▼3,155 | 5.21 ▼10.42 | 5.94 ▼0.68 | 14.27 ▲12.09 |
Dashboard /wp-admin | 2,899 ▲41 | 6.16 ▲0.01 | 115.64 ▼28.51 | 151.76 ▼10.95 |
Posts /wp-admin/edit.php | 2,695 ▲1 | 3.23 ▲0.00 | 66.74 ▲2.94 | 146.14 ▲9.78 |
Add New Post /wp-admin/post-new.php | 1,763 ▲102 | 22.04 ▲5.95 | 443.22 ▲50.61 | 154.68 ▲2.03 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.55 ▲0.03 | 140.64 ▲6.69 | 184.55 ▼1.97 |
BloknotApp widget /wp-admin/options-general.php?page=bloknot_settings | 1,122 | 2.39 | 54.78 | 124.09 |
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
- This plugin did not uninstall successfully, leaving 3 options in the database
- blknt_buttoncolor
- blknt_widgetposition
- blknt_widgetlink
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/appointment-booking-for-salon-and-spa/bloknot-booking.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: booking, clinics, spa, bloknotapp, online-booking...
appointment-booking-for-salon-and-spa/bloknot-booking.php 77% from 13 tests
Analyzing the main PHP file in "Appointment booking widget for salons and SPA" version 1.0
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("appointment-booking-for-salon-and-spa.php" instead of "bloknot-booking.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 229 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin654 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 67 | 3 | 331 |
PO File | 2 | 46 | 46 | 166 |
PHP | 1 | 13 | 16 | 119 |
JavaScript | 1 | 2 | 0 | 24 |
HTML | 1 | 2 | 0 | 13 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin