84% easy-timeline

Code Review | Easy Timeline

WordPress plugin Easy Timeline scored 84% from 54 tests.

About plugin

  • Plugin page: easy-timeline
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.8.1
  • First release: May 20, 2020
  • Latest release: Jun 24, 2020
  • Number of updates: 5
  • Update frequency: every 7.0 days
  • Top authors: fredcoutinho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 194 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: ▼146.60ms] Passed 4 tests

Server-side resources used by Easy Timeline
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.25 ▼0.80
Dashboard /wp-admin3.11 ▲0.0544.51 ▲1.89
Posts /wp-admin/edit.php3.16 ▲0.0545.53 ▲1.49
Add New Post /wp-admin/post-new.php5.47 ▲0.0391.08 ▼579.47
Media Library /wp-admin/upload.php3.05 ▲0.0428.30 ▼7.62
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=item3.0439.90
Timeline /wp-admin/edit.php?post_type=item3.1037.71
Add New /wp-admin/post-new.php?post_type=item3.1442.96

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Timeline
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,733 ▲13715.86 ▲0.338.36 ▼4.3051.55 ▼1.79
Dashboard /wp-admin3,012 ▲785.98 ▼0.06136.27 ▼19.93110.34 ▼8.92
Posts /wp-admin/edit.php2,781 ▲422.73 ▲0.0160.05 ▼0.6291.23 ▼1.98
Add New Post /wp-admin/post-new.php1,700 ▲9618.84 ▼0.04367.18 ▼19.00109.05 ▼4.29
Media Library /wp-admin/upload.php1,849 ▲395.03 ▲0.01140.67 ▼36.72121.12 ▼5.00
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=item1,9522.3958.6386.42
Timeline /wp-admin/edit.php?post_type=item1,4832.7660.8877.55
Add New /wp-admin/post-new.php?post_type=item2,7697.76183.38152.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-timeline/includes/easy-timeline-scripts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-timeline/includes/easy-timeline-cpt.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-timeline/includes/easy-timeline-shortcodes.php:102
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-timeline/includes/easy-timeline-fields.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Responsive timeline section) image required
You can take inspiration from this readme.txt

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

The main PHP script in "Easy Timeline" version 1.0 is automatically included on every request by WordPress
30 characters long description:
Add a timeline to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin354 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55129198
CSS2261156

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin