83% timeline-simple-elementor

Code Review | timeline-simple-Elementor

WordPress plugin timeline-simple-Elementor scored83%from 54 tests.

About plugin

  • Plugin page: timeline-simple-e...
  • Plugin version: 1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Jan 24, 2023
  • Number of updates: 13
  • Update frequency: every 8.6 days
  • Top authors: motekef (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.70ms] Passed 4 tests

Server-side resources used by timeline-simple-Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.61 ▲3.62
Dashboard /wp-admin3.34 ▲0.0347.95 ▼0.45
Posts /wp-admin/edit.php3.39 ▲0.0348.26 ▼6.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.82 ▼15.23
Media Library /wp-admin/upload.php3.26 ▲0.0337.39 ▲6.24

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for timeline-simple-Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.69 ▼0.681.79 ▼0.1143.61 ▲4.89
Dashboard /wp-admin2,224 ▲334.92 ▼0.14108.55 ▲5.0140.11 ▼5.64
Posts /wp-admin/edit.php2,106 ▲142.01 ▲0.0136.97 ▼5.1035.49 ▼1.99
Add New Post /wp-admin/post-new.php1,547 ▲1323.04 ▼0.05694.69 ▲90.7655.42 ▲2.65
Media Library /wp-admin/upload.php1,409 ▲214.24 ▼0.12103.26 ▼0.6444.36 ▲0.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef8.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef4.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef5.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef2.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef6.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef7.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/timeline-simple-elementor/widgets/timelinemotekef3.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

timeline-simple-elementor/timeline-simple-Elementor.php 85% from 13 tests

The primary PHP file in "timeline-simple-Elementor" version 1.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("timeline-simple-elementor.php" instead of "timeline-simple-Elementor.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,728 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP92052851,751
CSS112412977

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.78
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods60
▷ Static methods11.67%
▷ Public methods4473.33%
▷ Protected methods1626.67%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.54MB with 0.38MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screen1.png83.43KB24.34KB▼ 70.83%
assets/screen4.png112.10KB34.57KB▼ 69.16%
assets/screen2.png177.08KB52.72KB▼ 70.23%
assets/screen3.png177.26KB51.84KB▼ 70.76%