73% vikappointments

Code Review | VikAppointments Services Booking Calendar

WordPress plugin VikAppointments Services Booking Calendar scored73%from 54 tests.

About plugin

  • Plugin page: vikappointments
  • Plugin version: 1.2.10
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: Apr 28, 2023
  • Number of updates: 73
  • Update frequency: every 19.0 days
  • Top authors: e4jvikwp (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /10,803 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /7.61 ▲4.1566.83 ▲28.43
Dashboard /wp-admin9.72 ▲6.3797.65 ▲36.35
Posts /wp-admin/edit.php9.00 ▲5.6590.20 ▲43.05
Add New Post /wp-admin/post-new.php11.26 ▲5.37131.64 ▲30.44
Media Library /wp-admin/upload.php9.00 ▲5.7871.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,176 ▲39014.66 ▲0.317.15 ▲5.1637.34 ▼6.05
Dashboard /wp-admin2,461 ▲2846.51 ▲0.96102.10 ▲9.2253.68 ▲14.71
Posts /wp-admin/edit.php2,145 ▲452.24 ▲0.2637.00 ▲2.4932.44 ▼0.34
Add New Post /wp-admin/post-new.php6,211 ▲4,68323.16 ▲0.19860.63 ▲174.6853.76 ▲2.57
Media Library /wp-admin/upload.php1,442 ▲424.47 ▲0.2697.70 ▼11.6641.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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1,54653,943119,289218,621
CSS4691757215,651
SVG3009,552
JavaScript341,4882,7095,960
SQL103575082,540
XML433621011,647
Markdown766701,417
JSON700288
Bourne Shell124055
HTML5005

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 code0.38
Average class complexity25.08
▷ Minimum class complexity1.00
▷ Maximum class complexity4,412.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity2,084.00
Code structure
Namespaces3
Interfaces12
Traits3
Classes983
▷ Abstract classes10911.09%
▷ Concrete classes87488.91%
▷ Final classes151.72%
Methods5,962
▷ Static methods1,10518.53%
▷ Public methods4,96583.28%
▷ Protected methods90715.21%
▷ Private methods901.51%
Functions216
▷ Named functions104.63%
▷ Anonymous functions20695.37%
Constants276
▷ Global constants18265.94%
▷ Class constants9434.06%
▷ Public constants94100.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
FileSize - originalSize - compressedSavings
site/assets/css/flags/vi.png0.99KB1.05KB0.00%
site/assets/css/flags/zm.png0.33KB0.32KB▼ 3.54%
admin/assets/images/invoice@big.png1.67KB0.92KB▼ 44.82%
site/assets/css/flags/mv.png0.29KB0.28KB▼ 4.30%
site/assets/css/flags/bd.png0.35KB0.33KB▼ 7.24%