93% loxi-event-calendar

Code Review | Loxi Event Calendar

WordPress plugin Loxi Event Calendar scored 93% from 54 tests.

About plugin

  • Plugin page: loxi-event-calendar
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 5.8.1
  • First release: Jul 17, 2018
  • Latest release: Dec 3, 2019
  • Number of updates: 10
  • Update frequency: every 50.9 days
  • Top authors: sc0ttkclark (80%)zbtirrell (30%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 1,549 total downloads


Plugin footprint Passed 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: ▼140.24ms] Passed 4 tests

Analyzing server-side resources used by Loxi Event Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0134.20 ▲1.66
Dashboard /wp-admin3.07 ▲0.0142.28 ▼1.74
Posts /wp-admin/edit.php3.12 ▲0.0144.03 ▲3.52
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.66 ▼553.07
Media Library /wp-admin/upload.php3.01 ▲0.0126.13 ▼7.79

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Loxi Event Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.35 ▲0.797.47 ▼0.9549.88 ▲2.42
Dashboard /wp-admin2,967 ▲335.89 ▼0.10133.11 ▼8.67113.37 ▲3.74
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0169.08 ▼0.5493.86 ▲3.53
Add New Post /wp-admin/post-new.php1,500 ▼18318.49 ▼0.29369.77 ▼13.56104.90 ▼8.23
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.01147.76 ▲4.92119.80 ▼1.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/loxi-event-calendar/src/Tribe/Main.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in loxi-event-calendar/assets to your readme.txt
  • Tags: You are using too many tags: 25 tag instead of maximum 10
You can take inspiration from this readme.txt

loxi-event-calendar/loxi-event-calendar.php 92% from 13 tests

The main PHP file in "Loxi Event Calendar" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 161 characters long)

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
No dangerous file extensions were detected126 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity4.00
▷ Maximum class complexity8.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods466.67%
▷ Public methods583.33%
▷ Protected methods116.67%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
PNG images were not found in this plugin