WordPress plugin UM Events scored78%from 54 tests.

About plugin

  • Plugin page: um-events-lite-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 25, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.29MB] [CPU: ▼1.79ms] Passed 4 tests

An overview of server-side resources used by UM Events
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2847.53 ▲8.97
Dashboard /wp-admin3.64 ▲0.3347.51 ▼15.42
Posts /wp-admin/edit.php3.69 ▲0.3360.83 ▲6.19
Add New Post /wp-admin/post-new.php6.18 ▲0.29104.82 ▲0.97
Media Library /wp-admin/upload.php3.50 ▲0.2637.22 ▲1.11
Add New /wp-admin/post-new.php?post_type=um_events3.5552.47
Settings /wp-admin/edit.php?post_type=um_events&page=um_events_settings3.4736.94
All Events /wp-admin/edit.php?post_type=um_events3.5436.54

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

UM Events: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲25914.14 ▼0.1317.93 ▲15.9342.23 ▼3.21
Dashboard /wp-admin2,239 ▲625.68 ▲0.1592.21 ▼6.1240.37 ▼7.17
Posts /wp-admin/edit.php2,147 ▲442.08 ▲0.1138.42 ▼1.1734.29 ▲0.52
Add New Post /wp-admin/post-new.php1,565 ▲3023.68 ▲5.74661.36 ▲1.5856.08 ▼11.45
Media Library /wp-admin/upload.php1,447 ▲474.24 ▲0.0895.81 ▼8.5145.47 ▼2.94
Add New /wp-admin/post-new.php?post_type=um_events1,7763.8665.1442.42
Settings /wp-admin/edit.php?post_type=um_events&page=um_events_settings8691.7225.0529.64
All Events /wp-admin/edit.php?post_type=um_events1,1131.9731.6330.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/um-events-lite-for-ultimate-member/templates/event-view.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/um-events-lite-for-ultimate-member/includes/class-um-events-admin.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-events-lite-for-ultimate-member/includes/um-events-posttypes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/um-events-lite-for-ultimate-member/templates/events-list-tab-form.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function um_events_restrict_uploads() in wp-content/plugins/um-events-lite-for-ultimate-member/templates/events-list.php:1
    • > PHP Notice
      Undefined variable: events in wp-content/plugins/um-events-lite-for-ultimate-member/templates/events-list-tab.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-events-lite-for-ultimate-member/includes/um-events-template.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/um-events-lite-for-ultimate-member/um-events-lite-for-ultimate-member.php:16
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/um-events-lite-for-ultimate-member/templates/event-list-item.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/um-events-lite-for-ultimate-member/templates/event-list-item.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=um_events
    • > Network (severe)
    wp-content/plugins/um-events-lite-for-ultimate-member/assets/css/chosen.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=um_events
    • > Network (severe)
    wp-content/plugins/um-events-lite-for-ultimate-member/assets/js/chosen.jquery.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=um_events
    • > Javascript (severe) in unknown
    /wp-content/plugins/um-events-lite-for-ultimate-member/assets/js/um-events.js?ver=6.3.1 7:4371 Uncaught TypeError: Cannot read properties of undefined (reading 'EventSource')

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: events list, ultimate member events, ultimatemember events calendar, events, ultimate member...

um-events-lite-for-ultimate-member/um-events-lite-for-ultimate-member.php 92% from 13 tests

The main file in "UM Events" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin6,806 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS73071743,612
JavaScript72793001,763
PHP161383571,431

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.67
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods52
▷ Static methods11.92%
▷ Public methods5198.08%
▷ Protected methods11.92%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/calendar.png0.15KB0.15KB0.00%
assets/images/metallic/default-date.png0.09KB0.16KB0.00%
assets/css/chosen-sprite.png0.53KB0.88KB0.00%
assets/images/metallic/selected-date.png0.11KB0.11KB0.00%
assets/images/themes.png10.02KB10.66KB0.00%