74% rich-event-timeline

Code Review | Event Timeline - Vertical Timeline

WordPress plugin Event Timeline - Vertical Timeline scored74%from 54 tests.

About plugin

  • Plugin page: rich-event-timeline
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0
  • WordPress version: 6.3.1
  • First release: Jun 24, 2017
  • Latest release: Jul 16, 2022
  • Number of updates: 42
  • Update frequency: every 44.0 days
  • Top authors: richteam (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /36,168 total downloads

Benchmarks

Plugin footprint 65% 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.74MB] [CPU: ▲3.14ms] Passed 4 tests

Server-side resources used by Event Timeline - Vertical Timeline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7445.38 ▼0.66
Dashboard /wp-admin4.05 ▲0.7456.37 ▲3.16
Posts /wp-admin/edit.php4.16 ▲0.8055.74 ▲5.57
Add New Post /wp-admin/post-new.php6.65 ▲0.7694.08 ▲4.47
Media Library /wp-admin/upload.php3.97 ▲0.7445.48 ▲7.11

Server storage [IO: ▲3.32MB] [DB: ▲0.04MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 122 new files
Database: 6 new tables, 7 new options
New tables
wp_rich_web_timeline_manager
wp_rich_web_timeline_style_options_2
wp_rich_web_timeline_style_options
wp_rich_web_icons
wp_rich_web_timeline_options
wp_rich_web_timeline_short_options
New WordPress options
widget_rich_web_timeline_widget
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Timeline - Vertical Timeline
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19713.93 ▼0.6312.84 ▲10.9937.92 ▼7.66
Dashboard /wp-admin2,235 ▲585.81 ▲0.1697.73 ▲4.1996.49 ▲54.82
Posts /wp-admin/edit.php2,157 ▲572.27 ▲0.3235.62 ▼5.6140.43 ▲5.78
Add New Post /wp-admin/post-new.php1,739 ▲21325.05 ▲2.08613.39 ▼68.5538.22 ▼11.93
Media Library /wp-admin/upload.php1,455 ▲554.55 ▲0.35102.54 ▼8.0290.77 ▲45.58
Our Products /wp-admin/admin.php?page=Rich-Web Products1,0271.8430.8140.49
Timeline Options /wp-admin/admin.php?page=Rich-Web Timeline General6,6132.0335.8446.50
Timeline Manager /wp-admin/admin.php?page=Rich-Web Timeline Admin4,5403.2160.4530.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_rich_web_timeline_style_options_2
    • wp_rich_web_timeline_options
    • wp_rich_web_timeline_short_options
    • wp_rich_web_icons
    • wp_rich_web_timeline_manager
    • wp_rich_web_timeline_style_options
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_rich_web_timeline_widget
    • widget_theysaidso_widget
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline-Widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline-Admin-Manager.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline-Ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline-Shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/rich-event-timeline/Rich-Web-Timeline-Admin-General.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: events, history, wp timeline, event timeline, vertical...

rich-event-timeline/Rich-Web-Timeline.php 92% from 13 tests

The main PHP script in "Event Timeline - Vertical Timeline" version 1.1.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rich-event-timeline.php" instead of "Rich-Web-Timeline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,513 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
CSS132,067657,996
PHP94562026,802
SVG300879
JavaScript49343836

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Images/rich-web-timeline-logo.png2.12KB1.36KB▼ 35.64%
Images/Products/Tabs.png38.79KB5.59KB▼ 85.59%
Images/Products/Coming-Soon.png5.13KB4.25KB▼ 17.20%
Images/Products/Slider-Video.png3.09KB2.93KB▼ 5.43%
Images/Products/Timeline.png3.70KB2.72KB▼ 26.45%