78% timeline-history

Code Review | Timeline History

WordPress plugin Timeline History scored 78% from 54 tests.

About plugin

  • Plugin page: timeline-history
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Dec 19, 2018
  • Number of updates: 49
  • Update frequency: every 11.3 days
  • Top authors: sehgal.sunny (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active / 10,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼14.28ms] Passed 4 tests

A check of server-side resources used by Timeline History
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.17 ▲1.06
Dashboard /wp-admin3.36 ▲0.0646.94 ▼0.21
Posts /wp-admin/edit.php3.41 ▲0.0648.05 ▲1.33
Add New Post /wp-admin/post-new.php3.15 ▼2.7435.25 ▼59.31
Media Library /wp-admin/upload.php3.28 ▲0.0534.47 ▲2.58
History Timeline /wp-admin/edit.php?post_type=history_post3.3333.98
Add New /wp-admin/post-new.php?post_type=history_post3.1433.44

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timeline History
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.39 ▼0.981.82 ▲0.1942.00 ▲3.51
Dashboard /wp-admin2,238 ▲494.97 ▲0.0996.85 ▼10.1469.32 ▲27.72
Posts /wp-admin/edit.php2,124 ▲352.05 ▼0.0038.63 ▼2.1435.34 ▼1.10
Add New Post /wp-admin/post-new.php1,543 ▲1017.84 ▼5.41688.71 ▲6.9757.72 ▲2.19
Media Library /wp-admin/upload.php1,420 ▲354.21 ▼0.0396.94 ▼6.5562.50 ▲16.99
History Timeline /wp-admin/edit.php?post_type=history_post1,1081.9430.3130.40
Add New /wp-admin/post-new.php?post_type=history_post2,4737.98214.9386.38

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=history_post
    • > Notice in wp-content/plugins/timeline-history/metabox.php+66
    Undefined index: _inline_edit
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=history_post
    • > Notice in wp-content/plugins/timeline-history/metabox.php+100
    Undefined variable: meta_box_history_date_final_val

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
Almost there! Just fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/timeline-history/include/content.php
    • > /wp-content/plugins/timeline-history/include/top-title.php
    • > /wp-content/plugins/timeline-history/include/history-table_list.php
    • > /wp-content/plugins/timeline-history/history.php
    • > /wp-content/plugins/timeline-history/post-type.php
    • > /wp-content/plugins/timeline-history/metabox.php

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 96% 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
3 plugin tags: history, horizontal, timeline

timeline-history/history.php 92% from 13 tests

The main PHP file in "Timeline History" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("timeline-history.php" instead of "history.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin16,137 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS31184815,635
PHP64227269
JavaScript13322222
SVG10111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
img/timeline.png1.95KB1.06KB▼ 45.77%