90% infinite-timeline

Code Review | Infinite Timeline

WordPress plugin Infinite Timeline scored90%from 54 tests.

About plugin

  • Plugin page: infinite-timeline
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Jun 24, 2019
  • Number of updates: 8
  • Update frequency: every 201.0 days
  • Top authors: sysbird (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /4,099 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.89ms] Passed 4 tests

A check of server-side resources used by Infinite Timeline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.73 ▼2.34
Dashboard /wp-admin3.33 ▼0.0143.64 ▼18.60
Posts /wp-admin/edit.php3.38 ▲0.0349.65 ▲2.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.10 ▼18.78
Media Library /wp-admin/upload.php3.25 ▲0.0334.65 ▲0.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Infinite Timeline
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.40 ▼0.5511.03 ▲9.4744.22 ▲5.82
Dashboard /wp-admin2,195 ▲185.59 ▲0.0285.49 ▼2.1236.13 ▼3.54
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0237.25 ▲1.5833.96 ▼4.87
Add New Post /wp-admin/post-new.php1,527 ▼123.20 ▲0.11587.72 ▼21.1445.24 ▼52.55
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.01102.36 ▲2.4545.96 ▲3.82

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (example 1), #2 (example 2)
The official readme.txt is a good inspiration

infinite-timeline/infinite-timeline.php Passed 13 tests

Analyzing the main PHP file in "Infinite Timeline" version 1.1
50 characters long description:
The shortcode displays posts on vertical timeline.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,387 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35043892,141
PHP13730144
CSS1208102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin