68% simple-calendar-for-elementor

Code Review | Simple calendar for Elementor

WordPress plugin Simple calendar for Elementor scored68%from 54 tests.

About plugin

  • Plugin page: simple-calendar-f...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 30
  • Update frequency: every 14.1 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,403 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.15ms] Passed 4 tests

Server-side resources used by Simple calendar for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.36 ▼2.02
Dashboard /wp-admin3.33 ▲0.0245.72 ▼7.21
Posts /wp-admin/edit.php3.38 ▲0.0251.91 ▲4.38
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.81 ▲2.70
Media Library /wp-admin/upload.php3.25 ▲0.0237.32 ▲1.95
Simple Calendar /wp-admin/options-general.php?page=miga_calendar-page3.2630.74

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: 3 new tables, 9 new options
New tables
wp_miga_calendar_events
wp_miga_calendar_calendar
wp_miga_calendar_status
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
eYear
miga_calendar_days
can_compress_scripts
theysaidso_admin_options
eMonth
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simple calendar for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4614.72 ▲0.371.67 ▼0.0641.09 ▼2.77
Dashboard /wp-admin2,208 ▲315.69 ▲0.0996.02 ▼4.9640.72 ▼3.14
Posts /wp-admin/edit.php2,113 ▲101.96 ▼0.0240.50 ▲3.2336.97 ▼0.11
Add New Post /wp-admin/post-new.php1,538 ▲1223.06 ▼0.21682.66 ▼34.6255.10 ▼6.58
Media Library /wp-admin/upload.php1,410 ▲134.21 ▲0.07113.46 ▼4.3951.49 ▲5.47
Simple Calendar /wp-admin/options-general.php?page=miga_calendar-page8912.0026.0430.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_miga_calendar_status
    • wp_miga_calendar_events
    • wp_miga_calendar_calendar
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • eYear
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • eMonth
    • widget_recent-posts
    • db_upgraded
    • miga_calendar_days
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=miga_calendar-page
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

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
  • 16× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-calendar-for-elementor/widget/includes/custom_table.php on line 3
    • > PHP Warning
      Use of undefined constant TABLE_NAME_MIGA_CAL_STATUS - assumed 'TABLE_NAME_MIGA_CAL_STATUS' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-calendar-for-elementor/widget/includes/backend_status.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/simple-calendar-for-elementor/widget/elementor_calendar_legend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-calendar-for-elementor/miga_simple_calendar.php:36
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-calendar-for-elementor/widget/includes/custom_table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-calendar-for-elementor/widget/includes/custom_table.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-calendar-for-elementor/widget/includes/custom_table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/simple-calendar-for-elementor/widget/includes/backend_events.php:1
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-calendar-for-elementor/widget/includes/custom_table.php on line 3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/simple-calendar-for-elementor/miga_simple_calendar.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: elementor, belegung, elementor addons, availability calendar, kalender...

simple-calendar-for-elementor/miga_simple_calendar.php 85% from 13 tests

"Simple calendar for Elementor" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-calendar-for-elementor.php" instead of "miga_simple_calendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,383 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11189471,689
PO File2237270522
JavaScript2150170
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.20
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3288.89%
▷ Protected methods411.11%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants3
▷ Global constants3100.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 images were found in this plugin