10% event-calendar-scheduler

Code Review | Event Calendar / Scheduler

WordPress plugin Event Calendar / Scheduler scored10%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: 6.3.1
  • 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

70+ active /99,086 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.61ms] Passed 4 tests

An overview of server-side resources used by Event Calendar / Scheduler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.55 ▼10.64
Dashboard /wp-admin3.32 ▼0.0350.54 ▼13.03
Posts /wp-admin/edit.php3.37 ▲0.0149.65 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.71 ▼7.25
Media Library /wp-admin/upload.php3.24 ▲0.0138.65 ▲1.63

Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/event-calendar-scheduler/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 272 new files
Database: 1 new table, 14 new options
New tables
wp_events_rec
New WordPress options
can_compress_scripts
scheduler_num
scheduler_php
db_upgraded
theysaidso_admin_options
scheduler_xml
scheduler_stable_config
scheduler_xml_version
widget_recent-posts
scheduler_php_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Calendar / Scheduler
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.20 ▼1.041.78 ▼0.4243.33 ▼0.04
Dashboard /wp-admin2,221 ▲185.86 ▲0.97100.96 ▼9.8340.26 ▼0.95
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0439.77 ▲2.6535.68 ▲0.57
Add New Post /wp-admin/post-new.php1,531 ▼1123.21 ▼0.28666.00 ▼25.2964.87 ▲8.10
Media Library /wp-admin/upload.php1,397 ▼34.27 ▲0.0499.42 ▼9.2242.80 ▼4.09

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
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_events_rec
  • The uninstall procedure has failed, leaving 14 options in the database
    • scheduler_xml
    • scheduler_xml_version
    • widget_recent-comments
    • scheduler_num
    • can_compress_scripts
    • scheduler_version
    • widget_recent-posts
    • scheduler_url
    • theysaidso_admin_options
    • scheduler_php_version
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/event-calendar-scheduler/mce_scheduler/scheduler_ajax.php
    • > /wp-content/plugins/event-calendar-scheduler/wpmu_options.php
    • > /wp-content/plugins/event-calendar-scheduler/codebase/skin_builder/skin.php
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > 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 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_locale() in wp-content/plugins/event-calendar-scheduler/admin.php:35
    • > 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 9
    • > 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 11
    • > 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 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 Fatal error
      Uncaught Error: Class 'DataItem' not found in wp-content/plugins/event-calendar-scheduler/codebase/connector/update.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #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)
  • Tags: There are too many tags (21 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

"Event Calendar / Scheduler" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same 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
Everything looks great! No dangerous 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

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
64 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
codebase/imgs/sky_blue_sel2.png0.15KB0.41KB0.00%
codebase/imgs/top-separator.png0.20KB0.23KB0.00%
codebase/imgs/controlls5.png2.77KB1.87KB▼ 32.35%
codebase/imgs/icon.png0.22KB0.21KB▼ 7.83%
codebase/imgs/lightbox.png0.20KB0.18KB▼ 8.70%