10% events-calendar-by-plugistan

Code Review | Wordpress Events Calendar and Scheduler

WordPress plugin Wordpress Events Calendar and Scheduler scored 10% from 54 tests.

About plugin

  • Plugin page: events-calendar-b...
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.3
  • WordPress version: 5.9.2
  • First release: Apr 9, 2012
  • Latest release: Apr 11, 2012
  • Number of updates: 32
  • Update frequency: every 0.2 days
  • Top authors: kaarelveike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,507 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Parse error in wp-content/plugins/events-calendar-by-plugistan/classes/events/Abstract.php+103
    syntax error, unexpected '&'

Server metrics [RAM: ▼0.02MB] [CPU: ▼335.44ms] Passed 4 tests

An overview of server-side resources used by Wordpress Events Calendar and Scheduler
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0156.08 ▲6.26
Dashboard /wp-admin3.41 ▲0.0034.34 ▲1.88
Posts /wp-admin/edit.php3.65 ▲0.0039.52 ▲2.10
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.66 ▼1,341.03
Media Library /wp-admin/upload.php3.30 ▲0.0022.44 ▼4.71

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 131 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Events Calendar and Scheduler
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2916.15 ▲0.395.37 ▼1.042.16 ▼0.26
Dashboard /wp-admin2,892 ▲386.22 ▲0.11117.36 ▼24.98154.13 ▼7.99
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0165.58 ▲0.02137.79 ▼9.61
Add New Post /wp-admin/post-new.php1,661 ▼11116.41 ▼4.63418.84 ▼58.86149.72 ▼7.90
Media Library /wp-admin/upload.php1,701 ▲35.51 ▲0.00139.02 ▼7.71181.83 ▼7.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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 50% 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
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/events-calendar-by-plugistan/events-calendar-by-plugistan.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/forms/Payment.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/helpers/Dbn.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/forms/Event.php:13
    • > PHP Parse error
      syntax error, unexpected '&' in wp-content/plugins/events-calendar-by-plugistan/classes/events/Abstract.php on line 103
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/forms/PublicRegistrant.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/grids/EventJson.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/forms/Registrant.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/services/Nopayment.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Eabi_Ipenelo_Calendar' not found in wp-content/plugins/events-calendar-by-plugistan/classes/grids/Event.php:9

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === events-calendar-by-plugistan === )
  • Screenshots: These screenshots do not have images: #1 (Event Calendar logo by Plugistan), #2 (Event entry edit screen), #3 (Display list of events in a grid - Notice that you can even set how many people can register for the event), #4 (Events can be displayed in a Calender or in a List. Calendar comes with three desings and three sizes and is very easy to use.), #5 (Modern theme of the Calendar view. Notice how the information display pops up.), #6 (Event Calendar Plugin adds new Menu to Wordpress administration), #7 (When entering events, there are helper tooltips to assist you (Of course these can be turned off)), #8 (Add new event screen in administration)
Please take inspiration from this readme.txt

events-calendar-by-plugistan/events-calendar-by-plugistan.php 92% from 13 tests

"Wordpress Events Calendar and Scheduler" version 0.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 237 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
Good job! No executable or dangerous file extensions detected13,128 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP392,0431,4457,501
CSS57031713,265
PO File2651101,320
JavaScript42191301,042

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity31.65
▷ Minimum class complexity1.00
▷ Maximum class complexity253.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes31
▷ Abstract classes39.68%
▷ Concrete classes2890.32%
▷ Final classes00.00%
Methods295
▷ Static methods4615.59%
▷ Public methods25887.46%
▷ Protected methods186.10%
▷ Private methods196.44%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
42 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/h30.png0.27KB0.49KB0.00%
themes/retro/img/tl.png1.71KB1.99KB0.00%
themes/modern/img/select.png0.49KB0.33KB▼ 33.40%
themes/simple/img/h300.png1.29KB1.32KB0.00%
themes/retro/img/eabi-ipenelo-calendar-icon.png0.53KB0.51KB▼ 4.75%