84% event-clndr

Code Review | Event CLNDR

WordPress plugin Event CLNDR scored 84% from 54 tests.

About plugin

  • Plugin page: event-clndr
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.5
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Jan 3, 2018
  • Number of updates: 39
  • Update frequency: every 11.6 days
  • Top authors: i4nd90 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 5,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.07ms] Passed 4 tests

Analyzing server-side resources used by Event CLNDR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2136.50 ▼1.67
Dashboard /wp-admin3.53 ▲0.2246.18 ▲1.01
Posts /wp-admin/edit.php3.64 ▲0.2846.87 ▼0.10
Add New Post /wp-admin/post-new.php6.11 ▲0.2295.91 ▼7.48
Media Library /wp-admin/upload.php3.45 ▲0.2237.55 ▲0.97
Master Styles /wp-admin/admin.php?page=clndr-styles3.4240.05
Events /wp-admin/admin.php?page=clndr3.4133.86
Instances /wp-admin/admin.php?page=clndr-instances3.4235.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: 2 new tables, 7 new options
New tables
wp_clndr_events
wp_clndr_instances
New WordPress options
widget_recent-posts
clndr_version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event CLNDR
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲13013.14 ▼1.291.63 ▼0.1340.99 ▲1.07
Dashboard /wp-admin2,280 ▲894.86 ▼0.03110.84 ▲4.5542.74 ▼5.32
Posts /wp-admin/edit.php2,163 ▲742.05 ▲0.0241.24 ▲5.6034.65 ▼1.96
Add New Post /wp-admin/post-new.php1,552 ▲1818.51 ▼4.44600.02 ▼16.7854.59 ▼8.93
Media Library /wp-admin/upload.php1,465 ▲834.21 ▲0.0298.04 ▼0.7541.86 ▼3.34
Master Styles /wp-admin/admin.php?page=clndr-styles1,4902.4752.5341.92
Events /wp-admin/admin.php?page=clndr1,0121.9527.2229.56
Instances /wp-admin/admin.php?page=clndr-instances2,6052.6958.2846.46

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/event-clndr/clndr.php on line 27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/event-clndr/clndr.php:29
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/event-clndr/clndr.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: event, calendar, events, dates

event-clndr/clndr.php 92% from 13 tests

The main PHP file in "Event CLNDR" ver. 1.05 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("event-clndr.php" instead of "clndr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,146 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript224949174,365
PHP1204145995
HTML101351808
CSS514176766
PO File18182212

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions26
▷ Named functions2388.46%
▷ Anonymous functions311.54%
Constants4
▷ Global constants4100.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