Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.24MB] [CPU: ▲32.81ms] 75% from 4 tests
Analyzing server-side resources used by VikAppointments Services Booking Calendar
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.24MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.61 ▲4.15 | 66.83 ▲28.43 |
Dashboard /wp-admin | 9.72 ▲6.37 | 97.65 ▲36.35 |
Posts /wp-admin/edit.php | 9.00 ▲5.65 | 90.20 ▲43.05 |
Add New Post /wp-admin/post-new.php | 11.26 ▲5.37 | 131.64 ▲30.44 |
Media Library /wp-admin/upload.php | 9.00 ▲5.78 | 71.68 ▲36.01 |
Server storage [IO: ▲15.95MB] [DB: ▲0.11MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2,561 new files
Database: 74 new tables, 15 new options
New tables |
---|
wp_vikappointments_lang_customf |
wp_vikappointments_cronjob_log |
wp_vikappointments_employee |
wp_vikappointments_ser_opt_assoc |
wp_vikappointments_api_ban |
wp_vikappointments_tax_rule |
wp_vikappointments_option_value |
wp_vikappointments_option_group |
wp_vikappointments_employee_group |
wp_vikappointments_res_opt_assoc |
... |
New WordPress options |
---|
widget_mod_vikappointments_zip |
vikappointments_license_key |
vikappointments_license_hash |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
vikappointments_software_version |
widget_mod_vikappointments_services |
widget_mod_vikappointments_search |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VikAppointments Services Booking Calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,176 ▲390 | 14.66 ▲0.31 | 7.15 ▲5.16 | 37.34 ▼6.05 |
Dashboard /wp-admin | 2,461 ▲284 | 6.51 ▲0.96 | 102.10 ▲9.22 | 53.68 ▲14.71 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.24 ▲0.26 | 37.00 ▲2.49 | 32.44 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6,211 ▲4,683 | 23.16 ▲0.19 | 860.63 ▲174.68 | 53.76 ▲2.57 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.47 ▲0.26 | 97.70 ▼11.66 | 41.29 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_vikappointments_media
- wp_vikappointments_lang_media
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_mod_vikappointments_onepage_booking
- widget_recent-posts
- theysaidso_admin_options
- widget_mod_vikappointments_search
- widget_recent-comments
- widget_mod_vikappointments_zip
- widget_mod_vikappointments_services
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1515× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/vikappointments/site/controllers/empeditservice.php
- > /wp-content/plugins/vikappointments/libraries/wizard/sampledata.php
- > /wp-content/plugins/vikappointments/admin/views/manageservice/tmpl/default_assoc_options.php
- > /wp-content/plugins/vikappointments/admin/views/payments/tmpl/default.php
- > /wp-content/plugins/vikappointments/libraries/html/form/fieldset/close.php
- > /wp-content/plugins/vikappointments/site/helpers/libraries/update/adapters/1_6.php
- > /wp-content/plugins/vikappointments/admin/views/manageservice/tmpl/default_details_publishing.php
- > /wp-content/plugins/vikappointments/site/helpers/libraries/action/container.php
- > /wp-content/plugins/vikappointments/libraries/update/fixer.php
- > /wp-content/plugins/vikappointments/site/views/allorders/view.html.php
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 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:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
vikappointments/vikappointments.php Passed 13 tests
The principal PHP file in "VikAppointments Services Booking Calendar" v. 1.2.10 is loaded by WordPress automatically on each request
58 characters long description:
A professional tool for managing any kind of appointments.
Code Analysis 95% from 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
Good job! No executable or dangerous file extensions detected255,736 lines of code in 1,702 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,546 | 53,943 | 119,289 | 218,621 |
CSS | 46 | 917 | 572 | 15,651 |
SVG | 3 | 0 | 0 | 9,552 |
JavaScript | 34 | 1,488 | 2,709 | 5,960 |
SQL | 10 | 357 | 508 | 2,540 |
XML | 43 | 362 | 101 | 1,647 |
Markdown | 7 | 667 | 0 | 1,417 |
JSON | 7 | 0 | 0 | 288 |
Bourne Shell | 1 | 24 | 0 | 55 |
HTML | 5 | 0 | 0 | 5 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,412)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 2,084)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,412.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2,084.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 12 | |
Traits | 3 | |
Classes | 983 | |
▷ Abstract classes | 109 | 11.09% |
▷ Concrete classes | 874 | 88.91% |
▷ Final classes | 15 | 1.72% |
Methods | 5,962 | |
▷ Static methods | 1,105 | 18.53% |
▷ Public methods | 4,965 | 83.28% |
▷ Protected methods | 907 | 15.21% |
▷ Private methods | 90 | 1.51% |
Functions | 216 | |
▷ Named functions | 10 | 4.63% |
▷ Anonymous functions | 206 | 95.37% |
Constants | 276 | |
▷ Global constants | 182 | 65.94% |
▷ Class constants | 94 | 34.06% |
▷ Public constants | 94 | 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
329 compressed PNG files occupy 0.63MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
site/assets/css/flags/vi.png | 0.99KB | 1.05KB | 0.00% |
site/assets/css/flags/zm.png | 0.33KB | 0.32KB | ▼ 3.54% |
admin/assets/images/invoice@big.png | 1.67KB | 0.92KB | ▼ 44.82% |
site/assets/css/flags/mv.png | 0.29KB | 0.28KB | ▼ 4.30% |
site/assets/css/flags/bd.png | 0.35KB | 0.33KB | ▼ 7.24% |