90% quick-event-calendar

Code Review | Quick Event Calendar

WordPress plugin Quick Event Calendar scored90%from 54 tests.

About plugin

  • Plugin page: quick-event-calendar
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Oct 26, 2023
  • Number of updates: 16
  • Update frequency: every 159.6 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,472 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.68ms] Passed 4 tests

Server-side resources used by Quick Event Calendar
Server-side resource usage in normal parameters
Page Memory (MB) CPU Time (ms)
Home / 3.58 ▲0.12 39.08 ▼0.56
Dashboard /wp-admin 3.40 ▲0.10 48.50 ▼8.33
Posts /wp-admin/edit.php 3.51 ▲0.16 42.56 ▼3.83
Add New Post /wp-admin/post-new.php 6.00 ▲0.11 81.02 ▼13.99
Media Library /wp-admin/upload.php 3.32 ▲0.09 34.93 ▲3.14
Quick Event Calendar /wp-admin/options-general.php?page=qcc 3.29 30.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 16 new options
New WordPress options
qcc_category
qcc_accent_colour
widget_theysaidso_widget
qcc_date_meta_day
qcc_event_colour
can_compress_scripts
widget_recent-comments
qcc_use_date_meta
qcc_post_type
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Event Calendar
Minimal impact on browser resources
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,905 ▲144 13.66 ▼0.70 12.48 ▲10.82 43.54 ▼0.67
Dashboard /wp-admin 2,223 ▲46 5.82 ▲0.27 98.54 ▲6.36 42.42 ▲1.90
Posts /wp-admin/edit.php 2,127 ▲27 2.30 ▲0.28 34.85 ▼0.41 30.26 ▼4.76
Add New Post /wp-admin/post-new.php 1,545 ▲8 23.71 ▲5.39 678.74 ▲40.38 40.12 ▼34.66
Media Library /wp-admin/upload.php 1,428 ▲31 4.34 ▲0.20 96.37 ▼3.34 43.53 ▲0.28
Quick Event Calendar /wp-admin/options-general.php?page=qcc 900 1.93 26.90 48.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
6 plugin tags: month, date, schedule, calendar, year...

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

The main PHP script in "Quick Event Calendar" version 1.4.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 262 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,512 lines of code in 19 files:
Language Files Blank lines Comment lines Lines of code
CSS 8 134 146 787
PHP 5 86 29 422
JavaScript 4 28 37 169
PO File 1 41 42 103
XML 1 8 4 31

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code 0.19
Average class complexity 0.00
▷ Minimum class complexity 0.00
▷ Maximum class complexity 0.00
Average method complexity 0.00
▷ Minimum method complexity 0.00
▷ Maximum method complexity 0.00
Code structure
Namespaces 0
Interfaces 0
Traits 0
Classes 0
▷ Abstract classes 0 0.00%
▷ Concrete classes 0 0.00%
▷ Final classes 0 0.00%
Methods 0
▷ Static methods 0 0.00%
▷ Public methods 0 0.00%
▷ Protected methods 0 0.00%
▷ Private methods 0 0.00%
Functions 12
▷ Named functions 12 100.00%
▷ Anonymous functions 0 0.00%
Constants 3
▷ Global constants 3 100.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
File Size - original Size - compressed Savings
img/gb-logo-white-512.png 14.72KB 8.49KB ▼ 42.32%