84% the-events-calendar-private-category

Code Review | The Event Calendar: Private Category

WordPress plugin The Event Calendar: Private Category scored84%from 54 tests.

About plugin

  • Plugin page: the-events-calend...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Feb 25, 2013
  • Number of updates: 7
  • Update frequency: every 2.0 days
  • Top authors: arifwn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by The Event Calendar: Private Category
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.57 ▼2.25
Dashboard /wp-admin3.34 ▲0.0444.42 ▼1.89
Posts /wp-admin/edit.php3.39 ▲0.0446.85 ▲0.23
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.94 ▲0.41
Media Library /wp-admin/upload.php3.27 ▲0.0337.25 ▲0.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for The Event Calendar: Private Category
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7214.48 ▼0.271.58 ▼0.4342.28 ▼3.39
Dashboard /wp-admin2,216 ▲255.88 ▲1.00107.58 ▲5.1243.16 ▲5.10
Posts /wp-admin/edit.php2,095 ▲91.99 ▼0.0640.73 ▲6.5237.47 ▲3.19
Add New Post /wp-admin/post-new.php1,553 ▲3918.30 ▲0.79646.09 ▼50.5062.94 ▼0.91
Media Library /wp-admin/upload.php1,395 ▲44.22 ▲0.02108.03 ▲7.5947.71 ▼0.05

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/the-events-calendar-private-category/event-calendar-private-category.php
    • > /wp-content/plugins/the-events-calendar-private-category/admin-views/private-meta-box-front.php
    • > /wp-content/plugins/the-events-calendar-private-category/admin-views/private-meta-box.php
    • > /wp-content/plugins/the-events-calendar-private-category/event-category.class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
2 plugin tags: the event calendar, private category

the-events-calendar-private-category/event-calendar-private-category.php 85% from 13 tests

"The Event Calendar: Private Category" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("the-events-calendar-private-category.php" instead of "event-calendar-private-category.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin257 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47828257

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.53
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin