89% b-timeline

Code Review | B Timeline - Create And Display Timeline Contents

WordPress plugin B Timeline - Create And Display Timeline Contents scored89%from 54 tests.

About plugin

  • Plugin page: b-timeline
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2021
  • Latest release: Oct 14, 2023
  • Number of updates: 21
  • Update frequency: every 32.5 days
  • Top authors: shehabulislam (52.38%)abuhayat (28.57%)srabonr (28.57%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /5,409 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.71MB] [CPU: ▲2.19ms] Passed 4 tests

Server-side resources used by B Timeline - Create And Display Timeline Contents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.27 ▲0.8040.46 ▲1.25
Dashboard /wp-admin4.03 ▲0.6851.08 ▼5.81
Posts /wp-admin/edit.php4.08 ▲0.7253.21 ▲6.36
Add New Post /wp-admin/post-new.php6.61 ▲0.7399.84 ▲7.71
Media Library /wp-admin/upload.php3.95 ▲0.7239.03 ▲6.94
Add New /wp-admin/post-new.php?post_type=btimeline4.1850.99
All Timeline /wp-admin/edit.php?post_type=btimeline4.1646.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for B Timeline - Create And Display Timeline Contents
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.73 ▲0.508.21 ▲3.8438.74 ▼3.82
Dashboard /wp-admin2,208 ▲305.65 ▲0.0593.59 ▼6.1383.24 ▲44.51
Posts /wp-admin/edit.php2,131 ▲311.99 ▲0.0438.38 ▲1.7934.54 ▲0.29
Add New Post /wp-admin/post-new.php1,562 ▲3325.23 ▲2.23658.10 ▲50.9658.71 ▲8.64
Media Library /wp-admin/upload.php1,431 ▲284.12 ▼0.0999.24 ▼0.1370.89 ▲27.70
Add New /wp-admin/post-new.php?post_type=btimeline3,3356.07163.9069.24
All Timeline /wp-admin/edit.php?post_type=btimeline1,4795.2665.6687.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #7 (Demo 4) image required
The official readme.txt might help

b-timeline/b-titmeline.php 92% from 13 tests

The entry point to "B Timeline - Create And Display Timeline Contents" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("b-timeline.php" instead of "b-titmeline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin27,065 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
PHP752,3269427,299
PO File203,1973,5946,490
Sass1595234,803
CSS62824794,486
JavaScript81,2513603,983
SVG4004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity24.26
▷ Minimum class complexity1.00
▷ Maximum class complexity140.00
Average method complexity6.79
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods233
▷ Static methods4017.17%
▷ Public methods233100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/codestar/assets/images/checkerboard.png2.29KB2.54KB0.00%
public/assets/images/timeline.png0.90KB1.07KB0.00%