90% timeline-and-history-slider

Code Review | Timeline and History slider

WordPress plugin Timeline and History slider scored90%from 54 tests.

About plugin

  • Plugin page: timeline-and-hist...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 81
  • Update frequency: every 33.2 days
  • Top authors: anoopranawat (58.02%)wponlinesupport (43.21%)

Code review

54 tests

User reviews

33 reviews

Install metrics

6,000+ active /105,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.37MB] [CPU: ▼1.37ms] Passed 4 tests

An overview of server-side resources used by Timeline and History slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3038.21 ▼2.04
Dashboard /wp-admin3.72 ▲0.4247.64 ▲0.06
Posts /wp-admin/edit.php3.78 ▲0.4251.61 ▼1.57
Add New Post /wp-admin/post-new.php6.27 ▲0.3999.57 ▼1.92
Media Library /wp-admin/upload.php3.58 ▲0.3537.97 ▲4.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
wpos_anylc_site_uid
wpos_anylc_redirect
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Timeline and History slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,571 ▼1,19110.65 ▼3.721.45 ▼0.1615.26 ▼28.62
Dashboard /wp-admin2,224 ▲445.63 ▼0.0199.73 ▲2.3451.92 ▲9.72
Posts /wp-admin/edit.php2,122 ▲192.03 ▲0.0739.08 ▼2.1534.62 ▼1.83
Add New Post /wp-admin/post-new.php1,512 ▼1820.90 ▼2.29638.44 ▲63.5449.14 ▼1.51
Media Library /wp-admin/upload.php1,422 ▲224.30 ▲0.1094.14 ▼4.6638.83 ▼5.06

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • wpos_anylc_site_uid
    • can_compress_scripts
    • theysaidso_admin_options
    • wpos_anylc_redirect
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
9 plugin tags: timeline slider, company timeline, responsive timeline, history, slick slider...

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

Analyzing the main PHP file in "Timeline and History slider" version 2.3
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,971 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP255718832,382
JavaScript714558432
CSS6107155
JSON2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity17.00
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods46
▷ Static methods24.35%
▷ Public methods4291.30%
▷ Protected methods00.00%
▷ Private methods48.70%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
11 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpos-plugins/assets/images/cart-2.png2.20KB1.82KB▼ 17.38%
assets/images/essential-logo-small.png12.46KB5.83KB▼ 53.23%
wpos-plugins/assets/images/utility-icon.png0.72KB0.82KB0.00%
assets/images/image-upgrade.png166.27KB48.08KB▼ 71.08%
wpos-plugins/assets/images/inbound50-by-50.png2.09KB1.95KB▼ 6.78%