78% events-widgets-for-elementor-and-the-events-calendar

Code Review | Events Widgets For Elementor And The Events Calendar

WordPress plugin Events Widgets For Elementor And The Events Calendar scored78%from 54 tests.

About plugin

  • Plugin page: events-widgets-fo...
  • Plugin version: 1.6.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 8, 2020
  • Latest release: Nov 21, 2023
  • Number of updates: 55
  • Update frequency: every 21.0 days
  • Top authors: coolplugins (100%)

Code review

54 tests

User reviews

74 reviews

Install metrics

10,000+ active /103,010 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.09MB] [CPU: ▼5.91ms] Passed 4 tests

This is a short check of server-side resources used by Events Widgets For Elementor And The Events Calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.67 ▼3.92
Dashboard /wp-admin3.41 ▲0.0646.59 ▼15.30
Posts /wp-admin/edit.php3.52 ▲0.1648.00 ▲0.17
Add New Post /wp-admin/post-new.php5.99 ▲0.0984.13 ▼2.92
Media Library /wp-admin/upload.php3.33 ▲0.0935.07 ▼1.49

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Events Widgets For Elementor And The Events Calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲7614.26 ▼0.451.83 ▼0.1839.05 ▼4.14
Dashboard /wp-admin2,225 ▲475.64 ▼0.0691.40 ▼14.7739.36 ▼4.20
Posts /wp-admin/edit.php2,137 ▲402.03 ▲0.0841.08 ▲3.5139.29 ▲7.15
Add New Post /wp-admin/post-new.php1,552 ▲2123.58 ▲0.78673.46 ▲82.4153.00 ▲5.13
Media Library /wp-admin/upload.php1,433 ▲304.25 ▲0.0599.71 ▲3.4450.23 ▲8.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • ectbe-v
    • ectbe-installDate
    • can_compress_scripts
    • ectbe-type
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/admin/events-addon-page/includes/cool_plugins_downloader.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/layouts/ectbe-calendar.php:4
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/layouts/ectbe-list.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/layouts/ectbe-list.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/ectbe-widget.php:9
    • > PHP Notice
      Undefined variable: layout in wp-content/plugins/events-widgets-for-elementor-and-the-events-calendar/widgets/layouts/ectbe-list.php on line 2

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

events-widgets-for-elementor-and-the-events-calendar/events-widgets-for-elementor-and-the-events-calendar.php 85% from 13 tests

The principal PHP file in "Events Widgets For Elementor And The Events Calendar" v. 1.6.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 201 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin21,178 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7651789016,614
CSS131781762,268
PHP132083002,209
SVG1065087

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.00
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods52
▷ Static methods59.62%
▷ Public methods4484.62%
▷ Protected methods23.85%
▷ Private methods611.54%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/events-addon-page/assets/images/events-calendar-pro.png11.89KB12.61KB0.00%
assets/images/event-temp-icon.png4.67KB1.19KB▼ 74.57%
admin/events-addon-page/assets/coolplugins-logo.png8.40KB3.14KB▼ 62.61%
assets/images/event-template-bg.png146.91KB156.24KB0.00%
assets/images/events-widgets-elementor-logo.png17.33KB3.28KB▼ 81.08%