90% timeline-feed

Code Review | Event Timeline Feed

WordPress plugin Event Timeline Feed scored90%from 54 tests.

About plugin

  • Plugin page: timeline-feed
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 29
  • Update frequency: every 49.3 days
  • Top authors: scriptstown (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,598 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.36MB] [CPU: ▼5.01ms] Passed 4 tests

An overview of server-side resources used by Event Timeline Feed
Normal server usage
Page Memory (MB) CPU Time (ms)
Home / 3.63 ▲0.16 49.23 ▲8.46
Dashboard /wp-admin 3.74 ▲0.40 47.78 ▼11.70
Posts /wp-admin/edit.php 3.79 ▲0.44 47.16 ▲1.30
Add New Post /wp-admin/post-new.php 6.33 ▲0.44 83.09 ▼11.92
Media Library /wp-admin/upload.php 3.67 ▲0.44 37.67 ▲2.27
All Timelines /wp-admin/edit.php?post_type=timeline_feed 3.71 37.55
Add New Timeline /wp-admin/post-new.php?post_type=timeline_feed 3.75 43.73

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Timeline Feed
There were no issues detected in relation to browser resource usage
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,823 ▲77 14.35 ▲0.00 1.94 ▲0.17 43.35 ▼1.16
Dashboard /wp-admin 2,225 ▲48 5.65 ▼0.01 94.76 ▼3.15 41.50 ▼2.18
Posts /wp-admin/edit.php 2,127 ▲27 2.02 ▲0.08 34.17 ▼3.67 32.41 ▼5.14
Add New Post /wp-admin/post-new.php 1,549 ▲23 23.31 ▲0.11 639.43 ▲60.38 50.65 ▼14.19
Media Library /wp-admin/upload.php 1,421 ▲18 4.20 ▲0.02 92.45 ▼2.34 40.38 ▼3.26
All Timelines /wp-admin/edit.php?post_type=timeline_feed 1,236 2.41 45.88 28.51
Add New Timeline /wp-admin/post-new.php?post_type=timeline_feed 5,451 4.30 202.02 86.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: timeline, event, story, stories, events

timeline-feed/timeline-feed.php Passed 13 tests

Analyzing the main PHP file in "Event Timeline Feed" version 1.2.2
135 characters long description:
Create and showcase event timelines on your WordPress website available in multiple layouts with clean, elegant, and responsive design.

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 detected4,353 lines of code in 53 files:
Language Files Blank lines Comment lines Lines of code
PHP 43 417 190 2,162
CSS 6 335 34 1,838
PO File 1 106 151 257
JavaScript 2 26 17 95
JSON 1 0 0 1

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code 0.36
Average class complexity 8.67
▷ Minimum class complexity 1.00
▷ Maximum class complexity 44.00
Average method complexity 2.61
▷ Minimum method complexity 1.00
▷ Maximum method complexity 18.00
Code structure
Namespaces 5
Interfaces 2
Traits 0
Classes 22
▷ Abstract classes 2 9.09%
▷ Concrete classes 20 90.91%
▷ Final classes 1 5.00%
Methods 124
▷ Static methods 10 8.06%
▷ Public methods 108 87.10%
▷ Protected methods 4 3.23%
▷ Private methods 12 9.68%
Functions 2
▷ Named functions 1 50.00%
▷ Anonymous functions 1 50.00%
Constants 15
▷ Global constants 4 26.67%
▷ Class constants 11 73.33%
▷ Public constants 11 100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected