72% caldavlist

Code Review | caldavlist

WordPress plugin caldavlist scored72%from 54 tests.

About plugin

  • Plugin page: caldavlist
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Feb 7, 2021
  • Number of updates: 40
  • Update frequency: every 6.9 days
  • Top authors: eneoli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,279 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.53MB] [CPU: ▼5.43ms] Passed 4 tests

Analyzing server-side resources used by caldavlist
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5445.13 ▼0.84
Dashboard /wp-admin3.85 ▲0.5052.89 ▼11.34
Posts /wp-admin/edit.php3.90 ▲0.5456.50 ▲2.03
Add New Post /wp-admin/post-new.php6.45 ▲0.5697.79 ▼11.58
Media Library /wp-admin/upload.php3.78 ▲0.5438.18 ▲2.53
caldavlist /wp-admin/options-general.php?page=caldav-list-einstellungen3.6638.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by caldavlist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16215.16 ▲0.8374.23 ▲72.3341.82 ▲0.76
Dashboard /wp-admin2,203 ▲235.65 ▲0.0291.23 ▲1.1537.57 ▼4.50
Posts /wp-admin/edit.php2,111 ▲81.98 ▼0.0539.53 ▼3.2234.65 ▼0.93
Add New Post /wp-admin/post-new.php1,533 ▲723.09 ▼0.55677.64 ▲23.8451.17 ▼4.96
Media Library /wp-admin/upload.php1,402 ▲84.24 ▲0.0599.31 ▼7.2843.82 ▼2.78
caldavlist /wp-admin/options-general.php?page=caldav-list-einstellungen8632.0326.6627.56

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=caldav-list-einstellungen
    • > Notice in wp-content/plugins/caldavlist/admin/caldav-list-einstellungen.php+230
    Trying to access array offset on value of type bool

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 fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/caldavlist/admin/partials/caldav-list-admin-display.php
    • > /wp-content/plugins/caldavlist/public/partials/caldav-list-public-display.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Cache\\InvalidArgumentException' not found in wp-content/plugins/caldavlist/lib/cache/file/FileEventInvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/caldavlist/admin/caldav-list-einstellungen.php:237
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Cache\\CacheException' not found in wp-content/plugins/caldavlist/lib/cache/file/FileEventCacheException.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/caldavlist/admin/caldav-list-einstellungen.php:237
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Cache\\CacheItemInterface' not found in wp-content/plugins/caldavlist/lib/cache/file/FileEventCacheItem.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Cache\\CacheItemPoolInterface' not found in wp-content/plugins/caldavlist/lib/cache/file/FileEventCacheItemPool.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Cache\\CacheException' not found in wp-content/plugins/caldavlist/lib/psr/cache/InvalidArgumentException.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #2 in caldavlist/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === caldavlist === )
The official readme.txt is a good inspiration

caldavlist/caldav-list.php 92% from 13 tests

The primary PHP file in "caldavlist" version 1.1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("caldavlist.php" instead of "caldav-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,827 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP327152,0472,635
CSS24010185
JavaScript34557

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity16.88
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces4
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods183
▷ Static methods21.09%
▷ Public methods17796.72%
▷ Protected methods00.00%
▷ Private methods63.28%
Functions34
▷ Named functions3294.12%
▷ Anonymous functions25.88%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin