83% list-view-google-calendar

Code Review | Google Calendar List View

WordPress plugin Google Calendar List View scored83%from 54 tests.

About plugin

  • Plugin page: list-view-google-...
  • Plugin version: 7.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2017
  • Latest release: Feb 28, 2023
  • Number of updates: 83
  • Update frequency: every 25.9 days
  • Top authors: kimipooh (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /14,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.73ms] Passed 4 tests

This is a short check of server-side resources used by Google Calendar List View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1539.19 ▼0.44
Dashboard /wp-admin3.46 ▲0.1653.51 ▲1.48
Posts /wp-admin/edit.php3.58 ▲0.2252.37 ▲3.93
Add New Post /wp-admin/post-new.php6.04 ▲0.1588.73 ▼11.66
Media Library /wp-admin/upload.php3.39 ▲0.1536.92 ▲3.69
Google Calendar List View Settings /wp-admin/options-general.php?page=list-view-google-calendar/list-view-google-calendar.php3.3532.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
list-view-google-calendar_array
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Google Calendar List View
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.48 ▼0.081.67 ▼0.2037.44 ▼7.41
Dashboard /wp-admin2,210 ▲194.85 ▼0.2199.23 ▼7.8638.60 ▼7.12
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0238.98 ▲4.7234.13 ▲1.11
Add New Post /wp-admin/post-new.php1,536 ▲823.17 ▲4.61670.13 ▲20.8157.27 ▲3.18
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0293.87 ▼3.2840.61 ▼1.73
Google Calendar List View Settings /wp-admin/options-general.php?page=list-view-google-calendar/list-view-google-calendar.php1,0812.0421.8726.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: gc_description_title in wp-content/plugins/list-view-google-calendar/library/tags/li-month.php on line 44
    • > PHP Notice
      Undefined variable: gc_link in wp-content/plugins/list-view-google-calendar/library/tags/li2.php on line 22
    • > PHP Notice
      Undefined variable: gc_title in wp-content/plugins/list-view-google-calendar/library/tags/li.php on line 17
    • > PHP Notice
      Undefined variable: gc_title in wp-content/plugins/list-view-google-calendar/library/tags/p.php on line 18
    • > PHP Notice
      Undefined variable: gc_description_title in wp-content/plugins/list-view-google-calendar/library/tags/p.php on line 18
    • > PHP Notice
      Undefined variable: start_date_month_value in wp-content/plugins/list-view-google-calendar/library/tags/li-month.php on line 8
    • > PHP Notice
      Undefined variable: html_tag_class in wp-content/plugins/list-view-google-calendar/library/tags/p.php on line 18
    • > PHP Notice
      Undefined variable: start_date_value in wp-content/plugins/list-view-google-calendar/library/tags/lip.php on line 3
    • > PHP Notice
      Undefined variable: html_tag_class in wp-content/plugins/list-view-google-calendar/library/tags/lip.php on line 28
    • > PHP Notice
      Undefined variable: html_tag_class in wp-content/plugins/list-view-google-calendar/library/tags/li2.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add images for these screenshots: #1 (List View of a public Google Calendar), #2 (How to use the Shortcode), #3 (Sample of public Google Calendars), #4 (How to use it), #5 (Goolge Calendar API Settings), #6 (General Settngs), #7 (Feature Expansion & Other notice), #8 (Grouping events by month)
Please take inspiration from this readme.txt

list-view-google-calendar/list-view-google-calendar.php 92% from 13 tests

"Google Calendar List View" version 7.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/lang")

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
There were no executable files found in this plugin981 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP913291981

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity107.50
▷ Minimum class complexity37.00
▷ Maximum class complexity178.00
Average method complexity12.21
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.59MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png139.96KB36.19KB▼ 74.14%
screenshot-6.png36.40KB10.68KB▼ 70.66%
screenshot-7.png30.85KB9.09KB▼ 70.52%
screenshot-8.png63.80KB13.01KB▼ 79.61%
screenshot-1.png62.72KB16.38KB▼ 73.88%