73% events-addon-for-elementor

Code Review | Events Addon for Elementor

WordPress plugin Events Addon for Elementor scored73%from 54 tests.

About plugin

  • Plugin page: events-addon-for-...
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 11, 2019
  • Latest release: Oct 10, 2023
  • Number of updates: 49
  • Update frequency: every 29.8 days
  • Top authors: nicheaddons (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

8,000+ active /100,663 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲5.05MB] [CPU: ▲22.32ms] 75% from 4 tests

A check of server-side resources used by Events Addon for Elementor
It is recommended to improve the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.05MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4268.33 ▲30.17
Dashboard /wp-admin8.90 ▲5.6073.16 ▲22.81
Posts /wp-admin/edit.php8.90 ▲5.5573.26 ▲27.64
Add New Post /wp-admin/post-new.php9.50 ▲3.62105.94 ▲8.67
Media Library /wp-admin/upload.php8.90 ▲5.6866.76 ▲32.78
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9055.20

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 337 new files
Database: no new tables, 9 new options
New WordPress options
fs_accounts
can_compress_scripts
fs_debug_mode
fs_active_plugins
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Events Addon for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,119 ▲34814.21 ▼0.1721.43 ▲19.3928.12 ▼15.80
Dashboard /wp-admin2,260 ▲724.88 ▼0.96111.75 ▼5.6543.85 ▼2.23
Posts /wp-admin/edit.php2,143 ▲542.03 ▲0.0136.08 ▲0.0732.59 ▼3.12
Add New Post /wp-admin/post-new.php1,545 ▲3123.21 ▲5.66622.83 ▼54.8053.16 ▼12.19
Media Library /wp-admin/upload.php1,439 ▲514.27 ▲0.15101.48 ▼12.2743.97 ▼4.65
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0811.7322.2626.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/events-addon-for-elementor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • fs_active_plugins
    • can_compress_scripts
    • fs_accounts
    • widget_recent-posts
    • widget_recent-comments
    • fs_debug_mode
    • widget_theysaidso_widget
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 68× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/event/naevents-aoec-call-action.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/basic/nabasic-slider.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/event/naevents-eo-info-box.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/basic/nabasic-video.php:9
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/events-addon-for-elementor/events-addon-for-elementor.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/event-unique/naevents-unique-pricing.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/basic/nabasic-blog.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/basic/nabasic-team.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/event/naevents-ee-ticket-selector.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/events-addon-for-elementor/elementor/widgets/event-unique/naevents-unique-info-box.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: addons, events, concert, elements, elementor widget...

events-addon-for-elementor/events-addon-for-elementor.php 92% from 13 tests

"Events Addon for Elementor" version 2.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 409 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin110,537 lines of code in 258 files:
LanguageFilesBlank linesComment linesLines of code
PHP19110,05819,29873,504
CSS311,54021817,918
JavaScript253,5313,96217,287
SVG9701,826
JSON2002

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 137)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity57.34
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity137.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes114
▷ Abstract classes21.75%
▷ Concrete classes11298.25%
▷ Final classes00.00%
Methods1,666
▷ Static methods20512.30%
▷ Public methods1,15169.09%
▷ Protected methods1438.58%
▷ Private methods37222.33%
Functions132
▷ Named functions12896.97%
▷ Anonymous functions43.03%
Constants149
▷ Global constants10067.11%
▷ Class constants4932.89%
▷ Public constants49100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/events-addon-for-elementor.png8.38KB4.78KB▼ 42.97%
assets/images/placeholder.png6.00KB5.03KB▼ 16.19%
assets/images/logo.png5.01KB2.60KB▼ 48.03%
freemius/assets/img/primary-addon-for-elementor.png3.89KB1.42KB▼ 63.51%
assets/images/icon.png1.71KB1.28KB▼ 25.23%