78% event-scheduler

Code Review | Event Scheduler

WordPress plugin Event Scheduler scored78%from 54 tests.

About plugin

  • Plugin page: event-scheduler
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 11, 2018
  • Latest release: Aug 24, 2021
  • Number of updates: 39
  • Update frequency: every 33.1 days
  • Top authors: poisl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,365 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
Installer ran successfully

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

Analyzing server-side resources used by Event Scheduler
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.84 ▲2.97
Dashboard /wp-admin3.33 ▲0.0344.60 ▼5.50
Posts /wp-admin/edit.php3.45 ▲0.0950.12 ▼0.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.87 ▲4.76
Media Library /wp-admin/upload.php3.26 ▲0.0336.61 ▲2.50
Event Scheduler /wp-admin/options-general.php?page=event-scheduler3.2937.69

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 6 new options
New tables
wp_event_scheduler_holiday
wp_event_scheduler_event
wp_event_scheduler_participant
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Event Scheduler: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.62 ▼1.068.77 ▲6.8337.55 ▼11.78
Dashboard /wp-admin2,214 ▲265.86 ▲0.94107.79 ▼8.2440.01 ▼4.26
Posts /wp-admin/edit.php2,097 ▲52.00 ▲0.0240.18 ▼1.6535.42 ▲1.13
Add New Post /wp-admin/post-new.php1,530 ▼718.54 ▼4.72630.15 ▲23.9957.07 ▲9.06
Media Library /wp-admin/upload.php1,399 ▲174.24 ▲0.0495.46 ▼1.5742.62 ▲0.12
Event Scheduler /wp-admin/options-general.php?page=event-scheduler9572.0324.6939.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=event-scheduler
    • > Notice in wp-content/plugins/event-scheduler/admin/partials/event-scheduler-admin-display.php+36
    Trying to access array offset on value of type bool

SRP 50% 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
The following issues need your attention
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-statistics-display.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsParticipantDb.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-member-list-display.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsEventDb.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'EsDb' not found in wp-content/plugins/event-scheduler/includes/EsHolidayDb.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/event-scheduler/admin/partials/event-scheduler-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-holiday-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-list-admin-display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-event-list-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/event-scheduler/public/partials/event-scheduler-public-holiday-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Requires php: Version format is invalid
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

event-scheduler/event-scheduler.php Passed 13 tests

The main PHP file in "Event Scheduler" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Event scheduler can be used for planning of recurring events.

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 detected1,958 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP225331,2251,759
PO File16275152
Markdown118028
XML1009
JavaScript24546
SVG4004
CSS2080

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.08
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods97
▷ Static methods22.06%
▷ Public methods9294.85%
▷ Protected methods00.00%
▷ Private methods55.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin