84% icalendrier

Code Review | iCalendrier

WordPress plugin iCalendrier scored84%from 54 tests.

About plugin

  • Plugin page: icalendrier
  • Plugin version: 1.80
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Oct 25, 2023
  • Number of updates: 47
  • Update frequency: every 70.4 days
  • Top authors: bplace (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /27,583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.62MB] [CPU: ▼0.22ms] Passed 4 tests

This is a short check of server-side resources used by iCalendrier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6340.08 ▲1.07
Dashboard /wp-admin3.93 ▲0.6246.95 ▼5.29
Posts /wp-admin/edit.php4.04 ▲0.6849.22 ▲0.54
Add New Post /wp-admin/post-new.php6.51 ▲0.6296.34 ▲8.59
Media Library /wp-admin/upload.php3.85 ▲0.6237.77 ▲2.79

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_icalendrier_widget

Browser metrics Passed 4 tests

A check of browser resources used by iCalendrier
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.26 ▼0.111.53 ▲0.0238.17 ▼3.89
Dashboard /wp-admin2,200 ▲295.62 ▲0.0289.79 ▼11.2640.95 ▼4.60
Posts /wp-admin/edit.php2,102 ▲21.99 ▼0.0439.47 ▲2.1737.16 ▲4.21
Add New Post /wp-admin/post-new.php1,537 ▲918.44 ▼4.55624.08 ▼41.2790.17 ▲31.56
Media Library /wp-admin/upload.php1,402 ▲24.20 ▼0.0195.18 ▼4.2542.12 ▼1.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_icalendrier_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/icalendrier/icalendrier-widget.php

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ephemeride, calendrier, calendario, kalender, calendar

icalendrier/icalendrier-widget.php 92% from 13 tests

The main PHP script in "iCalendrier" version 1.80 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("icalendrier.php" instead of "icalendrier-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,485 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP41991523,788
PO File91080353
CSS35630344

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.04
Average class complexity26.75
▷ Minimum class complexity15.00
▷ Maximum class complexity39.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2978.38%
▷ Protected methods12.70%
▷ Private methods718.92%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin