93% add-infos-to-the-events-calendar

Code Review | Add infos to the events calendar

WordPress plugin Add infos to the events calendar scored 93% from 54 tests.

About plugin

  • Plugin page: add-infos-to-the-...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: May 9, 2019
  • Latest release: Feb 1, 2022
  • Number of updates: 75
  • Update frequency: every 13.3 days
  • Top authors: hage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,528 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼290.69ms] Passed 4 tests

A check of server-side resources used by Add infos to the events calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.96 ▲6.56
Dashboard /wp-admin3.51 ▲0.1033.24 ▼3.35
Posts /wp-admin/edit.php3.73 ▲0.0935.66 ▼1.93
Add New Post /wp-admin/post-new.php6.97 ▼0.0092.77 ▼1,158.33
Media Library /wp-admin/upload.php3.39 ▲0.0924.84 ▲0.85
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page3.3527.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add infos to the events calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,801 ▲5916.00 ▲0.375.59 ▼0.112.72 ▲0.62
Dashboard /wp-admin2,925 ▲716.92 ▲0.82116.83 ▼17.57155.83 ▼1.64
Posts /wp-admin/edit.php2,724 ▲333.54 ▲0.3065.84 ▲2.35154.74 ▲11.79
Add New Post /wp-admin/post-new.php1,658 ▼321.15 ▲4.26437.58 ▲35.41162.28 ▲11.79
Media Library /wp-admin/upload.php1,731 ▲395.93 ▲0.47125.24 ▼15.87188.13 ▼0.36
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page2,0443.8985.38131.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-infos-to-the-events-calendar/add_shortcode_to_tec.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #6 (These fields can currently be filled automatically via the shortcode generator and then appear in the description at the point where the cursor was positioned.)
  • Screenshots: No descriptions were found for these screenshots #8, #9 in add-infos-to-the-events-calendar/assets to your readme.txt
Please take inspiration from this readme.txt

add-infos-to-the-events-calendar/add_shortcode_to_tec.php 85% from 13 tests

Analyzing the main PHP file in "Add infos to the events calendar" version 1.4.1
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 219 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-infos-to-the-events-calendar.php" instead of "add_shortcode_to_tec.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected914 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3100242478
PO File27984248
JavaScript21443151
CSS17537

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/js/icons8-kalender-48.png0.28KB0.28KB▼ 1.04%