73% timeline-awesome

Code Review | History Timeline for Biography, Company History & Event Timeline

WordPress plugin History Timeline for Biography, Company History & Event Timeline scored73%from 54 tests.

About plugin

  • Plugin page: timeline-awesome
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2020
  • Latest release: May 2, 2023
  • Number of updates: 25
  • Update frequency: every 39.1 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /13,009 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.78MB] [CPU: ▲4.34ms] Passed 4 tests

This is a short check of server-side resources used by History Timeline for Biography, Company History & Event Timeline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.51 ▲2.0451.77 ▲8.01
Dashboard /wp-admin5.36 ▲2.0663.12 ▲16.16
Posts /wp-admin/edit.php5.41 ▲2.0560.30 ▲8.45
Add New Post /wp-admin/post-new.php6.89 ▲0.9970.43 ▼15.27
Media Library /wp-admin/upload.php5.27 ▲2.0456.42 ▲24.55
Add New /wp-admin/post-new.php?post_type=timeline-awesome9.0083.87
All Timelines /wp-admin/edit.php?post_type=timeline-awesome5.3453.80

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 542 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for History Timeline for Biography, Company History & Event Timeline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,119 ▲35818.22 ▲3.861.49 ▼0.1838.38 ▼3.56
Dashboard /wp-admin2,528 ▲3518.98 ▲3.32154.30 ▲67.6237.03 ▼2.91
Posts /wp-admin/edit.php2,476 ▲3766.20 ▲4.2486.98 ▲47.4329.50 ▼9.59
Add New Post /wp-admin/post-new.php6,276 ▲4,74022.20 ▲4.221,008.48 ▲410.4940.79 ▼33.34
Media Library /wp-admin/upload.php1,601 ▲2016.77 ▲2.37118.07 ▲22.6849.18 ▲5.73
Documentation /wp-admin/crb_carbon_fields_container_documentation.php260.420.1313.32
Add New /wp-admin/post-new.php?post_type=timeline-awesome8,5667.98258.2543.92
Go Pro /wp-admin/crb_carbon_fields_container_go_pro.php260.420.116.27
All Timelines /wp-admin/edit.php?post_type=timeline-awesome1,4626.1569.5329.14

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 135× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Taxonomy_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Theme_Options_Container' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Container/Network_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Field/File_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function carbon_get_post_meta() in wp-content/plugins/timeline-awesome/public/timeline-styles/timeline-vertical-9.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/timeline-awesome/gutenberg-blocks/timeline-block.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Field/Set_Field.php:12
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/timeline-awesome/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_documentation.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_documentation.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/crb_carbon_fields_container_go_pro.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_go_pro.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #3, #4, #5, #6, #7, #8, #9 in timeline-awesome/assets to your readme.txt
The official readme.txt might help

timeline-awesome/timeline-awesome.php Passed 13 tests

"History Timeline for Biography, Company History & Event Timeline" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Timeline and Story WordPress plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin34,973 lines of code in 464 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1835,3098,77513,665
PHP1762,9517,22610,158
CSS169941,2476,272
PO File278231,0242,223
Sass4937001,945
JSON800521
Markdown4450146
SVG10043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.01
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces26
Interfaces6
Traits0
Classes133
▷ Abstract classes118.27%
▷ Concrete classes12291.73%
▷ Final classes10.82%
Methods958
▷ Static methods10711.17%
▷ Public methods77981.32%
▷ Protected methods16917.64%
▷ Private methods101.04%
Functions123
▷ Named functions3528.46%
▷ Anonymous functions8871.54%
Constants37
▷ Global constants1232.43%
▷ Class constants2567.57%
▷ Public constants25100.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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/timeline-bg.png0.08KB0.10KB0.00%
public/img/date-icon.png0.14KB0.18KB0.00%
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
public/img/date-icon-vertical.png0.95KB0.17KB▼ 82.60%