93% jeba-horizontal-timeline

Code Review | Jeba Horizontal Timeline

WordPress plugin Jeba Horizontal Timeline scored 93% from 54 tests.

About plugin

  • Plugin page: jeba-horizontal-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.8
  • WordPress version: 5.8.1
  • First release: Dec 4, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 2,527 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼145.72ms] Passed 4 tests

This is a short check of server-side resources used by Jeba Horizontal Timeline
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0138.10 ▲4.41
Dashboard /wp-admin3.06 ▲0.0142.92 ▼14.46
Posts /wp-admin/edit.php3.11 ▼0.0038.22 ▼11.32
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.57 ▼557.43
Media Library /wp-admin/upload.php3.00 ▲0.0030.76 ▲0.32

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba Horizontal Timeline
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲18916.45 ▲0.9813.17 ▲3.1173.32 ▲19.48
Dashboard /wp-admin2,975 ▲386.03 ▲0.14127.35 ▼37.8052.83 ▼76.33
Posts /wp-admin/edit.php2,741 ▲22.70 ▲0.0161.69 ▼5.8052.59 ▼38.92
Add New Post /wp-admin/post-new.php1,878 ▲28719.14 ▲0.60371.02 ▲8.8484.28 ▼19.87
Media Library /wp-admin/upload.php1,806 ▼45.02 ▲0.01145.81 ▲0.3498.78 ▼13.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-horizontal-timeline/jeba-index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (How to use shortcode in editor.), #2 (Another demo.)
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

jeba-horizontal-timeline/jeba-index.php 85% from 13 tests

The main PHP file in "Jeba Horizontal Timeline" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 378 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jeba-horizontal-timeline.php" instead of "jeba-index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected706 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS11119378
JavaScript23423223
PHP1249104
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin