84% ikjweb-events-calendar-for-divi

Code Review | IKJ Events Calendar For Divi

WordPress plugin IKJ Events Calendar For Divi scored84%from 54 tests.

About plugin

  • Plugin page: ikjweb-events-cal...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: May 31, 2023
  • Latest release: May 31, 2023
  • Number of updates: 9
  • Update frequency: every 1.2 days
  • Top authors: ilenejohnson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /131 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.49ms] Passed 4 tests

An overview of server-side resources used by IKJ Events Calendar For Divi
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.93 ▼4.41
Dashboard /wp-admin3.31 ▲0.0147.55 ▼7.26
Posts /wp-admin/edit.php3.36 ▲0.0047.56 ▼3.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.38 ▼10.33
Media Library /wp-admin/upload.php3.23 ▲0.0039.73 ▲0.56

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

IKJ Events Calendar For Divi: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.62 ▼0.751.76 ▼0.1943.63 ▼0.32
Dashboard /wp-admin2,215 ▲305.87 ▼0.03114.30 ▼0.9143.12 ▼2.20
Posts /wp-admin/edit.php2,097 ▲112.01 ▲0.0035.87 ▼1.3732.80 ▼1.16
Add New Post /wp-admin/post-new.php1,523 ▲117.63 ▼5.50678.61 ▲3.5157.26 ▲0.69
Media Library /wp-admin/upload.php1,397 ▲94.26 ▲0.01113.18 ▼5.7747.62 ▲0.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ikjweb-events-calendar-for-divi/includes/modules/UpcomingEvents/UpcomingEvents.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ikjweb-events-calendar-for-divi/includes/modules/IKJEventsBlogForDivi/IKJEventsBlogForDivi.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/ikjweb-events-calendar-for-divi/includes/IKJEventsCalendarForDivi.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DIEC_events_cal\\events\\add_action() in wp-content/plugins/ikjweb-events-calendar-for-divi/ikjweb-events-calendar-for-divi.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: tribe, events, divi

ikjweb-events-calendar-for-divi/ikjweb-events-calendar-for-divi.php 92% from 13 tests

"IKJ Events Calendar For Divi" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin645 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP512672502
PO File14253112
Markdown125026
CSS3003
JavaScript2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin