78% timeline-widget-addon-for-elementor

Code Review | Timeline Widget For Elementor (Elementor Timeline, Vertical & Horizontal Timeline)

WordPress plugin Timeline Widget For Elementor (Elementor Timeline, Vertical & Horizontal Timeline) scored78%from 54 tests.

About plugin

  • Plugin page: timeline-widget-a...
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2020
  • Latest release: Nov 8, 2023
  • Number of updates: 70
  • Update frequency: every 19.8 days
  • Top authors: Narinder singh (100%)

Code review

54 tests

User reviews

184 reviews

Install metrics

60,000+ active /455,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.77ms] Passed 4 tests

An overview of server-side resources used by Timeline Widget For Elementor (Elementor Timeline, Vertical & Horizontal Timeline)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.56 ▼1.29
Dashboard /wp-admin3.34 ▼0.0145.33 ▼18.44
Posts /wp-admin/edit.php3.46 ▲0.0946.25 ▲0.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.12 ▼7.48
Media Library /wp-admin/upload.php3.27 ▲0.0336.15 ▲0.13

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 9 new options
New WordPress options
twae-free-v
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
twae-installDate
twae-type
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timeline Widget For Elementor (Elementor Timeline, Vertical & Horizontal Timeline)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4714.70 ▲0.401.77 ▲0.0243.89 ▼0.96
Dashboard /wp-admin2,214 ▲345.57 ▼0.0796.78 ▲8.6945.14 ▲4.07
Posts /wp-admin/edit.php2,120 ▲202.02 ▼0.1341.51 ▲5.3936.75 ▲1.71
Add New Post /wp-admin/post-new.php1,540 ▲1423.35 ▼0.29658.35 ▼43.5864.04 ▲8.41
Media Library /wp-admin/upload.php1,410 ▲74.25 ▲0.06104.23 ▲8.0543.44 ▼1.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • twae-installDate
    • twae-free-v
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • twae-type
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/timeline-widget-addon-for-elementor/widgets/editor-layouts/vertical-template.php
    • > /wp-content/plugins/timeline-widget-addon-for-elementor/widgets/editor-layouts/horizontal-template.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-widget-addon-for-elementor/widgets/twae-widget.php:13
    • > PHP Notice
      Undefined variable: dir in wp-content/plugins/timeline-widget-addon-for-elementor/widgets/editor-layouts/horizontal-template.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: elementor widgets, addons, elementor timeline, timeline, elementor addon...

timeline-widget-addon-for-elementor/timeline-widget-addon-for-elementor.php 85% from 13 tests

"Timeline Widget For Elementor (Elementor Timeline, Vertical & Horizontal Timeline)" version 1.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 182 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin4,554 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP133234822,518
CSS83281321,865
JavaScript3283171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.62
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes337.50%
Methods66
▷ Static methods69.09%
▷ Public methods5583.33%
▷ Protected methods57.58%
▷ Private methods69.09%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 compressed PNG files occupy 0.62MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pro/slideshow-settings.png13.47KB13.95KB0.00%
assets/images/pro/single-color-settings.png18.98KB19.13KB0.00%
assets/images/pro/image-style.png14.92KB15.46KB0.00%
assets/images/amazon-2.png173.47KB185.88KB0.00%
assets/images/pro/layout-settings.png12.93KB13.15KB0.00%