10% talika

Code Review | Talika

WordPress plugin Talika scored10%from 54 tests.

About plugin

  • Plugin page: talika
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Apr 5, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kraftplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,367 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲1.58MB] [CPU: ▲6.03ms] Passed 4 tests

An overview of server-side resources used by Talika
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.07 ▲1.6150.77 ▲7.95
Dashboard /wp-admin4.89 ▲1.5460.68 ▼5.68
Posts /wp-admin/edit.php4.94 ▲1.5861.85 ▲10.23
Add New Post /wp-admin/post-new.php7.86 ▲1.98111.02 ▲11.60
Media Library /wp-admin/upload.php4.81 ▲1.5854.60 ▲18.21
Dashboard /wp-admin/admin.php?page=talika4.8461.08
Notifications /wp-admin/admin.php?page=talika-notifications4.8453.26
Customers /wp-admin/admin.php?page=talika-customers4.8450.37
Staffs /wp-admin/admin.php?page=talika-staffs4.8449.37
Appointments /wp-admin/admin.php?page=talika-appointments4.8447.23
Global Settings /wp-admin/admin.php?page=talika-settings4.8449.73
Services /wp-admin/admin.php?page=talika-services4.8447.73
Locations /wp-admin/admin.php?page=talika-locations4.8446.54

Server storage [IO: ▲6.50MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 118 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
talika_bearer_token
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Talika
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,043 ▲29716.26 ▲1.9133.31 ▲31.2344.46 ▲1.07
Dashboard /wp-admin2,274 ▲865.81 ▼0.0999.60 ▼11.8740.10 ▼1.65
Posts /wp-admin/edit.php2,157 ▲682.03 ▲0.0140.07 ▲1.0644.21 ▲10.75
Add New Post /wp-admin/post-new.php6,222 ▲4,68919.37 ▼3.77833.14 ▲232.1435.34 ▼14.38
Media Library /wp-admin/upload.php1,456 ▲684.23 ▲0.07101.92 ▼3.0046.21 ▲0.14
Dashboard /wp-admin/admin.php?page=talika1,55911.46398.3899.06
Notifications /wp-admin/admin.php?page=talika-notifications1,85613.48188.3459.63
Customers /wp-admin/admin.php?page=talika-customers1,76012.08133.2654.65
Staffs /wp-admin/admin.php?page=talika-staffs1,73012.10125.0238.87
Appointments /wp-admin/admin.php?page=talika-appointments1,4869.88137.1053.90
Global Settings /wp-admin/admin.php?page=talika-settings1,72011.92125.8638.12
Services /wp-admin/admin.php?page=talika-services1,70412.14128.4739.45
Locations /wp-admin/admin.php?page=talika-locations1,73613.19139.4541.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • talika_bearer_token
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=talika
    • > Notice in wp-content/plugins/talika/includes/functions/HelperFunctions.php+921
    Undefined variable: customers_count

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/talika/includes/classes/class-shortcode.php
    • > /wp-content/plugins/talika/includes/classes/class-admin-functions.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-locations-controller.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-appointment-controller.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-notifications-controller.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/talika/includes/api/inc/class-talika-rest-authentication.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-staffs-controller.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-global-controller.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/talika/includes/classes/class-talika-fonts-manager.php:791
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-analytics-controller.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-customers-controller.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Talika_API_Controller' not found in wp-content/plugins/talika/includes/api/inc/endpoints/class-talika-rest-services-controller.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: appointments, scheduling, appointment booking, booking, calendar

talika/talika.php Passed 13 tests

The entry point to "Talika" version 1.0.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Talika is a free online appointment and scheduling plugin to manage your services and staff.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin23,351 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PHP641,7093,67910,487
SVG7009,602
CSS103032022,910
Markdown1560241
JSON300103
JavaScript7018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity25.16
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes45
▷ Abstract classes12.22%
▷ Concrete classes4497.78%
▷ Final classes12.27%
Methods425
▷ Static methods6214.59%
▷ Public methods38590.59%
▷ Protected methods163.76%
▷ Private methods245.65%
Functions80
▷ Named functions4758.75%
▷ Anonymous functions3341.25%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/src/frontend/img/qrcode.png1.86KB1.84KB▼ 0.79%
app/src/frontend/img/paynow.png3.98KB2.40KB▼ 39.77%
app/src/frontend/img/paylater.png4.41KB2.61KB▼ 40.69%
app/src/frontend/img/card.png0.59KB0.58KB▼ 2.30%