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

Code Review | Add infos to the events calendar

WordPress plugin Add infos to the events calendar scored83%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-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Aug 15, 2023
  • Number of updates: 80
  • Update frequency: every 19.5 days
  • Top authors: hage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.59ms] Passed 4 tests

A check of server-side resources used by Add infos to the events calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0024.06 ▼17.30
Dashboard /wp-admin3.40 ▲0.0546.70 ▼15.56
Posts /wp-admin/edit.php3.45 ▲0.0949.27 ▼2.02
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.63 ▼10.72
Media Library /wp-admin/upload.php3.32 ▲0.0936.51 ▼2.79
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page3.2834.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of 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 /2,828 ▲8213.37 ▼1.311.75 ▼0.2541.39 ▲1.42
Dashboard /wp-admin2,229 ▲385.11 ▼0.80112.35 ▲12.3941.62 ▼0.24
Posts /wp-admin/edit.php2,117 ▲252.29 ▲0.3040.54 ▼1.5935.51 ▼2.11
Add New Post /wp-admin/post-new.php1,536 ▲2223.11 ▲5.57705.80 ▲57.9237.87 ▼16.19
Media Library /wp-admin/upload.php1,414 ▲234.49 ▲0.3399.48 ▲1.4143.69 ▲1.36
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page1,4132.6956.0829.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #8, #9 in add-infos-to-the-events-calendar/assets to your readme.txt
  • Screenshots: 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.) image not found
The official readme.txt is a good inspiration

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
You should first fix the following items:
  • 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")
  • Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)

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
Good job! No executable or dangerous file extensions detected914 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3100242478
PO File27984248
JavaScript21443151
CSS17537

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%