83% advanced-timeline-block

Code Review | Advanced Timeline Gutenberg Block

WordPress plugin Advanced Timeline Gutenberg Block scored83%from 54 tests.

About plugin

  • Plugin page: advanced-timeline...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2021
  • Latest release: Nov 11, 2023
  • Number of updates: 10
  • Update frequency: every 71.6 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,881 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.11MB] [CPU: ▼2.77ms] Passed 4 tests

An overview of server-side resources used by Advanced Timeline Gutenberg Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.57 ▼2.45
Dashboard /wp-admin3.42 ▲0.1149.68 ▼1.58
Posts /wp-admin/edit.php3.47 ▲0.1144.20 ▼2.82
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.05 ▼4.21
Media Library /wp-admin/upload.php3.34 ▲0.1133.81 ▲1.51
Timeline Block /wp-admin/options-general.php?page=atlb-block3.3128.89

Server storage [IO: ▲3.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Timeline Gutenberg Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲1214.22 ▼0.131.81 ▼0.1744.60 ▲0.14
Dashboard /wp-admin2,196 ▲195.58 ▼0.0885.28 ▼15.7838.27 ▼4.64
Posts /wp-admin/edit.php2,107 ▲72.14 ▲0.1440.30 ▲4.9034.63 ▼0.41
Add New Post /wp-admin/post-new.php6,373 ▲4,84727.97 ▲4.76836.61 ▲234.0263.44 ▲14.21
Media Library /wp-admin/upload.php1,395 ▼24.24 ▲0.0295.82 ▼4.3742.77 ▲0.19
Timeline Block /wp-admin/options-general.php?page=atlb-block1,4388.98285.8957.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-timeline-block/admin/class-admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

advanced-timeline-block/plugin.php 69% from 13 tests

"Advanced Timeline Gutenberg Block" version 2.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-timeline-block.php" instead of "plugin.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "5.7")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "7.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

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
There were no executable files found in this plugin10,696 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP56195421
JSON100370
CSS55510291
JavaScript26562

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin