78% wp-caldav2ics

Code Review | WP-CalDav2ICS

WordPress plugin WP-CalDav2ICS scored78%from 54 tests.

About plugin

  • Plugin page: wp-caldav2ics
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: Jul 20, 2023
  • Number of updates: 34
  • Update frequency: every 50.2 days
  • Top authors: hoernerfranz (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲2.07ms] Passed 4 tests

This is a short check of server-side resources used by WP-CalDav2ICS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2250.01 ▲10.75
Dashboard /wp-admin3.56 ▲0.2259.53 ▼3.76
Posts /wp-admin/edit.php3.61 ▲0.2656.22 ▲8.43
Add New Post /wp-admin/post-new.php6.08 ▲0.1992.55 ▼7.16
Media Library /wp-admin/upload.php3.42 ▲0.1947.73 ▲12.75
WP-CalDav2ICS /wp-admin/options-general.php?page=Caldav2ics_PluginSettings3.3641.12

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
Caldav2ics_Plugin_Logging
Caldav2ics_Plugin_CronInterval
db_upgraded
widget_recent-comments
can_compress_scripts
Caldav2ics_Plugin__installed
Caldav2ics_Plugin__version

Browser metrics Passed 4 tests

WP-CalDav2ICS: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.33 ▲0.041.97 ▲0.2543.43 ▲2.95
Dashboard /wp-admin2,201 ▲245.63 ▼0.0191.92 ▲3.0439.57 ▲0.76
Posts /wp-admin/edit.php2,106 ▲61.98 ▲0.0135.73 ▼0.7033.17 ▼1.77
Add New Post /wp-admin/post-new.php1,531 ▲322.85 ▼0.18670.91 ▼27.4855.18 ▲0.25
Media Library /wp-admin/upload.php1,406 ▲124.17 ▼0.04108.17 ▼2.6847.21 ▲0.42
WP-CalDav2ICS /wp-admin/options-general.php?page=Caldav2ics_PluginSettings9252.0426.0525.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • Caldav2ics_Plugin__installed
    • Caldav2ics_Plugin_Logging
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • Caldav2ics_Plugin__version
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • Caldav2ics_Plugin_CronInterval
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Caldav2ics_PluginSettings
    • > Notice in wp-content/plugins/wp-caldav2ics/Caldav2ics_Plugin.php+701
    Undefined variable: key
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Caldav2ics_PluginSettings
    • > Warning in wp-content/plugins/wp-caldav2ics/Caldav2ics_Plugin.php+40
    Invalid argument supplied for foreach()

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-caldav2ics/wp-caldav2ics.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can look at the official readme.txt

wp-caldav2ics/wp-caldav2ics.php Passed 13 tests

The principal PHP file in "WP-CalDav2ICS" v. 1.3.4 is loaded by WordPress automatically on each request
36 characters long description:
Create ICS File from CalDav Calendar

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 plugin1,137 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP81876051,023
PO File1282976
CSS12120
Markdown13018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.50
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods5263.41%
▷ Protected methods2935.37%
▷ Private methods11.22%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin