84% ultimate-timeline

Code Review | Ultimate Timeline - Responsive History Timeline

WordPress plugin Ultimate Timeline - Responsive History Timeline scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-timeline
  • Plugin version: 2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2020
  • Latest release: Nov 6, 2023
  • Number of updates: 21
  • Update frequency: every 66.1 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,376 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.05ms] Passed 4 tests

A check of server-side resources used by Ultimate Timeline - Responsive History Timeline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.06 ▼2.18
Dashboard /wp-admin3.47 ▲0.1654.27 ▲3.58
Posts /wp-admin/edit.php3.58 ▲0.2253.06 ▲2.05
Add New Post /wp-admin/post-new.php6.05 ▲0.1689.29 ▼11.63
Media Library /wp-admin/upload.php3.39 ▲0.1639.61 ▲6.13
Add New Story /wp-admin/post-new.php?post_type=weblizar_timeline4.5465.60
All Stories /wp-admin/edit.php?post_type=weblizar_timeline3.5039.29
Timeline Options /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options3.4432.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 87 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Ultimate Timeline - Responsive History Timeline: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲7214.20 ▲0.073.67 ▲1.6541.07 ▲0.84
Dashboard /wp-admin2,215 ▲445.71 ▲0.15109.52 ▲4.9581.60 ▲41.77
Posts /wp-admin/edit.php2,138 ▲352.15 ▲0.2143.01 ▲3.3339.46 ▲2.84
Add New Post /wp-admin/post-new.php1,568 ▲4223.02 ▼0.43747.13 ▲132.5656.23 ▲5.42
Media Library /wp-admin/upload.php1,426 ▲264.14 ▼0.02107.46 ▲2.6783.61 ▲41.43
Add New Story /wp-admin/post-new.php?post_type=weblizar_timeline14,0157.02566.15214.37
All Stories /wp-admin/edit.php?post_type=weblizar_timeline1,1351.9336.0232.57
Timeline Options /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options1,0892.3756.8547.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • fa_icons
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options 247 Failed to decode downloaded font: /wp-content/plugins/ultimate-timeline/includes/fa-icons/css/font-awesome/webfonts/fa-solid-900.woff2
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options 272 Failed to decode downloaded font: /wp-content/plugins/ultimate-timeline/includes/fa-icons/css/font-awesome/webfonts/fa-solid-900.woff
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=weblizar_timeline&page=wct_timeline_options - Failed to decode downloaded font: /wp-content/plugins/ultimate-timeline/includes/fa-icons/css/font-awesome/webfonts/fa-solid-900.ttf


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: story timeline, timeline, history, horizontal timeline, events timeline...

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

"Ultimate Timeline - Responsive History Timeline" version 2.7'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: Please don't use more than 140 characters for the plugin description (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin12,718 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PO File15564134

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.78
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
▷ Static methods3978.00%
▷ Public methods4998.00%
▷ Protected methods00.00%
▷ Private methods12.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/contentPatternTop.png0.14KB0.11KB▼ 21.13%
assets/images/contentPatternBottom.png0.14KB0.11KB▼ 21.13%
assets/images/up.png6.22KB1.05KB▼ 83.16%
assets/images/sprite_y.png1.13KB0.13KB▼ 88.81%
assets/images/sprite_x.png1.07KB0.11KB▼ 89.79%