83% timeline-event-history

Code Review | Timeline Event History

WordPress plugin Timeline Event History scored83%from 54 tests.

About plugin

  • Plugin page: timeline-event-hi...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 32
  • Update frequency: every 38.4 days
  • Top authors: wpdiscover (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

3,000+ active /45,144 total downloads

Benchmarks

Plugin footprint 82% 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.07MB] [CPU: ▼2.88ms] 75% from 4 tests

This is a short check of server-side resources used by Timeline Event History
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 669.29ms on /wp-admin/edit.php?post_type=timeline_wp&page=teh-dashboard)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.03 ▼3.10
Dashboard /wp-admin3.37 ▲0.0753.46 ▲0.28
Posts /wp-admin/edit.php3.42 ▲0.0651.17 ▲0.82
Add New Post /wp-admin/post-new.php6.02 ▲0.1390.07 ▼8.48
Media Library /wp-admin/upload.php3.29 ▲0.0635.09 ▼0.20
Upgrade To Premium /wp-admin/edit.php?post_type=timeline_wp&page=teh-premium3.3234.72
Documentation /wp-admin/edit.php?post_type=timeline_wp&page=teh-designs3.3532.14
Add New /wp-admin/post-new.php?post_type=timeline_wp3.4748.63
Timelines /wp-admin/edit.php?post_type=timeline_wp3.3437.32
Install Popular Plugins From WPdiscover /wp-admin/edit.php?post_type=timeline_wp&page=teh-dashboard3.50669.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 10 new options
New WordPress options
teh_cns_review
widget_recent-comments
db_upgraded
timelne-wp-v
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
timelne-wp-installDate
widget_theysaidso_widget
timelne-wp-type

Browser metrics Passed 4 tests

An overview of browser requirements for Timeline Event History
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8314.67 ▲0.291.99 ▲0.2639.58 ▼4.24
Dashboard /wp-admin2,235 ▲555.57 ▼0.0894.77 ▲1.2170.97 ▲25.25
Posts /wp-admin/edit.php2,140 ▲401.95 ▲0.0136.77 ▼3.3733.71 ▼1.97
Add New Post /wp-admin/post-new.php6,233 ▲4,70729.00 ▲5.921,032.25 ▲352.5961.52 ▼0.17
Media Library /wp-admin/upload.php1,443 ▲494.17 ▼0.0398.58 ▲0.8880.92 ▲39.93
Upgrade To Premium /wp-admin/edit.php?post_type=timeline_wp&page=teh-premium1,2022.0025.6650.78
Documentation /wp-admin/edit.php?post_type=timeline_wp&page=teh-designs1,1492.1427.8041.45
Add New /wp-admin/post-new.php?post_type=timeline_wp4,7626.63150.88131.39
Timelines /wp-admin/edit.php?post_type=timeline_wp1,1171.9134.0329.94
Install Popular Plugins From WPdiscover /wp-admin/edit.php?post_type=timeline_wp&page=teh-dashboard1,6182.0524.5935.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • timelne-wp-type
    • timelne-wp-installDate
    • timelne-wp-v
    • teh_cns_review

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/timeline-event-history/includes/admin/timeline-wp-build.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/timeline-event-history/includes/public/templates/style-another/style.php:102
    • > PHP Warning
      require(TIMELINE_WP_DIRincludes/libraries/class-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/timeline-event-history/includes/libraries/class-timeline-wp-template-loader.php on line 3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/timeline-event-history/includes/public/templates/style-one/style.php on line 4
    • > PHP Fatal error
      require(): Failed opening required 'TIMELINE_WP_DIRincludes/libraries/class-gamajo-template-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/timeline-event-history/includes/libraries/class-timeline-wp-template-loader.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/timeline-event-history/includes/public/templates/style-another/style.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-event-history/includes/admin/class-timeline-wp-field-builder.php:518
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/timeline-event-history/includes/public/templates/style-one/index.php:2
    • > PHP Warning
      Use of undefined constant TIMELINE_WP_DIR - assumed 'TIMELINE_WP_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-event-history/includes/libraries/class-timeline-wp-template-loader.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-event-history/includes/install/installation.php:2

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

timeline-event-history/timeline-wp.php 85% from 13 tests

The main PHP script in "Timeline Event History" version 3.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 295 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("timeline-event-history.php" instead of "timeline-wp.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
Everything looks great! No dangerous files found in this plugin28,866 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
CSS141,53418412,033
JavaScript342,0101,8978,994
Sass11598435,113
PHP215555442,725
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods53
▷ Static methods916.98%
▷ Public methods4075.47%
▷ Protected methods35.66%
▷ Private methods1018.87%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants15
▷ Global constants15100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/timeline-default.png13.57KB5.89KB▼ 56.61%
assets/images/timeline-icon-small.png2.25KB1.33KB▼ 40.99%