84% timeline-block

Code Review | Timeline Block For Gutenberg

WordPress plugin Timeline Block For Gutenberg scored84%from 54 tests.

About plugin

  • Plugin page: timeline-block
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Oct 17, 2023
  • Number of updates: 32
  • Update frequency: every 36.0 days
  • Top authors: coolplugins (65.63%)Narinder singh (37.5%)

Code review

54 tests

User reviews

6 reviews

Install metrics

6,000+ active /47,642 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼11.18ms] Passed 4 tests

An overview of server-side resources used by Timeline Block For Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.88 ▼1.80
Dashboard /wp-admin3.34 ▲0.0045.36 ▼14.26
Posts /wp-admin/edit.php3.40 ▲0.0447.63 ▼0.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.58 ▼21.54
Media Library /wp-admin/upload.php3.27 ▲0.0433.52 ▼7.12

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Timeline Block For Gutenberg: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.62 ▲0.0338.55 ▼1.04
Dashboard /wp-admin2,195 ▲155.62 ▼0.0389.00 ▲2.8344.74 ▲4.07
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0039.65 ▲1.8137.63 ▲1.13
Add New Post /wp-admin/post-new.php6,209 ▲4,67828.72 ▲5.451,127.88 ▲484.6435.57 ▼17.23
Media Library /wp-admin/upload.php1,400 ▼34.28 ▲0.0593.49 ▼13.2439.52 ▼4.70

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
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 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/timeline-block/includes/gutenberg-block/init.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
8 plugin tags: company history, timeline, gutenberg, steps, block...

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

The main file in "Timeline Block For Gutenberg" v. 1.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin58,530 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript78,8308,95056,078
CSS5238101,763
Sass3503465
PHP43842213
JSON10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/cool-timeline-block/images/timeline.27d3f3c7.png123.22KB29.32KB▼ 76.20%