79% calendi

Code Review | Calendi

WordPress plugin Calendi scored 79% from 54 tests.

About plugin

  • Plugin page: calendi
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Jul 10, 2021
  • Number of updates: 7
  • Update frequency: every 150.6 days
  • Top authors: sebkay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.61ms] Passed 4 tests

This is a short check of server-side resources used by Calendi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.19 ▼4.96
Dashboard /wp-admin3.31 ▲0.0149.73 ▲0.68
Posts /wp-admin/edit.php3.36 ▲0.0147.71 ▼2.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.20 ▼19.31
Media Library /wp-admin/upload.php3.24 ▲0.0141.89 ▲8.74

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
cwp_settings
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Calendi
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.38 ▼1.041.73 ▲0.0944.10 ▼3.02
Dashboard /wp-admin2,224 ▲364.97 ▲0.11112.67 ▲9.3143.55 ▲2.90
Posts /wp-admin/edit.php2,107 ▲152.12 ▲0.0936.84 ▼7.0333.40 ▼2.76
Add New Post /wp-admin/post-new.php1,529 ▼417.72 ▼5.53698.92 ▲41.8752.12 ▼1.92
Media Library /wp-admin/upload.php1,406 ▲184.28 ▲0.0896.50 ▼5.4140.57 ▼6.63

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • cwp_settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/calendi/calendi.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cwp_get_setting() in wp-content/plugins/calendi/includes/options-page.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: posts calendar, editorial calendar, content calendar, calendi, manage posts...

calendi/calendi.php Passed 13 tests

The main file in "Calendi" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
An easy to use editorial calendar for WordPress. Ability to manage multiple post types.

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
Good job! No executable or dangerous file extensions detected426 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP39468344
PO File1313179
JavaScript1002
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin