89% sticky-header-effects-for-elementor

Code Review | Sticky Header Effects for Elementor

WordPress plugin Sticky Header Effects for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: sticky-header-eff...
  • Plugin version: 1.6.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: May 26, 2018
  • Latest release: Nov 10, 2023
  • Number of updates: 108
  • Update frequency: every 18.5 days
  • Top authors: rwattner (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

200,000+ active /1,983,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Sticky Header Effects for Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.91 ▲2.05
Dashboard /wp-admin3.33 ▼0.0247.73 ▼15.08
Posts /wp-admin/edit.php3.38 ▲0.0248.68 ▲2.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.90 ▼0.76
Media Library /wp-admin/upload.php3.25 ▲0.0235.35 ▼1.05

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Sticky Header Effects for Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.37 ▲0.202.07 ▲0.4843.22 ▼0.07
Dashboard /wp-admin2,203 ▲295.60 ▲0.0985.11 ▼9.7840.27 ▼3.08
Posts /wp-admin/edit.php2,108 ▲82.10 ▲0.0842.29 ▲3.5436.40 ▲2.03
Add New Post /wp-admin/post-new.php1,536 ▲1023.35 ▼0.29672.43 ▼50.0953.99 ▼1.96
Media Library /wp-admin/upload.php1,405 ▲54.23 ▲0.07102.08 ▼1.5941.74 ▼2.18

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: elementor add-ons, elementor, briefcasewp, widgets, page builder...

sticky-header-effects-for-elementor/sticky-header-effects-for-elementor.php 85% from 13 tests

The primary PHP file in "Sticky Header Effects for Elementor" version 1.6.10 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin6,175 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,687
CSS411312,382
PHP6167121855
JavaScript15038251

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.60
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes240.00%
▷ Concrete classes360.00%
▷ Final classes133.33%
Methods36
▷ Static methods513.89%
▷ Public methods3288.89%
▷ Protected methods00.00%
▷ Private methods411.11%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin