93% mmt-eventon-exim-lite

Code Review | Eventbrite EventON

WordPress plugin Eventbrite EventON scored 93% from 54 tests.

About plugin

  • Plugin page: mmt-eventon-exim-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.2
  • WordPress version: 5.8.1
  • First release: May 23, 2020
  • Latest release: Oct 2, 2021
  • Number of updates: 37
  • Update frequency: every 13.5 days
  • Top authors: momothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 679 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.50ms] Passed 4 tests

An overview of server-side resources used by Eventbrite EventON
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1330.59 ▲9.50
Dashboard /wp-admin3.09 ▲0.0344.31 ▼11.30
Posts /wp-admin/edit.php3.14 ▲0.0343.20 ▲6.66
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.77 ▼560.59
Media Library /wp-admin/upload.php3.03 ▲0.0335.66 ▲3.22

Server storage [IO: ▲0.09MB] [DB: ▲0.62MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eventbrite EventON
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11416.34 ▲0.897.93 ▲0.4550.16 ▲3.74
Dashboard /wp-admin3,004 ▲706.21 ▲0.33135.67 ▼2.72118.52 ▲0.57
Posts /wp-admin/edit.php2,767 ▲282.74 ▲0.0570.40 ▲7.0390.74 ▼1.87
Add New Post /wp-admin/post-new.php1,910 ▲23416.05 ▼2.78379.70 ▲2.52123.93 ▲0.09
Media Library /wp-admin/upload.php1,838 ▲285.11 ▲0.10132.80 ▼12.62118.98 ▲3.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: mmt_eo_exim in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-display.php on line 14
    • > PHP Notice
      Undefined variable: mmt_eo_exim in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-settings.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-import.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/class-admin-ajax.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmt-eventon-exim-lite/mmt-exim-lite.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/class-export-eventbrite.php:14
    • > PHP Notice
      Trying to get property 'fn' of non-object in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-display.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mmt-eventon-exim-lite/includes/class-mmt-eventbrite-widget.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function mmt_eo_exim_eb_org_list() on null in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-display.php:14
    • > PHP Notice
      Trying to get property 'fn' of non-object in wp-content/plugins/mmt-eventon-exim-lite/includes/admin/pages/page-eventbrite-settings.php on line 15

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 90% 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
9 plugin tags: calendar, export, import, display, eventon...

mmt-eventon-exim-lite/mmt-exim-lite.php 77% from 13 tests

The main PHP file in "Eventbrite EventON" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mmt-eventon-exim-lite.php" instead of "mmt-exim-lite.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.4.1" instead of "5.0.0")
  • 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,188 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12563251,388
CSS2617570
JavaScript107230

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity5.38
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected