84% bold-timeline-lite

Code Review | Bold Timeline Lite

WordPress plugin Bold Timeline Lite scored84%from 54 tests.

About plugin

  • Plugin page: bold-timeline-lite
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Aug 30, 2023
  • Number of updates: 40
  • Update frequency: every 31.3 days
  • Top authors: boldthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10,000+ active /98,706 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.39MB] [CPU: ▼3.22ms] Passed 4 tests

This is a short check of server-side resources used by Bold Timeline Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3543.68 ▲8.46
Dashboard /wp-admin3.71 ▲0.4147.11 ▼0.55
Posts /wp-admin/edit.php3.75 ▲0.3945.30 ▼3.40
Add New Post /wp-admin/post-new.php6.29 ▲0.4083.29 ▼7.16
Media Library /wp-admin/upload.php3.71 ▲0.4836.67 ▼1.75
Bold Timelines /wp-admin/admin.php?page=bold-timeline3.7133.40
Add New /wp-admin/admin.php?page=bold-timeline-edit3.9852.49

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Bold Timeline Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16413.41 ▼0.8910.55 ▲8.8743.71 ▲0.48
Dashboard /wp-admin2,221 ▲445.65 ▼0.0394.73 ▲4.7442.27 ▲1.63
Posts /wp-admin/edit.php2,123 ▲232.01 ▲0.0333.29 ▼3.4134.57 ▲1.74
Add New Post /wp-admin/post-new.php1,547 ▲2123.14 ▼0.35685.83 ▼10.0853.03 ▼2.16
Media Library /wp-admin/upload.php1,423 ▲264.12 ▲0.02101.32 ▼7.3743.06 ▼2.59
Bold Timelines /wp-admin/admin.php?page=bold-timeline1,0922.0725.5329.42
Add New /wp-admin/admin.php?page=bold-timeline-edit1,9408.63155.91100.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 105× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Bold_Timeline' not found in wp-content/plugins/bold-timeline-lite/assets/views/bold_timeline_item_view.php:168
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bold-timeline-lite/content_elements/bold_timeline_item/bold_timeline_item.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p11_Factory' not found in wp-content/plugins/bold-timeline-lite/bold-builder-light/plugin-update-checker/Puc/v4/Factory.php:4
    • > PHP Notice
      Undefined variable: shape in wp-content/plugins/bold-timeline-lite/assets/views/bold_timeline_item_button_view.php on line 34
    • > PHP Notice
      Undefined variable: el_id in wp-content/plugins/bold-timeline-lite/assets/views/bold_timeline_container_view.php on line 5
    • > PHP Notice
      Undefined variable: el_class in wp-content/plugins/bold-timeline-lite/assets/views/bold_timeline_group_view.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p8_Theme_UpdateChecker' not found in wp-content/plugins/bold-timeline-lite/bold-builder-light/plugin-update-checker/Puc/v4p8/Vcs/ThemeUpdateChecker.php:5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bold-timeline-lite/bold-builder-light/class-btbb-light-list-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Puc_v4p8_UpdateChecker' not found in wp-content/plugins/bold-timeline-lite/bold-builder-light/plugin-update-checker/Puc/v4p8/Theme/UpdateChecker.php:5
    • > PHP Notice
      Undefined variable: item_connection_type in wp-content/plugins/bold-timeline-lite/assets/views/bold_timeline_item_view.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in bold-timeline-lite/assets to your readme.txt
You can take inspiration from this readme.txt

bold-timeline-lite/bold-timeline-lite.php Passed 13 tests

The main PHP file in "Bold Timeline Lite" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
Bold Timeline Lite by BoldThemes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin28,374 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP772,3862,51912,973
CSS174354198,668
SVG4103,013
Sass617802,494
PO File169295532
JavaScript128298395
Markdown1740227
JSON38072

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity22.27
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes51
▷ Abstract classes59.80%
▷ Concrete classes4690.20%
▷ Final classes00.00%
Methods499
▷ Static methods6513.03%
▷ Public methods33166.33%
▷ Protected methods15631.26%
▷ Private methods122.40%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/gfx/video-16.9.png0.92KB0.08KB▼ 91.15%
assets/gfx/bold-timeline-notice.png11.43KB12.24KB0.00%
assets/gfx/BT-Icon.png8.15KB3.55KB▼ 56.40%