78% epoch-timelines

Code Review | Epoch Timelines

WordPress plugin Epoch Timelines scored78%from 54 tests.

About plugin

  • Plugin page: epoch-timelines
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Oct 4, 2015
  • Number of updates: 16
  • Update frequency: every 14.4 days
  • Top authors: CrazyJaco (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,706 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.49ms] Passed 4 tests

This is a short check of server-side resources used by Epoch Timelines
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.74 ▼1.64
Dashboard /wp-admin3.42 ▲0.1251.03 ▼0.34
Posts /wp-admin/edit.php3.54 ▲0.1852.47 ▲4.38
Add New Post /wp-admin/post-new.php6.03 ▲0.1486.61 ▼30.34
Media Library /wp-admin/upload.php3.35 ▲0.1136.75 ▼1.65
Add Timeline /wp-admin/post-new.php?post_type=et_timelines3.3944.24
Add Timeline Event /wp-admin/post-new.php?post_type=et_events3.4754.35
All Timeline Events /wp-admin/edit.php?post_type=et_events3.3941.68
All Timelines /wp-admin/edit.php?post_type=et_timelines3.3938.87

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_widget-timeline-timelines
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Epoch Timelines
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲14613.82 ▼0.537.85 ▲6.0740.56 ▼3.17
Dashboard /wp-admin2,252 ▲755.63 ▼0.0388.98 ▲0.3442.42 ▲0.25
Posts /wp-admin/edit.php2,154 ▲542.00 ▼0.0340.46 ▲3.6636.69 ▲4.22
Add New Post /wp-admin/post-new.php1,620 ▲9224.11 ▲0.95652.42 ▼10.4234.23 ▼25.99
Media Library /wp-admin/upload.php1,457 ▲574.20 ▲0.0497.25 ▼9.6544.15 ▼4.66
Add Timeline /wp-admin/post-new.php?post_type=et_timelines1,5462.5758.2751.48
Add Timeline Event /wp-admin/post-new.php?post_type=et_events2,2997.87173.6462.99
All Timeline Events /wp-admin/edit.php?post_type=et_events1,1271.9731.2932.40
All Timelines /wp-admin/edit.php?post_type=et_timelines1,1241.9329.3131.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_widget-timeline-timelines
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=et_events
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% 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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoch-timelines/inc/class-timeline-events.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epoch-timelines/inc/class-widget-timeline-timelines.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/epoch-timelines/inc/class-timeline-timelines.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Class_Timeline_Timelines' not found in wp-content/plugins/epoch-timelines/interface/timeline-modal.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === epoch-timelines === )
The official readme.txt might help

epoch-timelines/epoch-timelines.php Passed 13 tests

The primary PHP file in "Epoch Timelines" version 1.1.0 is used by WordPress to initiate all plugin functionality
50 characters long description:
Create timelines of events and epochs in WordPress

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 plugin869 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP58077415
CSS34993382
JavaScript2101953
Markdown14019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.67
▷ Minimum class complexity4.00
▷ Maximum class complexity32.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/smoothness/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/smoothness/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%