83% talks-add-on-for-the-events-calendar

Code Review | Talks Add-on for The Events Calendar

WordPress plugin Talks Add-on for The Events Calendar scored83%from 54 tests.

About plugin

  • Plugin page: talks-add-on-for-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Jun 27, 2019
  • Number of updates: 20
  • Update frequency: every 54.6 days
  • Top authors: dingo_bastard (75%)dingo_d (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.36ms] Passed 4 tests

This is a short check of server-side resources used by Talks Add-on for The Events Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0033.56 ▼2.80
Dashboard /wp-admin3.31 ▲0.0043.34 ▼6.40
Posts /wp-admin/edit.php3.36 ▲0.0045.78 ▼0.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.10 ▼7.59
Media Library /wp-admin/upload.php3.23 ▲0.0035.30 ▲2.51

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

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

Browser metrics Passed 4 tests

Talks Add-on for The Events Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.154.70 ▲3.0938.27 ▼2.81
Dashboard /wp-admin2,209 ▲185.83 ▲0.94102.86 ▼1.6136.41 ▼8.03
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0139.90 ▼0.8235.09 ▼3.44
Add New Post /wp-admin/post-new.php1,538 ▲2123.18 ▲5.54659.36 ▲8.8955.45 ▼5.96
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0298.23 ▼0.0543.03 ▼0.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/talks-add-on-for-the-events-calendar/public/partials/event-talks-public-display.php:165
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/talks-add-on-for-the-events-calendar/admin/partials/event-talks-metabox.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

talks-add-on-for-the-events-calendar/event_talks.php 85% from 13 tests

The main PHP script in "Talks Add-on for The Events Calendar" version 1.0.5 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("talks-add-on-for-the-events-calendar.php" instead of "event_talks.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected1,733 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP102355251,129
CSS2456387
JavaScript3467198
SVG10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.25
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods3282.05%
▷ Protected methods00.00%
▷ Private methods717.95%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin