78% timelinejs

Code Review | Timelines

WordPress plugin Timelines scored78%from 54 tests.

About plugin

  • Plugin page: timelinejs
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2015
  • Latest release: Oct 20, 2015
  • Number of updates: 10
  • Update frequency: every 3.1 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /3,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.04ms] Passed 4 tests

Server-side resources used by Timelines
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.94 ▲0.24
Dashboard /wp-admin3.35 ▲0.0449.59 ▼2.64
Posts /wp-admin/edit.php3.40 ▲0.0449.66 ▼3.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0487.09 ▼6.59
Media Library /wp-admin/upload.php3.27 ▲0.0437.59 ▲0.96

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Timelines: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.57 ▼0.121.82 ▼0.2543.89 ▼1.15
Dashboard /wp-admin2,198 ▲185.57 ▼0.1086.43 ▼12.9843.38 ▼0.06
Posts /wp-admin/edit.php2,103 ▲32.14 ▲0.1436.17 ▼0.5033.90 ▼4.63
Add New Post /wp-admin/post-new.php1,531 ▲323.36 ▲0.34605.16 ▼88.0560.36 ▲7.21
Media Library /wp-admin/upload.php1,406 ▲94.17 ▼0.2394.59 ▼11.4243.70 ▼3.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/timelinejs/templates/timeline-javascript-template.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: div_id in wp-content/plugins/timelinejs/templates/timeline-javascript-template.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/timelinejs/timeline-post-categories.php:129
    • > PHP Notice
      Undefined variable: timeline_object in wp-content/plugins/timelinejs/templates/timeline-javascript-template.php on line 2
    • > PHP Notice
      Undefined variable: div_id in wp-content/plugins/timelinejs/templates/timeline-javascript-template.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === timelinejs === )
Please take inspiration from this readme.txt

timelinejs/timeline.php 85% from 13 tests

The entry point to "Timelines" version 1.05 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("timelinejs.php" instead of "timeline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,405 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10253172,405

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/pinterest.png3.95KB1.89KB▼ 52.14%
img/layers-2x.png2.83KB1.67KB▼ 41.10%
img/paypal.png2.90KB1.34KB▼ 53.75%
img/blogger.png2.93KB1.28KB▼ 56.23%
img/linkedin.png2.70KB1.05KB▼ 61.20%