84% embed-calendly-scheduling

Code Review | Embed Calendly

WordPress plugin Embed Calendly scored84%from 54 tests.

About plugin

  • Plugin page: embed-calendly-sc...
  • Plugin version: 3.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Oct 12, 2023
  • Number of updates: 33
  • Update frequency: every 33.1 days
  • Top authors: Turn2honey (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

20,000+ active /171,491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Embed Calendly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0132.98 ▼4.23
Dashboard /wp-admin3.33 ▲0.0342.83 ▼3.18
Posts /wp-admin/edit.php3.38 ▲0.0346.77 ▼0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.28 ▼16.77
Media Library /wp-admin/upload.php3.26 ▲0.0335.40 ▼0.20
Event Types /wp-admin/admin.php?page=emcs-event-types3.2231.04
Settings /wp-admin/admin.php?page=emcs-settings3.2230.05
Customizer /wp-admin/admin.php?page=emcs-customizer3.2229.46
Premium /wp-admin/admin.php?page=emcs-licenses3.2228.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: 1 new table, 13 new options
New tables
wp_emcs_event_types
New WordPress options
db_upgraded
emcs_promotion_last_displayed
emcs_encryption_key
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
emcs_display_greeting
emcs_stop_promotions
emcs_promotion_delay
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Embed Calendly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.35 ▲0.131.55 ▼0.0737.53 ▼6.32
Dashboard /wp-admin2,235 ▲555.80 ▲0.13102.08 ▲14.5341.66 ▼0.64
Posts /wp-admin/edit.php2,137 ▲402.44 ▲0.4632.50 ▼4.7632.98 ▼4.82
Add New Post /wp-admin/post-new.php1,557 ▲3124.21 ▲0.54667.66 ▲10.8062.45 ▲0.31
Media Library /wp-admin/upload.php1,440 ▲404.34 ▲0.14101.37 ▼2.6442.71 ▼0.06
Event Types /wp-admin/admin.php?page=emcs-event-types8711.8035.5147.83
Settings /wp-admin/admin.php?page=emcs-settings9761.8426.4936.72
Customizer /wp-admin/admin.php?page=emcs-customizer8621.8424.0527.89
Premium /wp-admin/admin.php?page=emcs-licenses8481.8923.4550.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/embed-calendly-scheduling/embed-calendly-scheduling.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

embed-calendly-scheduling/embed-calendly-scheduling.php Passed 13 tests

The main PHP file in "Embed Calendly" ver. 3.7 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Easy and simple way to embed Calendly scheduling pages on WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,307 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP17251781,286
SVG50015
CSS4004
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods60
▷ Static methods3965.00%
▷ Public methods2948.33%
▷ Protected methods46.67%
▷ Private methods2745.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/donate.png6.64KB2.85KB▼ 57.15%