83% header-scroll-event-for-elementor

Code Review | Header scroll event for Elementor

WordPress plugin Header scroll event for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: header-scroll-eve...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 28, 2022
  • Latest release: Feb 3, 2023
  • Number of updates: 4
  • Update frequency: every 62.8 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 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 gracefully, with no errors

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

Server-side resources used by Header scroll event for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.30 ▼4.38
Dashboard /wp-admin3.31 ▲0.0146.68 ▼4.32
Posts /wp-admin/edit.php3.36 ▲0.0047.32 ▼3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.12 ▼8.83
Media Library /wp-admin/upload.php3.24 ▲0.0036.24 ▲0.59

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Header scroll event for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.311.84 ▼0.0743.76 ▲1.16
Dashboard /wp-admin2,206 ▲215.90 ▲1.04117.01 ▲3.6443.83 ▲0.55
Posts /wp-admin/edit.php2,086 ▼02.05 ▲0.0533.60 ▼3.2730.99 ▼2.35
Add New Post /wp-admin/post-new.php1,533 ▼023.08 ▲0.00577.70 ▼103.1251.25 ▼8.14
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0595.66 ▼6.1844.35 ▼1.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 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/header-scroll-event-for-elementor/miga_scroll_header.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/header-scroll-event-for-elementor/widgets/HeaderScrollEvent.php:3

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: swiper, elementor, elements, category, slider...

header-scroll-event-for-elementor/miga_scroll_header.php 77% from 13 tests

This is the main PHP file of "Header scroll event for Elementor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("header-scroll-event-for-elementor.php" instead of "miga_scroll_header.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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected110 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152097
JavaScript13013

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.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin