54% ringo-event-calendar

Code Review | Ringo Event Calendar

WordPress plugin Ringo Event Calendar scored 54% from 54 tests.

About plugin

  • Plugin page: ringo-event-calendar
  • Plugin version: 0.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Jan 19, 2016
  • Latest release: Mar 15, 2016
  • Number of updates: 16
  • Update frequency: every 3.5 days
  • Top authors: lafcreate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 946 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼143.88ms] Passed 4 tests

Analyzing server-side resources used by Ringo Event Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1742.92 ▲18.02
Dashboard /wp-admin3.11 ▲0.0557.71 ▲4.29
Posts /wp-admin/edit.php3.16 ▲0.0646.10 ▼16.40
Add New Post /wp-admin/post-new.php5.47 ▲0.0496.37 ▼565.15
Media Library /wp-admin/upload.php3.05 ▲0.0538.47 ▲1.75
Add New /wp-admin/post-new.php?post_type=lafrec_event3.1854.56
All Event /wp-admin/edit.php?post_type=lafrec_event3.1040.44
Event Category /wp-admin/edit-tags.php?taxonomy=lafrec_category&post_type=lafrec_event3.0536.27

Server storage [IO: ▲0.15MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: 1 new table, 2 new options
New tables
wp_lafrec_schedules
New WordPress options
lafrec_options
widget_lafrec_schedule_list

Browser metrics Passed 4 tests

An overview of browser requirements for Ringo Event Calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,752 ▲18015.74 ▼0.0110.85 ▲0.0350.47 ▼3.10
Dashboard /wp-admin3,007 ▲766.10 ▲0.05150.55 ▼55.06128.44 ▼33.93
Posts /wp-admin/edit.php2,779 ▲402.73 ▲0.0169.86 ▼12.9496.38 ▼11.15
Add New Post /wp-admin/post-new.php1,652 ▼3121.66 ▲2.91285.39 ▼119.09106.31 ▼11.76
Media Library /wp-admin/upload.php1,850 ▲1025.04 ▲0.04161.68 ▼2.41130.05 ▲3.94
Add New /wp-admin/post-new.php?post_type=lafrec_event3,3589.20238.24178.03
All Event /wp-admin/edit.php?post_type=lafrec_event1,4462.6367.2885.49
Event Category /wp-admin/edit-tags.php?taxonomy=lafrec_category&post_type=lafrec_event1,7792.3864.8890.55

Uninstaller [IO: ▲0.15MB] [DB: ▲0.01MB] 0% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/ringo-event-calendar/ringo-event-calendar.php+44
    Constant LAFREC_VERSION already defined
  • Incomplete uninstall procedure, leaving 37 files (0.15MB) in the plugin directory
    • (new file) admin/includes/meta-boxes.php
    • (new file) css/style.css
    • (new file) admin/includes/ajax-actions.php
    • (new file) bin/install-wp-tests.sh
    • (new file) css/jquery.timepicker.css
    • (new file) images/spinner-2x.gif
    • (new file) admin/includes/upgrade.php
    • (new file) admin/includes/template.php
    • (new file) admin/includes/event.php
    • (new file) css/admin.css
    • ...
  • Zombie tables detected upon uninstall: 1 table
    • wp_lafrec_schedules
  • This plugin does not fully uninstall, leaving 3 options in the database
    • recovery_mode_email_last_sent
    • lafrec_options
    • widget_lafrec_schedule_list

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_days() on null in wp-content/plugins/ringo-event-calendar/lafrec-templates/calendar.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ringo-event-calendar/includes/widgets/class-lafrec-widget-schedule-list.php:14
    • > PHP Notice
      Undefined variable: calendar in wp-content/plugins/ringo-event-calendar/lafrec-templates/calendar.php on line 1

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Events overview.), #2 (Event schedules setting.), #3 (Public calendar.)
You can look at the official readme.txt

ringo-event-calendar/ringo-event-calendar.php Passed 13 tests

Analyzing the main PHP file in "Ringo Event Calendar" version 0.4.0
87 characters long description:
Ringo is simple event calendar that originally designed for the wedding hall web sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,025 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP243595811,491
JavaScript3270811,081
PO File17072185
CSS3390174
Bourne Shell120694

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity5.50
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods1982.61%
▷ Protected methods00.00%
▷ Private methods417.39%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants853.33%
▷ Class constants746.67%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin