93% advanced-timeline-block

Code Review | Advanced Timeline Block

WordPress plugin Advanced Timeline Block scored 93% from 54 tests.

About plugin

  • Plugin page: advanced-timeline...
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Nov 25, 2021
  • Latest release: Dec 22, 2021
  • Number of updates: 7
  • Update frequency: every 3.9 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 155 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼299.88ms] Passed 4 tests

An overview of server-side resources used by Advanced Timeline Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.4256.38 ▲30.37
Dashboard /wp-admin3.44 ▲0.0338.18 ▼22.64
Posts /wp-admin/edit.php3.67 ▲0.0339.78 ▼3.94
Add New Post /wp-admin/post-new.php6.91 ▼0.0793.37 ▼1,173.06
Media Library /wp-admin/upload.php3.31 ▲0.0225.28 ▲0.14
Timeline Block /wp-admin/tools.php?page=atlb-timeline-block3.2823.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Timeline Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲5215.79 ▼0.165.51 ▼1.422.78 ▲0.48
Dashboard /wp-admin2,897 ▲405.99 ▼0.15129.17 ▲3.51179.38 ▲13.76
Posts /wp-admin/edit.php2,693 ▲23.23 ▼0.0061.63 ▼1.96202.73 ▲59.98
Add New Post /wp-admin/post-new.php1,776 ▲2420.22 ▼0.80405.42 ▼55.63182.32 ▲17.78
Media Library /wp-admin/upload.php1,703 ▲55.53 ▲0.05136.72 ▼16.38190.06 ▼7.30
Timeline Block /wp-admin/tools.php?page=atlb-timeline-block1,82110.32274.40248.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-timeline-block/admin/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in advanced-timeline-block/assets to your readme.txt
You can take inspiration from this readme.txt

advanced-timeline-block/plugin.php 85% from 13 tests

The main PHP file in "Advanced Timeline Block" ver. 2.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-timeline-block.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 193 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
Good job! No executable or dangerous file extensions detected11,994 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code

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.16
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods19.09%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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
No PNG images were found in this plugin