77% mage-eventpress

Code Review | Event Manager and Tickets Selling Plugin for WooCommerce - WpEvently - WordPress Plugin

WordPress plugin Event Manager and Tickets Selling Plugin for WooCommerce - WpEvently - WordPress Plugin scored77%from 54 tests.

About plugin

  • Plugin page: mage-eventpress
  • Plugin version: 4.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.9-6.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2018
  • Latest release: Nov 6, 2023
  • Number of updates: 479
  • Update frequency: every 4.4 days
  • Top authors: magepeopleteam (100%)

Code review

54 tests

User reviews

95 reviews

Install metrics

9,000+ active /426,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▲1.51ms] Passed 4 tests

A check of server-side resources used by Event Manager and Tickets Selling Plugin for WooCommerce - WpEvently - WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.08 ▲0.28
Dashboard /wp-admin3.47 ▲0.1748.09 ▼4.28
Posts /wp-admin/edit.php3.59 ▲0.2350.61 ▲7.14
Add New Post /wp-admin/post-new.php6.08 ▲0.1995.12 ▲11.07
Media Library /wp-admin/upload.php3.40 ▲0.1736.07 ▲2.91
Quick Setup /wp-admin/admin.php?page=mpwem_quick_setup3.3634.89
Events /wp-admin/admin.php?page=mep_events3.3631.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Event Manager and Tickets Selling Plugin for WooCommerce - WpEvently - WordPress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,034 ▲28713.08 ▼1.241.88 ▲0.1540.58 ▼5.66
Dashboard /wp-admin2,411 ▲2315.80 ▲0.14102.68 ▲1.1540.12 ▼6.09
Posts /wp-admin/edit.php2,280 ▲1772.29 ▲0.3151.65 ▲16.4835.26 ▲0.71
Add New Post /wp-admin/post-new.php1,565 ▲3923.16 ▼0.53624.38 ▼64.9251.58 ▼0.43
Media Library /wp-admin/upload.php1,646 ▲2494.48 ▲0.27101.49 ▲1.2940.65 ▼3.35
Quick Setup /wp-admin/admin.php?page=mpwem_quick_setup1,1842.4463.3053.16
Events /wp-admin/admin.php?page=mep_events1,1842.3763.6744.74

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 | 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
  • 42× 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 get_header() in wp-content/plugins/mage-eventpress/templates/taxonomy-organozer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mage-eventpress/templates/page-city-filter.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mage-eventpress/templates/event-archive.php:2
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mage-eventpress/support/elementor/elementor-support.php on line 85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/mage-eventpress/templates/all-speaker-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mep_get_option() in wp-content/plugins/mage-eventpress/templates/themes/theme-1.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_mep_datetime() in wp-content/plugins/mage-eventpress/templates/list/timeline.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_post_thumbnail() in wp-content/plugins/mage-eventpress/templates/single/thumbnail.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mep_get_option() in wp-content/plugins/mage-eventpress/templates/single/location_list.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/mage-eventpress/support/elementor/elementor-support.php:86

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=mpwem_quick_setup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at e.\u003Ccomputed>.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261705:85:16)\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)\n at Object.add [as done] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25545)\n at mp_load_date_picker (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261705:83:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261705:104:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mpwem_quick_setup
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/admin/mp_admin_settings.js?ver=1699261705:14:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mep_events
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: mp_date_format is not defined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mep_events
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).find(...).sortable is not a function
    • > GET request to /wp-admin/admin.php?page=mep_events
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: mp_date_format is not defined" "ReferenceError: mp_date_format is not defined\n at e.\u003Ccomputed>.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261707:85:16)\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)\n at Object.add [as done] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25545)\n at mp_load_date_picker (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261707:83:15)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/helper/mp_style/mp_script.js?ver=1699261707:104:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=mep_events
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).find(...).sortable is not a function" "TypeError: $(...).find(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mage-eventpress/assets/admin/mp_admin_settings.js?ver=1699261707:14:41)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #4, #5, #6, #7, #8, #9 in mage-eventpress/assets to your readme.txt
Please take inspiration from this readme.txt

mage-eventpress/woocommerce-event-press.php 77% from 13 tests

The main PHP file in "Event Manager and Tickets Selling Plugin for WooCommerce - WpEvently - WordPress Plugin" ver. 4.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mage-eventpress.php" instead of "woocommerce-event-press.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "3.0.9")
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 87 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin74,996 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1314,8861,68335,472
PO File712,25715,28725,734
CSS145784398,581
JavaScript133121812,346
SVG3132,306
HTML1694557

PHP code 0% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,372)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 117)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity69.21
▷ Minimum class complexity1.00
▷ Maximum class complexity2,372.00
Average method complexity7.54
▷ Minimum method complexity1.00
▷ Maximum method complexity117.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes00.00%
Methods488
▷ Static methods428.61%
▷ Public methods39480.74%
▷ Protected methods459.22%
▷ Private methods4910.04%
Functions297
▷ Named functions29699.66%
▷ Anonymous functions10.34%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/helper/images/arrow_down.png1.06KB0.24KB▼ 77.47%
assets/helper/images/ullimited_img.png46.06KB23.07KB▼ 49.91%
assets/helper/images/arrow_up.png1.03KB0.23KB▼ 77.65%
assets/helper/images/calendar.png0.58KB0.57KB▼ 1.01%
assets/helper/images/no_image.png5.83KB5.34KB▼ 8.41%