68% simple-event-list-for-elementor

Code Review | Simple event list for Elementor

WordPress plugin Simple event list for Elementor scored68%from 54 tests.

About plugin

  • Plugin page: simple-event-list...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Mar 12, 2023
  • Number of updates: 16
  • Update frequency: every 2.9 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /359 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Simple event list for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0449.28 ▲4.16
Dashboard /wp-admin3.34 ▲0.0349.55 ▼6.28
Posts /wp-admin/edit.php3.39 ▲0.0346.19 ▼9.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.73 ▼10.55
Media Library /wp-admin/upload.php3.26 ▲0.0339.20 ▲3.51
Simple Events /wp-admin/options-general.php?page=miga_simple_events-page3.3039.53

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables
wp_miga_simple_events
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
miga_simple_events_db_version
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple event list for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.69 ▲0.411.99 ▼0.0341.90 ▼2.71
Dashboard /wp-admin2,205 ▲255.51 ▼0.1386.70 ▼6.4339.37 ▼5.19
Posts /wp-admin/edit.php2,113 ▲102.00 ▼0.0136.14 ▼5.9032.12 ▼6.14
Add New Post /wp-admin/post-new.php1,538 ▲323.10 ▲4.98698.57 ▲65.7259.25 ▼1.44
Media Library /wp-admin/upload.php1,413 ▲104.16 ▼0.03100.81 ▼3.2042.45 ▼2.93
Simple Events /wp-admin/options-general.php?page=miga_simple_events-page1,0992.0324.4127.34

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
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_miga_simple_events
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • miga_simple_events_db_version
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-event-list-for-elementor/widget/includes/backend_page_help.php
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/simple-event-list-for-elementor/widget/includes/theme2.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/simple-event-list-for-elementor/widget/includes/table_class.php:8
    • > PHP Warning
      Use of undefined constant TABLE_NAME_MIGA_SIMPLE_EVENTS - assumed 'TABLE_NAME_MIGA_SIMPLE_EVENTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-event-list-for-elementor/widget/includes/backend_input.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/simple-event-list-for-elementor/widget/includes/backend_input.php:20
    • > PHP Warning
      Use of undefined constant TABLE_NAME_MIGA_SIMPLE_EVENTS - assumed 'TABLE_NAME_MIGA_SIMPLE_EVENTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-event-list-for-elementor/widget/includes/theme1.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-event-list-for-elementor/widget/includes/constants.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/simple-event-list-for-elementor/widget/includes/backend_page.php:6
    • > PHP Warning
      Use of undefined constant TABLE_NAME_MIGA_SIMPLE_EVENTS - assumed 'TABLE_NAME_MIGA_SIMPLE_EVENTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-event-list-for-elementor/widget/includes/theme2.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/simple-event-list-for-elementor/widget/includes/theme1.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/simple-event-list-for-elementor/widget/simple_events.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: event list, events, elementor, calendar

simple-event-list-for-elementor/miga_simple_events.php 85% from 13 tests

"Simple event list for Elementor" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-event-list-for-elementor.php" instead of "miga_simple_events.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,333 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11125851,048
PO File1111163147
CSS413086
JavaScript12052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity13.50
▷ Minimum class complexity3.00
▷ Maximum class complexity24.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1376.47%
▷ Protected methods317.65%
▷ Private methods15.88%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin