84% timeline-pro

Code Review | Timeline Pro

WordPress plugin Timeline Pro scored84%from 54 tests.

About plugin

  • Plugin page: timeline-pro
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: May 24, 2014
  • Latest release: Nov 20, 2017
  • Number of updates: 34
  • Update frequency: every 37.6 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /10,230 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.41ms] Passed 4 tests

This is a short check of server-side resources used by Timeline Pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.92 ▲0.84
Dashboard /wp-admin3.34 ▲0.0453.07 ▼0.93
Posts /wp-admin/edit.php3.39 ▲0.0449.88 ▲2.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.08 ▼3.95
Media Library /wp-admin/upload.php3.27 ▲0.0436.13 ▼1.58
Timeline Pro /wp-admin/edit.php?post_type=timeline_pro3.3136.55
Add New Timeline Pro /wp-admin/post-new.php?post_type=timeline_pro3.3041.60
Timeline Pro Info /wp-admin/edit.php?post_type=timeline_pro&page=timeline_pro_settings_page3.2625.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Timeline Pro
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲23614.07 ▼0.265.38 ▲3.3739.38 ▼7.05
Dashboard /wp-admin2,237 ▲495.16 ▼0.74132.14 ▲30.5589.51 ▲46.39
Posts /wp-admin/edit.php2,137 ▲482.34 ▲0.3139.55 ▲1.9334.13 ▼1.59
Add New Post /wp-admin/post-new.php1,551 ▲3717.58 ▲0.11664.22 ▼12.6239.35 ▼14.04
Media Library /wp-admin/upload.php1,431 ▲434.42 ▲0.28101.15 ▼15.1781.96 ▲30.76
Timeline Pro /wp-admin/edit.php?post_type=timeline_pro1,1062.2933.7331.36
Add New Timeline Pro /wp-admin/post-new.php?post_type=timeline_pro1,9203.5667.6765.88
Timeline Pro Info /wp-admin/edit.php?post_type=timeline_pro&page=timeline_pro_settings_page8441.9429.5723.86

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/timeline-pro/tp-pro.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/timeline-pro/timeline-pro.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/timeline-pro/timeline-meta.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt might help

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

Analyzing the main PHP file in "Timeline Pro" version 1.3
66 characters long description:
Timeline Pro is pure HTML & CSS timeline style grid for WordPress.

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
Good job! No executable or dangerous file extensions detected1,193 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP431620639
CSS19410435
JavaScript1455119

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.68MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/full-view.png2.81KB0.14KB▼ 95.06%
css/images/featured.png3.18KB0.67KB▼ 78.85%
css/images/arrow-left.png1.01KB0.14KB▼ 86.02%
css/images/twitter.png3.10KB0.38KB▼ 87.62%
css/images/facebook.png3.05KB0.34KB▼ 88.84%