83% timeline-for-wp-elementor

Code Review | Timeline for WP Elementor

WordPress plugin Timeline for WP Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: timeline-for-wp-e...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2021
  • Latest release: Feb 28, 2023
  • Number of updates: 17
  • Update frequency: every 43.9 days
  • Top authors: rafiul17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 533 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: ▼3.13ms] Passed 4 tests

Server-side resources used by Timeline for WP Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.41 ▲9.60
Dashboard /wp-admin3.32 ▲0.0247.49 ▼4.64
Posts /wp-admin/edit.php3.37 ▲0.0242.81 ▼2.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.42 ▼5.98
Media Library /wp-admin/upload.php3.25 ▲0.0235.49 ▲0.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Timeline for WP Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.22 ▼1.102.03 ▲0.0542.41 ▼3.59
Dashboard /wp-admin2,227 ▲425.77 ▲0.90103.13 ▼1.9942.00 ▼0.17
Posts /wp-admin/edit.php2,103 ▲142.02 ▲0.0134.96 ▼0.6633.69 ▲1.79
Add New Post /wp-admin/post-new.php1,526 ▲717.62 ▼5.67599.96 ▼89.9754.55 ▼15.67
Media Library /wp-admin/upload.php1,403 ▲154.20 ▼0.0398.45 ▼15.0541.07 ▼5.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WPTE_PATH - assumed 'WPTE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-for-wp-elementor/includes/helper/widgets_inc.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/timeline-for-wp-elementor/includes/aep-notice/admin-notice.php:3
    • > PHP Warning
      Use of undefined constant BE_PACK_PATH - assumed 'BE_PACK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/timeline-for-wp-elementor/includes/widgets_inc.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: Please take inspiration from this readme.txt

timeline-for-wp-elementor/init.php 77% from 13 tests

The entry point to "Timeline for WP Elementor" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.0.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("timeline-for-wp-elementor.php" instead of "init.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
There were no executable files found in this plugin832 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP775174583
CSS2323222
JavaScript13014
SVG10013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods211.76%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and 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
assets/img/aep-menu-logo.png2.69KB1.20KB▼ 55.35%