71% chamber-dashboard-events-calendar

Code Review | Chamber Dashboard Events Calendar

WordPress plugin Chamber Dashboard Events Calendar scored71%from 54 tests.

About plugin

  • Plugin page: chamber-dashboard...
  • Plugin version: 2.3.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Oct 15, 2014
  • Latest release: Jun 16, 2021
  • Number of updates: 61
  • Update frequency: every 39.9 days
  • Top authors: cguntur (68.85%)Gwendydd (32.79%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /12,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.79ms] Passed 4 tests

Analyzing server-side resources used by Chamber Dashboard Events Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.11 ▼0.97
Dashboard /wp-admin3.31 ▲0.0145.92 ▼7.65
Posts /wp-admin/edit.php3.37 ▲0.0148.79 ▲0.42
Add New Post /wp-admin/post-new.php5.89 ▲0.01104.05 ▲9.85
Media Library /wp-admin/upload.php3.23 ▲0.0031.25 ▼2.97
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event3.0424.33
Add New /wp-admin/post-new.php?post_type=event3.0422.34
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event3.0425.13
All Events /wp-admin/edit.php?post_type=event3.0425.53
Locations /wp-admin/edit-tags.php?taxonomy=event-location&post_type=event3.0431.58

Server storage [IO: ▲5.95MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 348 new files
Database: no new tables, 9 new options
New WordPress options
widget_cdash_events_calendar_widget
widget_cdash_events_list_widget
theysaidso_admin_options
widget_cdash_events_categories_widget
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Chamber Dashboard Events Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.081.66 ▼0.0443.28 ▼1.18
Dashboard /wp-admin2,200 ▲185.84 ▼0.20101.95 ▼0.3643.57 ▼6.17
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0042.55 ▲5.0433.64 ▲1.02
Add New Post /wp-admin/post-new.php1,514 ▼1617.62 ▼0.62651.55 ▲30.8350.44 ▼4.61
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.0795.04 ▼0.4143.83 ▼0.22
Tags /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event280.440.063.46
Add New /wp-admin/post-new.php?post_type=event280.440.063.20
Categories /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event280.440.083.53
All Events /wp-admin/edit.php?post_type=event280.440.073.57
Locations /wp-admin/edit-tags.php?taxonomy=event-location&post_type=event280.440.063.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_cdash_events_calendar_widget
    • widget_theysaidso_widget
    • widget_cdash_events_categories_widget
    • widget_cdash_events_list_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/chamber-dashboard-events-calendar/css/calendar_front_styles.php
    • > /wp-content/plugins/chamber-dashboard-events-calendar/required_files.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chamber-dashboard-events-calendar/member-events/add_events.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chamber-dashboard-events-calendar/includes/template-hooks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/chamber-dashboard-events-calendar/member-events/me_functions.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=event-tag&post_type=event - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/post-new.php?post_type=event
    • > Network (severe)
    wp-admin/post-new.php?post_type=event - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=event-category&post_type=event
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=event-category&post_type=event - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=event
    • > Network (severe)
    wp-admin/edit.php?post_type=event - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit-tags.php?taxonomy=event-location&post_type=event
    • > Network (severe)
    wp-admin/edit-tags.php?taxonomy=event-location&post_type=event - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Month View), #2 (Month view with event overlay), #3 (List view), #4 (Event Calendar options in the admin), #5 (Events widget setup), #6 (Events widget on the front end), #7 (Add events from the front end)
You can take inspiration from this readme.txt

chamber-dashboard-events-calendar/cdash-event-calendar.php 69% from 13 tests

This is the main PHP file of "Chamber Dashboard Events Calendar" version 2.3.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Git Repository: An alternative Git repository was detected
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chamber-dashboard-events-calendar.php" instead of "cdash-event-calendar.php")
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

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 detected78,456 lines of code in 309 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2041,4635,31346,219
JSON110016,530
PHP431,9481,4708,174
TypeScript8119273,504
CSS215847842,965
PO File1315352691
XML1100246
Sass112074
Markdown938053

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity55.06
▷ Minimum class complexity1.00
▷ Maximum class complexity197.00
Average method complexity7.17
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods149
▷ Static methods00.00%
▷ Public methods13993.29%
▷ Protected methods00.00%
▷ Private methods106.71%
Functions99
▷ Named functions99100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.59MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/icon-events-16.png0.65KB0.00KB▼ 100.00%
screenshot-5.png32.79KB10.14KB▼ 69.08%
screenshot-4.png190.63KB60.58KB▼ 68.22%
screenshot-6.png38.46KB11.05KB▼ 71.27%
screenshot-2.png43.96KB17.45KB▼ 60.31%