79% display-event-locations-tec

Code Review | Display Event Location for The Events Calendar

WordPress plugin Display Event Location for The Events Calendar scored79%from 54 tests.

About plugin

  • Plugin page: display-event-loc...
  • Plugin version: 4.3.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2019
  • Latest release: Jul 30, 2023
  • Number of updates: 83
  • Update frequency: every 18.7 days
  • Top authors: vikings412 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.25ms] Passed 4 tests

An overview of server-side resources used by Display Event Location for The Events Calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.86 ▼6.89
Dashboard /wp-admin3.35 ▲0.0151.50 ▼10.81
Posts /wp-admin/edit.php3.40 ▲0.0555.03 ▲4.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.30 ▼20.38
Media Library /wp-admin/upload.php3.27 ▲0.0534.08 ▼2.92
Display Event Location for The Events Calendar /wp-admin/options-general.php?page=deltec_settings3.2231.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Display Event Location for The Events Calendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.35 ▼0.001.92 ▲0.2543.84 ▲0.35
Dashboard /wp-admin2,199 ▲195.51 ▼0.1591.59 ▲0.7940.57 ▼0.71
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0139.79 ▼0.0936.56 ▼3.94
Add New Post /wp-admin/post-new.php1,529 ▲123.13 ▼0.04684.57 ▲1.0554.04 ▼2.18
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.13100.21 ▼10.1848.75 ▼0.20
Display Event Location for The Events Calendar /wp-admin/options-general.php?page=deltec_settings8411.9929.5928.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=deltec_settings
    • > Notice in wp-content/plugins/display-event-locations-tec/includes/settings-page/settings-page.php+41
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-event-locations-tec/tribe-templates/month/tooltip-venue.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
5 plugin tags: template, override, events, customization, modern-tribe

display-event-locations-tec/display-event-locations-tec.php Passed 13 tests

The main PHP file in "Display Event Location for The Events Calendar" ver. 4.3.0 adds more information about the plugin and also serves as the entry point for this plugin
138 characters long description:
Display an event's venue (location) in the tooltip of the monthly calendar view when using The Events Calendar or The Events Calendar Pro.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected598 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11000378
PHP770149220

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
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
PNG images were not found in this plugin