84% private-google-calendars

Code Review | Private Google Calendars

WordPress plugin Private Google Calendars scored84%from 54 tests.

About plugin

  • Plugin page: private-google-ca...
  • Plugin version: 20231125...
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Nov 25, 2023
  • Number of updates: 101
  • Update frequency: every 22.2 days
  • Top authors: michielve (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /38,157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▲3.54ms] Passed 4 tests

Analyzing server-side resources used by Private Google Calendars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5340.88 ▼1.40
Dashboard /wp-admin3.81 ▲0.5149.17 ▲2.50
Posts /wp-admin/edit.php3.87 ▲0.5158.00 ▲7.87
Add New Post /wp-admin/post-new.php6.33 ▲0.4594.28 ▲5.20
Media Library /wp-admin/upload.php3.67 ▲0.4444.09 ▲10.49
Private Google Calendars /wp-admin/options-general.php?page=pgc3.6439.18

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_pgc_calender_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Private Google Calendars
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10315.44 ▲1.0933.34 ▲31.7837.28 ▼6.25
Dashboard /wp-admin2,196 ▲195.53 ▼0.1389.74 ▼12.3639.36 ▼0.76
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0739.84 ▼2.6335.82 ▼4.33
Add New Post /wp-admin/post-new.php6,370 ▲4,84427.74 ▲4.39953.76 ▲330.8967.85 ▲8.05
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.02104.11 ▲7.9543.24 ▼1.65
Private Google Calendars /wp-admin/options-general.php?page=pgc1,0242.0028.2062.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_pgc_calender_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/private-google-calendars/private-google-calendars.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: google, calendar

private-google-calendars/private-google-calendars.php 92% from 13 tests

The main PHP script in "Private Google Calendars" version 20231125... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "20231125...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,375 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP42882792,116
JavaScript157481470
PO File2205212430
CSS119672359

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.60
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
Functions68
▷ Named functions5073.53%
▷ Anonymous functions1826.47%
Constants32
▷ Global constants2475.00%
▷ Class constants825.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin