89% tockify-events-calendar

Code Review | Tockify Events Calendar

WordPress plugin Tockify Events Calendar scored89%from 54 tests.

About plugin

  • Plugin page: tockify-events-ca...
  • Plugin version: 2.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2015
  • Latest release: Nov 16, 2023
  • Number of updates: 140
  • Update frequency: every 21.5 days
  • Top authors: Tockify (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active /141,530 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.04MB] [CPU: ▼6.22ms] Passed 4 tests

This is a short check of server-side resources used by Tockify Events Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.69 ▼1.53
Dashboard /wp-admin3.36 ▲0.0145.30 ▼17.98
Posts /wp-admin/edit.php3.47 ▲0.1149.91 ▲2.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.65 ▼7.93
Media Library /wp-admin/upload.php3.28 ▲0.0535.57 ▲2.57

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_register_minical_widget

Browser metrics Passed 4 tests

A check of browser resources used by Tockify Events Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7314.29 ▲0.033.91 ▲2.0142.49 ▼1.59
Dashboard /wp-admin2,211 ▲345.63 ▼0.0293.07 ▼11.5939.73 ▼3.46
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0039.93 ▼3.1138.23 ▲3.68
Add New Post /wp-admin/post-new.php6,381 ▲4,85528.17 ▲4.72937.70 ▲232.8440.79 ▼9.22
Media Library /wp-admin/upload.php1,416 ▲194.23 ▲0.07103.49 ▼3.6245.32 ▲0.94

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_register_minical_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can look at the official readme.txt

tockify-events-calendar/tockify.php 85% from 13 tests

The main file in "Tockify Events Calendar" v. 2.2.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tockify-events-calendar.php" instead of "tockify.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,586 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7122552,500
JSX411098630
PHP810275336
Sass121775
JSON10041
YAML1304

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin