78% hello-event

Code Review | Hello Event

WordPress plugin Hello Event scored78%from 54 tests.

About plugin

  • Plugin page: hello-event
  • Plugin version: 1.3.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2018
  • Latest release: Aug 3, 2023
  • Number of updates: 27
  • Update frequency: every 69.5 days
  • Top authors: christer_f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.82ms] Passed 4 tests

Server-side resources used by Hello Event
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.47 ▼3.59
Dashboard /wp-admin3.43 ▲0.1246.24 ▼0.28
Posts /wp-admin/edit.php3.48 ▲0.1246.61 ▼3.06
Add New Post /wp-admin/post-new.php6.03 ▲0.1482.43 ▼16.36
Media Library /wp-admin/upload.php3.35 ▲0.1234.54 ▲0.51
Test Settings /wp-admin/admin.php?page=hello-bsr3.3137.51
Add New /wp-admin/post-new.php?post_type=hello_event3.4847.85
All Events /wp-admin/edit.php?post_type=hello_event3.4037.26
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=hello_event3.3435.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 456 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
hello_event
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Event
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,046 ▲30014.75 ▲0.4612.84 ▲11.0540.30 ▼2.78
Dashboard /wp-admin2,256 ▲715.10 ▼0.92107.61 ▲5.8439.42 ▼4.85
Posts /wp-admin/edit.php2,139 ▲502.42 ▲0.4040.15 ▼1.2534.73 ▼1.15
Add New Post /wp-admin/post-new.php1,561 ▲2423.55 ▲0.59655.38 ▲65.4035.08 ▼18.55
Media Library /wp-admin/upload.php1,432 ▲414.49 ▲0.2999.16 ▲0.5142.47 ▼1.99
Hello Event /wp-admin/options-general.php?page=Hello Event_options1,2791.8628.6236.30
Test Settings /wp-admin/admin.php?page=hello-bsr8081.8726.0020.98
Add New /wp-admin/post-new.php?post_type=hello_event3,48410.22206.4868.52
All Events /wp-admin/edit.php?post_type=hello_event1,1922.4033.0129.87
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=hello_event1,3572.0430.2729.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • hello_event
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hello-event/includes/fullcalendar.2.7.1/demos/php/get-timezones.php
    • > /wp-content/plugins/hello-event/includes/fullcalendar.2.7.1/demos/php/get-events.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\add_action() in wp-content/plugins/hello-event/includes/hello-event-google-map.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\add_action() in wp-content/plugins/hello-event/includes/hello-event-calendar.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\add_action() in wp-content/plugins/hello-event/includes/hello-event-openstreet-map.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\add_action() in wp-content/plugins/hello-event/includes/hello-event-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\trailingslashit() in wp-content/plugins/hello-event/includes/hello-event-map.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Tekomatik\\HelloEvent\\add_action() in wp-content/plugins/hello-event/includes/hello-event-list-events.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: google map, events, calendar, tickets, ical...

hello-event/hello_event.php 92% from 13 tests

The main file in "Hello Event" v. 1.3.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("hello-event.php" instead of "hello_event.php")

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 detected90,166 lines of code in 359 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27911,83911,85872,894
JSON6005,692
CSS246035014,333
HTML2941773,106
PHP113765652,836
PO File33755061,025
Markdown4570134
Sass1170133
YAML1007
Ruby1346

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity35.44
▷ Minimum class complexity7.00
▷ Maximum class complexity191.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods120
▷ Static methods00.00%
▷ Public methods11696.67%
▷ Protected methods00.00%
▷ Private methods43.33%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.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
51 PNG files occupy 1.47MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
includes/fullcalendar.2.7.1/lib/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png0.34KB0.16KB▼ 53.76%
js/datetimepicker/screen/4.png12.29KB5.50KB▼ 55.26%
includes/js/jquery-ui-1.12.1-2.custom-dialog/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
includes/fullcalendar.2.7.1/lib/cupertino/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%