10% event-calendar-scheduler

Code Review | Event Calendar / Scheduler

WordPress plugin Event Calendar / Scheduler scored 10% from 54 tests.

About plugin

  • Plugin page: event-calendar-sc...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3.1
  • WordPress version: 5.9.2
  • First release: Oct 6, 2009
  • Latest release: Sep 11, 2012
  • Number of updates: 64
  • Update frequency: every 16.8 days
  • Top authors: dhtmlx (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 98,703 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5316
    get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

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

Server-side resources used by Event Calendar / Scheduler
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.98 ▲2.62
Dashboard /wp-admin3.42 ▲0.0134.07 ▲2.23
Posts /wp-admin/edit.php3.65 ▲0.0136.78 ▲0.52
Add New Post /wp-admin/post-new.php6.89 ▼0.0889.83 ▼1,204.73
Media Library /wp-admin/upload.php3.30 ▲0.0124.61 ▼1.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 272 new files
Database: 1 new table, 8 new options
New tables
wp_events_rec
New WordPress options
scheduler_num
scheduler_xml_version
scheduler_php_version
scheduler_php
scheduler_xml
scheduler_stable_config
scheduler_url
scheduler_version

Browser metrics Passed 4 tests

Event Calendar / Scheduler: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.36 ▼0.625.56 ▼0.302.31 ▼0.44
Dashboard /wp-admin2,895 ▲346.11 ▼0.19119.03 ▼15.70158.49 ▼1.63
Posts /wp-admin/edit.php2,688 ▼33.25 ▲0.0062.65 ▲2.12140.69 ▲5.74
Add New Post /wp-admin/post-new.php1,752 ▼821.69 ▼0.91429.39 ▼1.68157.22 ▲1.84
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.04142.09 ▲2.56188.71 ▲1.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_events_rec
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • scheduler_num
    • scheduler_xml_version
    • scheduler_php
    • scheduler_url
    • scheduler_php_version
    • scheduler_stable_config
    • scheduler_xml
    • scheduler_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/event-calendar-scheduler/codebase/skin_builder/skin.php
    • > /wp-content/plugins/event-calendar-scheduler/mce_scheduler/scheduler_ajax.php
    • > /wp-content/plugins/event-calendar-scheduler/wpmu_options.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'DataItem' not found in wp-content/plugins/event-calendar-scheduler/codebase/connector/update.php:8
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/event-calendar-scheduler/settings_export.php:50
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/admin.php on line 10
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/admin.php on line 8
    • > PHP Warning
      require(ABSPATHWPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/event-calendar-scheduler/codebase/dhtmlxSchedulerConfigurator.php:38
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/event-calendar-scheduler/scheduler.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/event-calendar-scheduler/codebase/dhtmlxSchedulerConfigurator.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/event-calendar-scheduler/admin.php:35

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Events calendar within a blog page), #2 (A new event window), #3 (Admin panel), #4 (Week View), #5 (Map View (integration with Google Map)), #6 (Week Agenda View), #7 (Timeline View)
You can take inspiration from this readme.txt

event-calendar-scheduler/scheduler.php 92% from 13 tests

The main PHP file in "Event Calendar / Scheduler" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("event-calendar-scheduler.php" instead of "scheduler.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
There were no executable files found in this plugin10,292 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP269421,2975,128
JavaScript842541982,282
HTML1517011,876
CSS72181892
XML260114

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.65
▷ Minimum class complexity1.00
▷ Maximum class complexity201.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes00.00%
Methods354
▷ Static methods82.26%
▷ Public methods26574.86%
▷ Protected methods4211.86%
▷ Private methods4713.28%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
64 PNG files occupy 0.52MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
codebase/imgs_glossy/move.png0.14KB0.14KB▼ 2.07%
codebase/imgs_glossy/databg_now.png0.09KB0.09KB0.00%
screenshot-4.png33.41KB9.78KB▼ 70.72%
codebase/imgs/dhxgrid_dhx_skyblue/asteriks.png0.23KB0.13KB▼ 40.69%
screenshot-7.png23.66KB7.78KB▼ 67.12%