10% vertical-timeline-responsive

Code Review | A Vertical Timeline Responsive

WordPress plugin A Vertical Timeline Responsive scored10%from 54 tests.

About plugin

  • Plugin page: vertical-timeline...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Sep 23, 2016
  • Latest release: Jun 13, 2022
  • Number of updates: 10
  • Update frequency: every 209.0 days
  • Top authors: jahur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /2,743 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/vertical-timeline-responsive/a-vertical-timeline-responsive.php+93
    syntax error, unexpected 'Public' (T_PUBLIC), expecting identifier (T_STRING)

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.08ms] Passed 4 tests

This is a short check of server-side resources used by A Vertical Timeline Responsive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.80 ▼0.41
Dashboard /wp-admin3.31 ▼0.0447.34 ▼21.46
Posts /wp-admin/edit.php3.36 ▲0.0050.29 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.14 ▼19.15
Media Library /wp-admin/upload.php3.23 ▲0.0038.27 ▲2.78

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A Vertical Timeline Responsive: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.181.79 ▼0.0940.48 ▼0.96
Dashboard /wp-admin2,195 ▲155.62 ▲0.0289.53 ▲0.5340.62 ▼3.73
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0539.90 ▲2.7837.05 ▲4.46
Add New Post /wp-admin/post-new.php1,526 ▼1023.02 ▲4.88682.26 ▲21.5058.64 ▼6.35
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0699.40 ▲0.2342.57 ▼4.75

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/vertical-timeline-responsive/elementor/class-elementor-widget-vtlr.php:4
    • > PHP Parse error
      syntax error, unexpected 'Public' (T_PUBLIC), expecting identifier (T_STRING) in wp-content/plugins/vertical-timeline-responsive/includes/public/class_enqueue_scripts.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/vertical-timeline-responsive/includes/admin/wp-metabox-api/class-hd-wp-metabox-api.php:94
    • > PHP Parse error
      syntax error, unexpected 'Public' (T_PUBLIC), expecting identifier (T_STRING) in wp-content/plugins/vertical-timeline-responsive/includes/public/class_shortcode.php on line 3
    • > PHP Parse error
      syntax error, unexpected 'Public' (T_PUBLIC), expecting identifier (T_STRING) in wp-content/plugins/vertical-timeline-responsive/a-vertical-timeline-responsive.php on line 93

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: a vertical timeline, vertical timeline, vtlr, timeline, css timeline...

vertical-timeline-responsive/a-vertical-timeline-responsive.php 85% from 13 tests

The main file in "A Vertical Timeline Responsive" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vertical-timeline-responsive.php" instead of "a-vertical-timeline-responsive.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,043 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8310263861
CSS1320158
JavaScript19224

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.36
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods3673.47%
▷ Protected methods36.12%
▷ Private methods1020.41%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected