89% wp-timeliner

Code Review | WP Timeliner

WordPress plugin WP Timeliner scored 89% from 54 tests.

About plugin

  • Plugin page: wp-timeliner
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0.2
  • WordPress version: 5.8.1
  • First release: Jan 4, 2019
  • Latest release: Jan 4, 2019
  • Number of updates: 3
  • Update frequency: every 20.0 days
  • Top authors: pskli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 595 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.54MB] [CPU: ▼119.06ms] Passed 4 tests

This is a short check of server-side resources used by WP Timeliner
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.33 ▲2.6156.97 ▲32.45
Dashboard /wp-admin5.59 ▲2.5369.50 ▲18.79
Posts /wp-admin/edit.php5.64 ▲2.5369.91 ▲21.48
Add New Post /wp-admin/post-new.php8.10 ▲2.66119.88 ▼534.26
Media Library /wp-admin/upload.php5.51 ▲2.5053.33 ▲17.77
Tags /wp-admin/edit-tags.php?taxonomy=wpt-tag&post_type=wpt-achievement5.5452.97
Timelines /wp-admin/edit-tags.php?taxonomy=wpt-timeline&post_type=wpt-achievement5.5758.69
WP Timeliner /wp-admin/options-general.php?page=wp-timeliner-options5.5458.15
All Achievements /wp-admin/edit.php?post_type=wpt-achievement5.5954.55
New Achievement /wp-admin/post-new.php?post_type=wpt-achievement8.17122.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 549 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Timeliner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,065 ▲48321.54 ▲6.119.76 ▲3.9654.35 ▲2.23
Dashboard /wp-admin3,277 ▲34311.30 ▲5.28226.53 ▲79.80123.25 ▲0.17
Posts /wp-admin/edit.php3,088 ▲3497.16 ▲4.46147.38 ▲76.4789.56 ▼1.10
Add New Post /wp-admin/post-new.php1,690 ▲725.57 ▲6.85333.70 ▼69.65113.20 ▼12.88
Media Library /wp-admin/upload.php2,008 ▲2017.97 ▲2.96197.63 ▲36.44113.46 ▼13.58
Tags /wp-admin/edit-tags.php?taxonomy=wpt-tag&post_type=wpt-achievement2,0707.14140.2484.07
Timelines /wp-admin/edit-tags.php?taxonomy=wpt-timeline&post_type=wpt-achievement2,1527.31156.11101.62
WP Timeliner /wp-admin/options-general.php?page=wp-timeliner-options1,5127.54172.12111.95
All Achievements /wp-admin/edit.php?post_type=wpt-achievement1,7747.13145.0682.89
New Achievement /wp-admin/post-new.php?post_type=wpt-achievement10,90625.27757.06324.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/wp-timeliner/classes/themes/minimalist/templates/timeline.php
  • 211× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/htmlburger/carbon-fields/core/Field/Footer_Scripts_Field.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/Installer.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/HuradInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-timeliner/libraries/carbon-fields-plugins/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: event, history, achievement, success, timeline

wp-timeliner/wp-timeliner.php Passed 13 tests

"WP Timeliner" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Create highly-customizable timelines in WordPress and display achievements in a chronological way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected85,479 lines of code in 507 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14815,85727,33165,293
PHP2823,0627,61811,689
JSON16003,549
PO File161,4632,0923,368
Markdown81790736
CSS34303165708
Sass1181112
XML161323
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.49
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces43
Interfaces6
Traits2
Classes241
▷ Abstract classes197.88%
▷ Concrete classes22292.12%
▷ Final classes10.45%
Methods1,101
▷ Static methods11710.63%
▷ Public methods87279.20%
▷ Protected methods20718.80%
▷ Private methods222.00%
Functions123
▷ Named functions3528.46%
▷ Anonymous functions8871.54%
Constants51
▷ Global constants1835.29%
▷ Class constants3364.71%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
classes/themes/minimalist/assets/theme-icon.png6.85KB3.10KB▼ 54.79%
classes/themes/snake/assets/theme-icon.png6.66KB3.09KB▼ 53.62%