62% event-notifier

Code Review | Event Notifier

WordPress plugin Event Notifier scored62%from 54 tests.

About plugin

  • Plugin page: event-notifier
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2016
  • Latest release: Apr 23, 2018
  • Number of updates: 24
  • Update frequency: every 23.2 days
  • Top authors: Desertsnowman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /962 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.28MB] [CPU: ▼49.24ms] Passed 4 tests

Server-side resources used by Event Notifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.69 ▼0.7710.08 ▼30.51
Dashboard /wp-admin2.74 ▼0.6014.98 ▼53.04
Posts /wp-admin/edit.php2.75 ▼0.6115.93 ▼33.73
Add New Post /wp-admin/post-new.php2.75 ▼3.1421.68 ▼79.68
Media Library /wp-admin/upload.php2.75 ▼0.4817.14 ▼17.85
Event Notifier /wp-admin/tools.php?page=event-notifier2.7514.37

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Event Notifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.31 ▼0.041.78 ▲0.1436.99 ▼6.60
Dashboard /wp-admin2,199 ▲225.63 ▲0.0282.95 ▼7.7541.33 ▼0.52
Posts /wp-admin/edit.php2,104 ▲11.95 ▼0.0640.39 ▲0.6634.88 ▲1.84
Add New Post /wp-admin/post-new.php1,534 ▲822.89 ▼0.26701.21 ▲46.9951.29 ▲2.50
Media Library /wp-admin/upload.php1,401 ▲14.11 ▼0.04108.02 ▲5.8146.47 ▼0.02
Event Notifier /wp-admin/tools.php?page=event-notifier8952.2635.6539.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/event-notifier/classes/evenote/ui.php+123
    Creating default object from empty value
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=event-notifier
    • > Warning in wp-content/plugins/event-notifier/classes/evenote/ui.php+123
    Creating default object from empty value

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/event-notifier/assets/svg/loading.php
  • 32× 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 __() in wp-content/plugins/event-notifier/includes/slack-config.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/event-notifier/includes/email-config.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\data\\data' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\section' not found in wp-content/plugins/event-notifier/classes/evenote/ui/grid.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\panel' not found in wp-content/plugins/event-notifier/classes/evenote/ui/modal.php:21
    • > PHP Notice
      Undefined index: base_color in wp-content/plugins/event-notifier/assets/svg/loading.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\control\\template' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/button.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\control' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/template.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\panel' not found in wp-content/plugins/event-notifier/classes/evenote/ui/box.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'evenote\\ui\\control' not found in wp-content/plugins/event-notifier/classes/evenote/ui/control/text.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
6 plugin tags: notification, event, slack notifications, event notifications, slack...

event-notifier/event-notifier.php 92% from 13 tests

The main PHP script in "Event Notifier" version 1.2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected11,771 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221,0895904,781
CSS247644,083
PHP417972,3682,292
SVG100615

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.47
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces5
Interfaces2
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods193
▷ Static methods52.59%
▷ Public methods16484.97%
▷ Protected methods157.77%
▷ Private methods147.25%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/about.png16.68KB7.29KB▼ 56.26%