83% 3r-elementor-timeline-widget

Code Review | Elementor Timeline Widget

WordPress plugin Elementor Timeline Widget scored83%from 54 tests.

About plugin

  • Plugin page: 3r-elementor-time...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2018
  • Latest release: Jan 2, 2023
  • Number of updates: 51
  • Update frequency: every 30.3 days
  • Top authors: rafiul17 (98.04%)codersaiful (3.92%)

Code review

54 tests

User reviews

25 reviews

Install metrics

10,000+ active /74,859 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Elementor Timeline Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.56 ▼0.15
Dashboard /wp-admin3.32 ▲0.0255.20 ▼2.88
Posts /wp-admin/edit.php3.37 ▲0.0249.98 ▼3.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.74 ▼21.02
Media Library /wp-admin/upload.php3.25 ▲0.0238.49 ▲0.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Elementor Timeline Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.25 ▼0.131.81 ▼0.0840.14 ▲0.11
Dashboard /wp-admin2,232 ▲555.54 ▼0.1284.52 ▼6.9583.10 ▲36.84
Posts /wp-admin/edit.php2,159 ▲592.12 ▲0.1835.17 ▼0.8140.80 ▲6.91
Add New Post /wp-admin/post-new.php1,579 ▲5123.00 ▼0.12676.60 ▼5.7955.17 ▼8.63
Media Library /wp-admin/upload.php1,455 ▲554.28 ▲0.0798.97 ▼2.5975.18 ▲31.54

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include(): Failed opening 'wp-content/plugins/3r-elementor-timeline-widget/includes/admin-notice/ca-framework/ca-framework/loader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/3r-elementor-timeline-widget/includes/admin-notice/ca-framework/example.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'CA_Framework\\Require_Control' not found in wp-content/plugins/3r-elementor-timeline-widget/includes/admin-notice/ca-framework/example.php:15
    • > PHP Warning
      include(wp-content/plugins/3r-elementor-timeline-widget/includes/admin-notice/ca-framework/ca-framework/loader.php): failed to open stream: No such file or directory in wp-content/plugins/3r-elementor-timeline-widget/includes/admin-notice/ca-framework/example.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3r-elementor-timeline-widget/includes/aep-notice/admin-notice.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

3r-elementor-timeline-widget/init.php 77% from 13 tests

"Elementor Timeline Widget" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "3.0.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("3r-elementor-timeline-widget.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,410 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9194293862
CSS31213461
Markdown19047
JavaScript23027
SVG10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.17
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods35.88%
▷ Public methods4180.39%
▷ Protected methods35.88%
▷ Private methods713.73%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) includes/admin-notice/ca-framework/assets/img/Ultra-Addons-Loto-for-white.png4.03KB0.00KB▼ 100.00%