84% ical-feeds

Code Review | iCal Feeds

WordPress plugin iCal Feeds scored84%from 54 tests.

About plugin

  • Plugin page: ical-feeds
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2013
  • Latest release: Mar 20, 2023
  • Number of updates: 30
  • Update frequency: every 123.7 days
  • Top authors: maximevalette (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /8,131 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.70ms] Passed 4 tests

This is a short check of server-side resources used by iCal Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.52 ▼7.68
Dashboard /wp-admin3.31 ▼0.0348.43 ▼14.09
Posts /wp-admin/edit.php3.36 ▲0.0055.89 ▲6.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.67 ▼22.51
Media Library /wp-admin/upload.php3.23 ▲0.0036.16 ▲1.47
iCal Feeds /wp-admin/options-general.php?page=icalfeeds3.2133.87

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for iCal Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.17 ▼0.091.81 ▲0.0844.67 ▲1.84
Dashboard /wp-admin2,199 ▲255.51 ▼0.1584.58 ▼10.0237.69 ▼2.07
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0236.34 ▲0.9434.73 ▲2.20
Add New Post /wp-admin/post-new.php1,531 ▲522.94 ▼0.23635.98 ▼59.4751.50 ▼12.26
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.1295.75 ▼11.0744.38 ▲0.73
iCal Feeds /wp-admin/options-general.php?page=icalfeeds9772.1725.1628.57

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ical-feeds/ical-feeds.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
8 plugin tags: agenda, ical, webcal, calendar, urilv...

ical-feeds/ical-feeds.php Passed 13 tests

The entry point to "iCal Feeds" version 1.5.3 is a PHP file that has certain tags in its header comment area
72 characters long description:
Generate a customizable iCal feed of your present and future blog posts.

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
Good job! No executable or dangerous file extensions detected431 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP115923343
PO File1283088

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin