80% calendar

Code Review | Calendar

WordPress plugin Calendar scored80%from 54 tests.

About plugin

  • Plugin page: calendar
  • Plugin version: 1.3.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-5.3.2
  • WordPress version: 6.3.1
  • First release: May 7, 2007
  • Latest release: Dec 28, 2019
  • Number of updates: 135
  • Update frequency: every 34.4 days
  • Top authors: KieranOShea (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

7,000+ active /654,182 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲1.49ms] Passed 4 tests

Server-side resources used by Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4844.44 ▲1.36
Dashboard /wp-admin3.79 ▲0.4850.05 ▲3.19
Posts /wp-admin/edit.php3.90 ▲0.5455.32 ▲6.09
Add New Post /wp-admin/post-new.php6.39 ▲0.5089.32 ▼3.02
Media Library /wp-admin/upload.php3.71 ▲0.4839.58 ▲4.43
Manage Calendar /wp-admin/admin.php?page=calendar3.6836.49
Manage Categories /wp-admin/admin.php?page=calendar-categories3.6834.45
Calendar Options /wp-admin/admin.php?page=calendar-config3.6736.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 61 new files
Database: 3 new tables, 7 new options
New tables
wp_calendar
wp_calendar_categories
wp_calendar_config
New WordPress options
widget_recent-posts
calendar_version
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Calendar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12614.80 ▲0.432.42 ▲0.5343.36 ▲7.03
Dashboard /wp-admin2,250 ▲594.88 ▼0.98102.91 ▼0.1139.10 ▲0.74
Posts /wp-admin/edit.php2,130 ▲412.01 ▼0.0439.25 ▼5.4636.83 ▼1.81
Add New Post /wp-admin/post-new.php1,552 ▲1823.29 ▲0.23691.08 ▲11.9957.14 ▼1.17
Media Library /wp-admin/upload.php1,435 ▲504.27 ▲0.06103.32 ▼2.5148.40 ▼2.36
Manage Calendar /wp-admin/admin.php?page=calendar1,2471.8929.1028.45
Manage Categories /wp-admin/admin.php?page=calendar-categories8902.0724.5129.22
Calendar Options /wp-admin/admin.php?page=calendar-config1,1182.0523.1228.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 3 tables
    • wp_calendar_config
    • wp_calendar_categories
    • wp_calendar
  • This plugin does not fully uninstall, leaving 7 options in the database
    • calendar_version
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Calendar being used on a blog page), #2 (Widgets showing in the sidebar), #3 (The event management screen of calendar), #4 (The category management screen of calendar), #5 (The options screen of Calendar)
You can take inspiration from this readme.txt

calendar/calendar.php Passed 13 tests

"Calendar" version 1.3.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
This plugin allows you to display a calendar of all your events and appointments as a page on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin10,045 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PO File253,1155,2226,578
PHP22122482,775
JavaScript12150537
CSS100155

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 code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
5 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png55.98KB20.40KB▼ 63.57%
screenshot-1.png22.49KB9.12KB▼ 59.46%
screenshot-3.png58.66KB22.04KB▼ 62.42%
screenshot-2.png6.73KB2.55KB▼ 62.07%
screenshot-4.png29.97KB11.45KB▼ 61.80%