73% simple-event-planner

Code Review | Simple Event Planner

WordPress plugin Simple Event Planner scored73%from 54 tests.

About plugin

  • Plugin page: simple-event-planner
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 5, 2015
  • Latest release: Aug 10, 2023
  • Number of updates: 48
  • Update frequency: every 60.3 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /50,014 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.66MB] [CPU: ▲7.42ms] Passed 4 tests

An overview of server-side resources used by Simple Event Planner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.6947.20 ▲6.68
Dashboard /wp-admin3.99 ▲0.6856.34 ▲4.19
Posts /wp-admin/edit.php4.02 ▲0.6656.30 ▲11.70
Add New Post /wp-admin/post-new.php6.62 ▲0.73104.57 ▲7.12
Media Library /wp-admin/upload.php3.85 ▲0.6249.53 ▲14.49
Add New /wp-admin/post-new.php?post_type=event_listing6.6394.02
All Events /wp-admin/edit.php?post_type=event_listing3.9752.39
Settings /wp-admin/edit.php?post_type=event_listing&page=event-planner-settings3.9043.19
Categories /wp-admin/edit-tags.php?taxonomy=event_listing_category&post_type=event_listing3.9447.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options
sep_event_options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple Event Planner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲21113.99 ▼0.385.70 ▲3.8741.10 ▼3.60
Dashboard /wp-admin2,241 ▲535.88 ▲0.98104.33 ▼12.4443.17 ▼1.56
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0340.11 ▲2.4435.64 ▲1.15
Add New Post /wp-admin/post-new.php1,568 ▲3418.39 ▼4.68618.15 ▼49.9750.71 ▲0.53
Media Library /wp-admin/upload.php1,423 ▲324.19 ▼0.0494.42 ▼3.1445.26 ▲2.70
Add New /wp-admin/post-new.php?post_type=event_listing10,85223.421,158.5969.90
All Events /wp-admin/edit.php?post_type=event_listing1,3704.3960.2981.83
Settings /wp-admin/edit.php?post_type=event_listing&page=event-planner-settings2,1564.52109.51100.60
Categories /wp-admin/edit-tags.php?taxonomy=event_listing_category&post_type=event_listing1,4984.2351.2555.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-event-planner/public/partials/single-event/ical.php
    • > /wp-content/plugins/simple-event-planner/public/partials/simple-event-planner-public-display.php
  • 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'query_vars' of non-object in wp-content/plugins/simple-event-planner/public/partials/event-listing/event-pagination.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_the_event_category() in wp-content/plugins/simple-event-planner/public/partials/single-event/event-details/category.php:17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/simple-event-planner/public/partials/event-listing/event-pagination.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_the_event_start_date() in wp-content/plugins/simple-event-planner/public/partials/single-event/event-schedule.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_simple_event_planner_template() in wp-content/plugins/simple-event-planner/public/partials/event-listing/schedule.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_the_event_start_date() in wp-content/plugins/simple-event-planner/public/partials/event-listing/date.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_slugs() in wp-content/plugins/simple-event-planner/public/partials/event-listing/content-no-events-found.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_the_event_image() in wp-content/plugins/simple-event-planner/public/partials/content-event-listing-grid-view.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-event-planner/public/partials/event-listing/title.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sep_get_event_segment() in wp-content/plugins/simple-event-planner/public/partials/single-event/event-details/event-segments.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=event_listing
    • > Console-api (warning) in unknown
    https://maps.googleapis.com/maps/api/js?v=3&libraries=places&ver=3.31 334:267 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: event calendar, venue, event management, events, ical...

simple-event-planner/simple-event-planner.php Passed 13 tests

The entry point to "Simple Event Planner" version 1.5.6 is a PHP file that has certain tags in its header comment area
112 characters long description:
A powerful & flexible plugin to create event listing and event calendar on your website in simple & elegant way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected17,377 lines of code in 94 files:
LanguageFilesBlank linesComment linesLines of code
CSS5221026,888
PHP677712,7763,382
JavaScript163263663,202
SVG1002,672
PO File55747271,233

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity9.95
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods79
▷ Static methods56.33%
▷ Public methods7291.14%
▷ Protected methods00.00%
▷ Private methods78.86%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/sep-icon.png1.35KB0.79KB▼ 41.95%
admin/images/simple-event-planner.png3.51KB1.12KB▼ 68.05%
admin/images/powerByIcon.png4.24KB2.30KB▼ 45.71%
admin/images/logo-simple-event-planner.png3.55KB2.41KB▼ 32.18%