84% wp-better-calendar

Code Review | WP Better Calendar

WordPress plugin WP Better Calendar scored84%from 54 tests.

About plugin

  • Plugin page: wp-better-calendar
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Feb 20, 2017
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: pritpalsingh.in (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.75ms] Passed 4 tests

This is a short check of server-side resources used by WP Better Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.74 ▼1.30
Dashboard /wp-admin3.33 ▲0.0250.29 ▼2.71
Posts /wp-admin/edit.php3.38 ▲0.0246.35 ▼4.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.73 ▼2.75
Media Library /wp-admin/upload.php3.25 ▲0.0240.00 ▲5.17

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_wp_better_calendar
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP Better Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲12313.42 ▼1.1810.10 ▲8.2743.81 ▲0.24
Dashboard /wp-admin2,202 ▲255.61 ▼0.0198.64 ▲7.8242.87 ▲1.53
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0235.30 ▼4.3133.18 ▲0.09
Add New Post /wp-admin/post-new.php1,530 ▼722.82 ▲4.44610.36 ▼22.9751.09 ▼21.69
Media Library /wp-admin/upload.php1,404 ▲44.12 ▼0.0692.88 ▼11.0442.58 ▼2.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_wp_better_calendar
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-better-calendar/includes/functions.php
    • > /wp-content/plugins/wp-better-calendar/public/partials/wp-better-calendar-public-display.php
    • > /wp-content/plugins/wp-better-calendar/admin/partials/wp-better-calendar-admin-display.php
    • > /wp-content/plugins/wp-better-calendar/includes/class-wp-better-calendar-widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 require attention:
  • Screenshots: Screenshot #1 (No Information) image required
You can look at the official readme.txt

wp-better-calendar/wp-better-calendar.php Passed 13 tests

This is the main PHP file of "WP Better Calendar" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
A better calendar for sidebar widget.

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
No dangerous file extensions were detected863 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14141531529
CSS2336189
JavaScript2331145

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin