Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲6.04MB] [CPU: ▲35.98ms] 75% from 4 tests
An overview of server-side resources used by Salon booking system
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.04MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.98 ▲6.52 | 95.12 ▲52.86 |
Dashboard /wp-admin | 10.07 ▲6.73 | 95.83 ▲28.63 |
Posts /wp-admin/edit.php | 10.07 ▲6.72 | 99.30 ▲51.59 |
Add New Post /wp-admin/post-new.php | 10.07 ▲4.19 | 95.45 ▲10.83 |
Media Library /wp-admin/upload.php | 10.07 ▲6.84 | 89.19 ▲54.99 |
Server storage [IO: ▲65.00MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Try to limit filesystem usage to 25MB (currently using 65.00MB)
Filesystem: 2,567 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Salon booking system: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,652 ▼1,084 | 10.72 ▼3.53 | 1.37 ▼0.21 | 22.60 ▼26.92 |
Dashboard /wp-admin | 1,044 ▼1,133 | 1.98 ▼3.63 | 42.09 ▼56.87 | 49.35 ▲3.04 |
Posts /wp-admin/edit.php | 1,041 ▼1,059 | 1.91 ▼0.05 | 30.84 ▼8.06 | 52.74 ▲15.00 |
Add New Post /wp-admin/post-new.php | 1,041 ▼485 | 1.84 ▼21.27 | 28.79 ▼621.77 | 47.29 ▼11.30 |
Media Library /wp-admin/upload.php | 1,041 ▼362 | 1.93 ▼2.25 | 31.23 ▼70.35 | 46.82 ▲5.09 |
Uninstaller [IO: ▲65.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin has failed uninstalling correctly, leaving 2,567 files (65.00MB) in the plugin directory
- (new file) bitbucket-pipelines.yml
- (new file) css/admin-working.css
- (new file) LICENSE
- (new file) _install_data.php
- (new file) css/admin-rtl.css
- (new file) css/admin--salon-icon.css
- (new file) CountryCodes.json
- (new file) css/admin-disable-delete-permanently.css
- (new file) css/admin-original_scss.css
- (new file) css/admin--google-icon.css
- ...
Smoke tests 50% 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 0% 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 items
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/salon-booking-system/views/discount/metabox/_discount_head.php
- > /wp-content/plugins/salon-booking-system/views/metabox/_attendant_head.php
- > /wp-content/plugins/salon-booking-system/views/shortcode/_errors_area.php
- > /wp-content/plugins/salon-booking-system/js/events.json.php
- > /wp-content/plugins/salon-booking-system/views/discount/metabox/_booking_total_amount_row.php
- > /wp-content/plugins/salon-booking-system/views/metabox/_booking_head.php
- > /wp-content/plugins/salon-booking-system/views/admin/help.php
- > /wp-content/plugins/salon-booking-system/src/SLN/Third/mixpanel/vendor/mixpanel/mixpanel-php/examples/error_handling.php
- > /wp-content/plugins/salon-booking-system/views/metabox/_resource_head.php
- > /wp-content/plugins/salon-booking-system/views/mail/template.php
- 972× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php:21
- > PHP Warning
Use of undefined constant SLN_PLUGIN_URL - assumed 'SLN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/salon-booking-system/views/mail/weekly_report/_summary_total.php on line 4
- > PHP Notice
Undefined variable: helper in wp-content/plugins/salon-booking-system/views/metabox/attendant.php on line 2
- > [ Base_MixpanelBase - line 76 ]
Using token: MIXPANEL_PROJECT_TOKEN
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/salon-booking-system/views/mail/weekly_report/_top_spenders_customers.php:8
- > PHP Fatal error
Uncaught Error: Class 'Google\\Exception' not found in wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/src/Task/Exception.php:22
- > PHP Notice
Undefined variable: service in wp-content/plugins/salon-booking-system/views/shortcode/_services_item_400.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/vendor/google/apiclient-services/src/Calendar/EventAttachment.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/salon-booking-system/src/SLN/Third/google-api-php-client/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP192t1.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
- Screenshots: These screenshots require images: #10 (screenshot-10.jpg), #11 (screenshot-11.jpg)
salon-booking-system/salon.php 92% from 13 tests
The main PHP file in "Salon booking system" ver. 8.8.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("salon-booking-system.php" instead of "salon.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected663,589 lines of code in 2,129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 111,962 | 201,776 | 265,343 |
PHP | 1,364 | 29,363 | 62,158 | 163,412 |
CSS | 77 | 3,881 | 2,362 | 143,687 |
JavaScript | 325 | 2,902 | 2,379 | 31,488 |
SVG | 24 | 4 | 32 | 29,885 |
HTML | 65 | 1,844 | 191 | 12,931 |
Markdown | 47 | 2,254 | 0 | 6,517 |
Vuejs Component | 24 | 120 | 8 | 4,588 |
JSON | 35 | 1 | 0 | 3,650 |
Sass | 3 | 62 | 69 | 1,308 |
YAML | 19 | 61 | 4 | 366 |
EJS | 11 | 22 | 2 | 168 |
XML | 7 | 4 | 0 | 118 |
Python | 1 | 22 | 25 | 77 |
Mustache | 1 | 5 | 0 | 27 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 2 | 2 | 0 | 5 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 100 | |
Interfaces | 43 | |
Traits | 12 | |
Classes | 1,040 | |
▷ Abstract classes | 235 | 22.60% |
▷ Concrete classes | 805 | 77.40% |
▷ Final classes | 42 | 5.22% |
Methods | 7,620 | |
▷ Static methods | 1,232 | 16.17% |
▷ Public methods | 5,901 | 77.44% |
▷ Protected methods | 678 | 8.90% |
▷ Private methods | 1,041 | 13.66% |
Functions | 433 | |
▷ Named functions | 197 | 45.50% |
▷ Anonymous functions | 236 | 54.50% |
Constants | 906 | |
▷ Global constants | 165 | 18.21% |
▷ Class constants | 741 | 81.79% |
▷ Public constants | 738 | 99.60% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
98 PNG files occupy 1.34MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/email/calendar-google-48.png | 0.54KB | 0.37KB | ▼ 31.60% |
img/checkboxes-bkg.png | 1.64KB | 0.54KB | ▼ 67.30% |
js/bootstrap-colorpicker/img/bootstrap-colorpicker/hue.png | 0.49KB | 0.50KB | 0.00% |
src/SLB_PWA/pwa/public/img/icons/apple-touch-icon.png | 8.48KB | 3.64KB | ▼ 57.11% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |