93% doorkeeper-calendar

Code Review | Doorkeeper Calendar

WordPress plugin Doorkeeper Calendar scored 93% from 54 tests.

About plugin

  • Plugin page: doorkeeper-calendar
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.2.2
  • WordPress version: 5.8.1
  • First release: May 20, 2015
  • Latest release: May 21, 2015
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: Ippei Sumida (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 574 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼146.30ms] Passed 4 tests

Server-side resources used by Doorkeeper Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1436.11 ▲12.28
Dashboard /wp-admin3.09 ▲0.0342.15 ▼2.89
Posts /wp-admin/edit.php3.14 ▲0.0344.12 ▼5.13
Add New Post /wp-admin/post-new.php5.45 ▲0.0190.54 ▼576.43
Media Library /wp-admin/upload.php3.03 ▲0.0232.92 ▼0.76

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Doorkeeper Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲20917.24 ▲1.7422.00 ▲12.4949.29 ▲1.39
Dashboard /wp-admin2,988 ▲545.95 ▼0.17160.77 ▲18.91126.54 ▲7.22
Posts /wp-admin/edit.php2,754 ▲152.71 ▼0.0164.08 ▼0.7195.49 ▲5.82
Add New Post /wp-admin/post-new.php1,625 ▼5821.36 ▲2.58273.79 ▼110.37105.39 ▼6.15
Media Library /wp-admin/upload.php1,828 ▲215.03 ▼0.00145.19 ▼17.31124.47 ▲3.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/doorkeeper-calendar/Doorkeeper-calendar.php:26

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === doorkeeper-calendar === )
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

doorkeeper-calendar/Doorkeeper-calendar.php 85% from 13 tests

Analyzing the main PHP file in "Doorkeeper Calendar" version 0.2
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("doorkeeper-calendar.php" instead of "Doorkeeper-calendar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8,289 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27475538,157
PHP12248131
CSS1041

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin