74% gimme-calendar-feeds

Code Review | Gimme Calendar Feeds

WordPress plugin Gimme Calendar Feeds scored74%from 54 tests.

About plugin

  • Plugin page: gimme-calendar-feeds
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7.2
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Feb 19, 2017
  • Number of updates: 19
  • Update frequency: every 30.0 days
  • Top authors: m4ndi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,666 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.80MB] [CPU: ▼37.20ms] Passed 4 tests

An overview of server-side resources used by Gimme Calendar Feeds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.17 ▼0.2915.42 ▼21.42
Dashboard /wp-admin3.21 ▼0.1021.61 ▼24.79
Posts /wp-admin/edit.php3.21 ▼0.1520.82 ▼26.83
Add New Post /wp-admin/post-new.php3.21 ▼2.6822.71 ▼75.74
Media Library /wp-admin/upload.php3.21 ▼0.0219.91 ▼15.58

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 445 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gimme Calendar Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.72 ▲0.431.95 ▲0.3141.38 ▼0.29
Dashboard /wp-admin2,201 ▲205.54 ▼0.1382.77 ▼19.7438.91 ▼10.68
Posts /wp-admin/edit.php2,106 ▲61.99 ▲0.0338.60 ▲1.5034.69 ▼0.86
Add New Post /wp-admin/post-new.php1,534 ▲523.15 ▼0.09608.14 ▼68.1555.40 ▲7.18
Media Library /wp-admin/upload.php1,409 ▲94.21 ▲0.0998.20 ▼20.4341.14 ▼5.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds.php+244
    date_default_timezone_set(): Timezone ID '' is invalid
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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 | 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
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds.php
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds-system.php
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds-object.php
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds-modern-tribe.php
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds-export.php
    • > /wp-content/plugins/gimme-calendar-feeds/gimme-calendar-feeds-options.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (The admin panel - exporting the feeds.), #2 (The admin panel - setting the options.)
You can take inspiration from this readme.txt

gimme-calendar-feeds/gimme-calendar-feeds.php Passed 13 tests

The main PHP script in "Gimme Calendar Feeds" version 2.0.7 is automatically included on every request by WordPress
128 characters long description:
Allows creation of custom iCal feeds for upcoming events, based on event category. Requires Modern Tribe's - The Event Calendar.

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 detected2,925 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP65534262,228
JavaScript111070451
CSS15720246

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity71.33
▷ Minimum class complexity1.00
▷ Maximum class complexity162.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods159
▷ Static methods8251.57%
▷ Public methods15597.48%
▷ Protected methods00.00%
▷ Private methods42.52%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants24
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.32MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png179.28KB50.38KB▼ 71.90%
screenshot-2.png148.58KB40.08KB▼ 73.02%