89% cal-com

Code Review | Cal.com

WordPress plugin Cal.com scored89%from 54 tests.

About plugin

  • Plugin page: cal-com
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Nov 15, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: calcom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.72ms] Passed 4 tests

Analyzing server-side resources used by Cal.com
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0255.32 ▲11.71
Dashboard /wp-admin3.32 ▲0.0250.46 ▼4.89
Posts /wp-admin/edit.php3.37 ▲0.0250.24 ▼17.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.86 ▼11.49
Media Library /wp-admin/upload.php3.25 ▲0.0243.91 ▲2.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Cal.com
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.022.03 ▲0.2545.86 ▼0.44
Dashboard /wp-admin2,192 ▲155.59 ▼0.1185.57 ▼3.6141.88 ▼0.88
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0036.43 ▼3.6838.39 ▲3.19
Add New Post /wp-admin/post-new.php1,530 ▲423.10 ▲0.16672.04 ▼17.8955.94 ▼1.66
Media Library /wp-admin/upload.php1,397 ▼64.11 ▲0.01103.98 ▼4.2645.27 ▼1.40

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: A description for screenshot #1 is missing in cal-com/assets to your readme.txt
Please take inspiration from this readme.txt

cal-com/cal.com.php 92% from 13 tests

"Cal.com" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cal-com.php" instead of "cal.com.php")

Code Analysis Passed 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
There were no executable files found in this plugin152 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP44038110
JavaScript10031
CSS1008
Markdown1203

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods545.45%
▷ Protected methods00.00%
▷ Private methods654.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin