10% jnext-timeline-blocks

Code Review | GUTENBERG TIMELINE BLOCK

WordPress plugin GUTENBERG TIMELINE BLOCK scored10%from 54 tests.

About plugin

  • Plugin page: jnext-timeline-bl...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5+
  • WordPress version: 6.3.1
  • First release: Oct 1, 2021
  • Latest release: Oct 13, 2023
  • Number of updates: 29
  • Update frequency: every 25.6 days
  • Top authors: jnext (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,023 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/jnext-timeline-blocks/jnext-timeline-blocks.php+26
    require_once(wp-content/plugins/jnext-timeline-blocks/class-block-assets.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.04ms] Passed 4 tests

Analyzing server-side resources used by GUTENBERG TIMELINE BLOCK
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.21 ▼8.88
Dashboard /wp-admin3.31 ▼0.0445.22 ▼18.58
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▼1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.26 ▼11.09
Media Library /wp-admin/upload.php3.23 ▲0.0033.34 ▼0.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for GUTENBERG TIMELINE BLOCK
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.37 ▲0.031.60 ▼0.3437.89 ▼7.76
Dashboard /wp-admin2,195 ▲185.61 ▼0.0591.89 ▼6.1137.98 ▼5.64
Posts /wp-admin/edit.php2,100 ▼01.94 ▲0.0140.52 ▼2.2435.56 ▼2.11
Add New Post /wp-admin/post-new.php1,529 ▼623.14 ▼0.05576.56 ▼38.3353.95 ▲4.09
Media Library /wp-admin/upload.php1,394 ▼94.22 ▼0.0393.89 ▼4.8841.80 ▼2.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× 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/jnext-timeline-blocks/src/block/jnext-post-timeline/block.php:782
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jnext-timeline-blocks/src/fonts/GoogleFonts.php:29

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in jnext-timeline-blocks/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

jnext-timeline-blocks/plugin.php 92% from 13 tests

The main file in "GUTENBERG TIMELINE BLOCK" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jnext-timeline-blocks.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected36,188 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JSON20024,990
JavaScript287663587,131
PHP65473392,651
Sass81611,071
CSS6438332
SVG11013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods21
▷ Static methods1676.19%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
No PNG images were found in this plugin