90% wp-events-manager

Code Review | WP Events Manager

WordPress plugin WP Events Manager scored90%from 54 tests.

About plugin

  • Plugin page: wp-events-manager
  • Plugin version: 2.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Aug 31, 2023
  • Number of updates: 72
  • Update frequency: every 32.7 days
  • Top authors: leehld (80.56%)ThimPress (15.28%)phamtungpth (6.94%)

Code review

54 tests

User reviews

11 reviews

Install metrics

30,000+ active /477,313 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.81MB] [CPU: ▲1.34ms] Passed 4 tests

Analyzing server-side resources used by WP Events Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.8351.37 ▲5.76
Dashboard /wp-admin4.11 ▲0.8056.96 ▲5.12
Posts /wp-admin/edit.php4.16 ▲0.8060.82 ▲9.57
Add New Post /wp-admin/post-new.php6.72 ▲0.8388.99 ▼15.08
Media Library /wp-admin/upload.php4.03 ▲0.8049.42 ▲13.17
Bookings /wp-admin/edit.php?post_type=event_auth_book4.0845.73
Users /wp-admin/admin.php?page=tp-event-users4.0040.62
Settings /wp-admin/admin.php?page=tp-event-setting4.1042.45
Events /wp-admin/edit.php?post_type=tp_event4.0842.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 123 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
thimpress_events_forgot_password_page_id
db_upgraded
widget_theysaidso_widget
widget_wpems_widget_countdown
thimpress_events_register_page_id
thimpress_events_account_page_id
thimpress_events_reset_password_page_id
thimpress_events_login_page_id
thimpress-event-version
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Events Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲23913.90 ▼0.4511.31 ▲9.2045.13 ▲1.18
Dashboard /wp-admin2,237 ▲604.97 ▼0.6996.02 ▲5.3339.27 ▼1.56
Posts /wp-admin/edit.php2,152 ▲522.24 ▲0.2844.05 ▲7.9435.37 ▲2.49
Add New Post /wp-admin/post-new.php1,565 ▲3723.07 ▼0.09674.39 ▲11.9956.07 ▲0.87
Media Library /wp-admin/upload.php1,443 ▲464.58 ▲0.39109.98 ▲3.2949.58 ▲1.42
Bookings /wp-admin/edit.php?post_type=event_auth_book1,1232.3442.6329.23
Users /wp-admin/admin.php?page=tp-event-users9852.1829.4430.98
Settings /wp-admin/admin.php?page=tp-event-setting1,2652.1730.0345.40
Events /wp-admin/edit.php?post_type=tp_event1,2132.1838.0531.82

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 13 options
    • can_compress_scripts
    • thimpress_events_forgot_password_page_id
    • widget_recent-posts
    • widget_recent-comments
    • thimpress_events_login_page_id
    • widget_wpems_widget_countdown
    • thimpress_events_account_page_id
    • thimpress-event-version
    • thimpress_events_reset_password_page_id
    • theysaidso_admin_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
8 plugin tags: event, locations, registration, google maps, events...

wp-events-manager/wp-events-manager.php Passed 13 tests

The entry point to "WP Events Manager" version 2.1.10 is a PHP file that has certain tags in its header comment area
65 characters long description:
A complete plugin for Events management and online booking system

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
No dangerous file extensions were detected11,154 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
PHP791,2472,1205,247
JavaScript147124664,464
CSS1013940916
SVG300527

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity14.82
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes13.23%
Methods204
▷ Static methods6230.39%
▷ Public methods19595.59%
▷ Protected methods31.47%
▷ Private methods62.94%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/libraries/owl-carousel/css/grabbing.png0.11KB0.14KB0.00%
assets/images/map-marker.png2.70KB2.88KB0.00%
inc/gateways/paypal/paypal.png4.53KB1.48KB▼ 67.43%