10% events-manager-wpml

Code Review | Events Manager and WPML Compatibility

WordPress plugin Events Manager and WPML Compatibility scored10%from 54 tests.

About plugin

  • Plugin page: events-manager-wpml
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2012
  • Latest release: Nov 1, 2022
  • Number of updates: 43
  • Update frequency: every 83.9 days
  • Top authors: netweblogic (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /32,863 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/events-manager-wpml/em-wpml-admin.php+403
    Uncaught Error: Class 'EM_Admin_Notice' not found in wp-content/plugins/events-manager-wpml/em-wpml-admin.php:403
    Stack trace:
    #0 wp-content/plugins/events-manager-wpml/events-manager-wpml.php(498): EM_WPML_Admin::update()
    #1 wp-includes/class-wp-hook.php(310): em_wpml_activate()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▼0.01MB] [CPU: ▼13.96ms] Passed 4 tests

This is a short check of server-side resources used by Events Manager and WPML Compatibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.90 ▲2.79
Dashboard /wp-admin3.31 ▼0.0444.34 ▼16.78
Posts /wp-admin/edit.php3.36 ▲0.0048.56 ▼3.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.05 ▼37.73
Media Library /wp-admin/upload.php3.23 ▲0.0035.29 ▲2.20

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

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

Browser metrics Passed 4 tests

Events Manager and WPML Compatibility: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.111.64 ▲0.0838.56 ▼2.04
Dashboard /wp-admin2,206 ▲154.85 ▼1.05111.35 ▲8.2841.87 ▼1.37
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0235.02 ▼0.8929.88 ▼2.13
Add New Post /wp-admin/post-new.php1,533 ▼923.28 ▲5.00658.36 ▲51.5766.54 ▲7.79
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0494.40 ▼5.1338.74 ▼7.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-manager-wpml/em-wpml-admin.php:409
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/events-manager-wpml/em-wpml-io.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-manager-wpml/events-manager-wpml.php:487
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/events-manager-wpml/em-wpml-permalinks.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

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

The entry point to "Events Manager and WPML Compatibility" version 2.0.4 is a PHP file that has certain tags in its header comment area
127 characters long description:
Integrates the Events Manager and WPML plugins together to provide a smoother multilingual experience (EM and WPML also needed)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,212 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4835191,144
XML10268

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity68.00
▷ Minimum class complexity20.00
▷ Maximum class complexity104.00
Average method complexity6.32
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods50
▷ Static methods50100.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants1
▷ Global constants1100.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
No PNG files were detected