84% pie-calendar

Code Review | Pie Calendar

WordPress plugin Pie Calendar scored84%from 54 tests.

About plugin

  • Plugin page: pie-calendar
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 2, 2023
  • Latest release: Sep 7, 2023
  • Number of updates: 105
  • Update frequency: every 1.8 days
  • Top authors: apexws (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /1,802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.64ms] Passed 4 tests

Analyzing server-side resources used by Pie Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1039.27 ▼2.75
Dashboard /wp-admin3.40 ▲0.1047.92 ▼3.93
Posts /wp-admin/edit.php3.45 ▲0.0948.30 ▼6.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.45 ▼13.62
Media Library /wp-admin/upload.php3.33 ▲0.0938.39 ▲2.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Pie Calendar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.151.73 ▼0.2044.03 ▲0.98
Dashboard /wp-admin2,198 ▲215.61 ▼0.0682.16 ▼9.1440.80 ▲0.32
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0239.01 ▼1.0934.27 ▼1.60
Add New Post /wp-admin/post-new.php1,698 ▲17222.30 ▼1.39643.25 ▼17.5157.50 ▲1.06
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.10101.05 ▲1.0647.48 ▲2.05

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

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pie-calendar/includes/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pie-calendar/includes/metabox.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: fullcalendar, custom calendar, calendar, events

pie-calendar/plugin.php 85% from 13 tests

The entry point to "Pie Calendar" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pie-calendar.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected12,742 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON20011,910
PHP411877488
CSS3341179
JavaScript7819165

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions17
▷ Named functions1058.82%
▷ Anonymous functions741.18%
Constants3
▷ Global constants3100.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
No PNG files were detected