Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.77MB] [CPU: ▼2.04ms] Passed 4 tests
Analyzing server-side resources used by Salon Booking
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.76 | 48.92 ▲5.49 |
Dashboard /wp-admin | 4.11 ▲0.81 | 58.68 ▲1.14 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 56.60 ▼0.19 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 94.53 ▼14.60 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 48.74 ▲7.12 |
Staff Information /wp-admin/admin.php?page=salon_staff | 6.06 | 62.57 |
Environment Setting /wp-admin/admin.php?page=salon_config | 5.95 | 52.43 |
Promotion /wp-admin/admin.php?page=salon_promotion | 5.96 | 55.45 |
Menu Information /wp-admin/admin.php?page=salon_item | 5.98 | 53.45 |
Shop Information /wp-admin/admin.php?page=salon_branch | 5.97 | 51.66 |
View Log /wp-admin/admin.php?page=salon_log | 5.90 | 51.48 |
Time Card /wp-admin/admin.php?page=salon_working | 5.98 | 51.52 |
Position Information /wp-admin/admin.php?page=salon_position | 5.94 | 47.26 |
Mail Setting /wp-admin/admin.php?page=salon_mail | 5.93 | 50.79 |
Reservation Regist /wp-admin/admin.php?page=salon-booking-management | 5.99 | 53.80 |
Server storage [IO: ▲7.29MB] [DB: ▲0.02MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- The plugin illegally modified 2 files (0.00KB) outside of "wp-content/plugins/salon-booking/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/salon-booking/images/13_\346\223\215\344\275\234.png"
- (new file) "wp-content/plugins/salon-booking/images/12_\343\203\234\343\202\277\343\203\263.png"
Filesystem: 1,244 new files
Database: 13 new tables, 10 new options
New tables |
---|
wp_salon_category |
wp_salon_branch |
wp_salon_customer |
wp_salon_customer_record |
wp_salon_position |
wp_salon_log |
wp_salon_working |
wp_salon_reservation |
wp_salon_staff |
wp_salon_promotion |
... |
New WordPress options |
---|
salon_confirm_page_id |
salon_holiday |
widget_theysaidso_widget |
widget_recent-comments |
salon_initial_user |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
salon_installed |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Salon Booking
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.25 ▼0.30 | 1.79 ▲0.02 | 43.26 ▼5.45 |
Dashboard /wp-admin | 2,291 ▲111 | 5.58 ▼0.09 | 85.99 ▼3.45 | 84.93 ▲45.14 |
Posts /wp-admin/edit.php | 2,199 ▲102 | 2.03 ▲0.03 | 36.24 ▼2.80 | 34.24 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,618 ▲92 | 23.16 ▼0.52 | 752.22 ▲35.70 | 56.94 ▼10.20 |
Media Library /wp-admin/upload.php | 1,493 ▲93 | 4.25 ▲0.04 | 107.60 ▲1.53 | 77.43 ▲30.64 |
Staff Information /wp-admin/admin.php?page=salon_staff | 1,823 | 3.37 | 89.47 | 71.63 |
Environment Setting /wp-admin/admin.php?page=salon_config | 1,462 | 2.17 | 38.61 | 39.25 |
Promotion /wp-admin/admin.php?page=salon_promotion | 1,405 | 2.43 | 55.80 | 47.83 |
Menu Information /wp-admin/admin.php?page=salon_item | 1,576 | 2.39 | 60.89 | 50.08 |
Shop Information /wp-admin/admin.php?page=salon_branch | 1,850 | 2.45 | 58.15 | 55.35 |
View Log /wp-admin/admin.php?page=salon_log | 1,125 | 2.64 | 45.62 | 37.63 |
Time Card /wp-admin/admin.php?page=salon_working | 1,815 | 2.62 | 58.03 | 54.00 |
Position Information /wp-admin/admin.php?page=salon_position | 1,519 | 2.81 | 50.82 | 47.82 |
Mail Setting /wp-admin/admin.php?page=salon_mail | 1,286 | 2.06 | 35.07 | 35.04 |
Reservation Regist /wp-admin/admin.php?page=salon-booking-management | 1,539 | 2.47 | 54.52 | 48.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=salon_staff
- > POST request to /wp-admin/admin-ajax.php?action=slstaff
- > Notice in wp-content/plugins/salon-booking/src/comp/staff-component.php+108
Undefined index: mobile
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
Please fix the following
- 369× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant SL_PLUGIN_SRC_DIR - assumed 'SL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking/src/control/log-control.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SL_PLUGIN_SRC_DIRpage/salon-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/salon-booking/src/page/customer-init.php on line 3
- > PHP Warning
Use of undefined constant SL_PLUGIN_SRC_DIR - assumed 'SL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking/src/page/working-page.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SL_PLUGIN_SRC_DIRcontrol/salon-control.php' (include_path='.:/usr/share/php') in wp-content/plugins/salon-booking/src/control/booking-control.php on line 3
- > PHP Warning
require_once(SL_PLUGIN_SRC_DIRcontrol/salon-control.php): failed to open stream: No such file or directory in wp-content/plugins/salon-booking/src/control/item-control.php on line 3
- > PHP Warning
require_once(SL_PLUGIN_SRC_DIRpage/booking-edit.php): failed to open stream: No such file or directory in wp-content/plugins/salon-booking/src/page/booking-mobile-edit.php on line 3
- > PHP Warning
Use of undefined constant SL_PLUGIN_SRC_DIR - assumed 'SL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking/src/control/record-control.php on line 3
- > PHP Warning
Use of undefined constant SL_PLUGIN_SRC_DIR - assumed 'SL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking/src/data/checkconfig-data.php on line 3
- > PHP Warning
Use of undefined constant SL_PLUGIN_SRC_DIR - assumed 'SL_PLUGIN_SRC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking/src/page/staff-edit.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'SL_PLUGIN_SRC_DIRpage/salon-page.php' (include_path='.:/usr/share/php') in wp-content/plugins/salon-booking/src/page/promotion-edit.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in salon-booking/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
salon-booking/salon.php 92% from 13 tests
The main file in "Salon Booking" v. 1.8.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("salon-booking.php" instead of "salon.php")
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
There were no executable files found in this plugin34,026 lines of code in 1,134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 158 | 5,336 | 1,722 | 26,862 |
CSS | 9 | 510 | 728 | 2,759 |
PO File | 1 | 766 | 1,173 | 2,353 |
JavaScript | 13 | 118 | 206 | 1,099 |
JSON | 953 | 0 | 0 | 953 |
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.29 |
Average class complexity | 15.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 394.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 173 | |
▷ Abstract classes | 3 | 1.73% |
▷ Concrete classes | 170 | 98.27% |
▷ Final classes | 0 | 0.00% |
Methods | 997 | |
▷ Static methods | 106 | 10.63% |
▷ Public methods | 941 | 94.38% |
▷ Protected methods | 1 | 0.10% |
▷ Private methods | 55 | 5.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 205 | |
▷ Global constants | 24 | 11.71% |
▷ Class constants | 181 | 88.29% |
▷ Public constants | 181 | 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
77 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/12_ボタン.png | 1.85KB | 0.95KB | ▼ 48.36% |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
booking/imgs/resize_dots.png | 0.11KB | 0.10KB | ▼ 7.21% |
booking/imgs_glossy/blue_tab.png | 0.24KB | 0.25KB | 0.00% |
css/images/magnifier.png | 0.60KB | 0.60KB | 0.00% |