10% digital-events-calendar

Code Review | Digital Events Calendar

WordPress plugin Digital Events Calendar scored 10% from 54 tests.

About plugin

  • Plugin page: digital-events-ca...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2020
  • Latest release: Apr 8, 2023
  • Number of updates: 27
  • Update frequency: every 36.2 days
  • Top authors: rejuancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,138 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/digital-events-calendar/includes/compatibility/Shortcodes.php+4
    Undefined variable: event_listing

Server metrics [RAM: ▼1.82MB] [CPU: ▼53.60ms] Passed 4 tests

An overview of server-side resources used by Digital Events Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.344.72 ▼40.02
Dashboard /wp-admin2.20 ▼1.1110.37 ▼41.02
Posts /wp-admin/edit.php2.20 ▼1.166.82 ▼42.63
Add New Post /wp-admin/post-new.php2.20 ▼3.696.39 ▼90.73
Media Library /wp-admin/upload.php2.20 ▼1.035.82 ▼27.65
New Event /wp-admin/post-new.php?post_type=event2.207.47
Event Categories /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event2.207.28
All Events /wp-admin/edit.php?post_type=event2.208.16
Settings /wp-admin/edit.php?post_type=event&page=digital-event-calendar-settings2.208.34

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Digital Events Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲23913.89 ▼0.544.61 ▲2.6639.52 ▼2.82
Dashboard /wp-admin2,265 ▲745.10 ▼0.78111.10 ▲9.7442.17 ▼2.63
Posts /wp-admin/edit.php2,150 ▲612.43 ▲0.4341.14 ▲7.2134.52 ▼1.18
Add New Post /wp-admin/post-new.php1,569 ▲3518.67 ▼4.54586.42 ▼104.9734.49 ▼24.67
Media Library /wp-admin/upload.php1,447 ▲624.53 ▲0.3599.76 ▲1.5342.50 ▲0.98
New Event /wp-admin/post-new.php?post_type=event2,7117.97182.1461.90
Event Categories /wp-admin/edit-tags.php?taxonomy=event_cat&post_type=event1,3252.0832.2527.51
All Events /wp-admin/edit.php?post_type=event1,1592.2933.8028.54
Settings /wp-admin/edit.php?post_type=event&page=digital-event-calendar-settings1,0052.5741.0423.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/digital-events-calendar/includes/compatibility/Shortcodes.php+4
    Undefined variable: event_listing
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=event&page=digital-event-calendar-settings
    • > Notice in wp-content/plugins/digital-events-calendar/includes/compatibility/Shortcodes.php+4
    Undefined variable: event_listing

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/digital-events-calendar/includes/compatibility/Admin_Menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/digital-events-calendar/includes/metabox/events-metabox.php:2

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: event, schedule, calendar, event calendar

digital-events-calendar/event-calender.php 77% from 13 tests

The main file in "Digital Events Calendar" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("digital-events-calendar.php" instead of "event-calender.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,967 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS3186583,298
PHP122362061,503
PO File14764118
JavaScript25848

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity34.25
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity6.91
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods45
▷ Static methods511.11%
▷ Public methods3373.33%
▷ Protected methods715.56%
▷ Private methods511.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/arrow_left.png0.15KB0.12KB▼ 16.67%
assets/css/arrow_right.png0.15KB0.12KB▼ 18.18%