84% fix-jumping-header-divi

Code Review | Fixed Header Jumping Issue Divi Theme

WordPress plugin Fixed Header Jumping Issue Divi Theme scored84%from 54 tests.

About plugin

  • Plugin page: fix-jumping-heade...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 14
  • Update frequency: every 29.5 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Fixed Header Jumping Issue Divi Theme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.47 ▼7.92
Dashboard /wp-admin3.31 ▲0.0048.81 ▼2.09
Posts /wp-admin/edit.php3.36 ▲0.0046.52 ▼5.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.13 ▼15.05
Media Library /wp-admin/upload.php3.23 ▲0.0037.38 ▲3.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fixed Header Jumping Issue Divi Theme
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.141.66 ▼0.4841.52 ▼6.68
Dashboard /wp-admin2,195 ▲215.62 ▼0.0587.70 ▼6.4742.90 ▼3.05
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0236.51 ▼4.3636.61 ▼1.50
Add New Post /wp-admin/post-new.php1,526 ▼523.64 ▲0.75675.25 ▼11.2852.12 ▼2.38
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0695.77 ▼11.3545.48 ▼6.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/fix-jumping-header-divi/lib/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

fix-jumping-header-divi/fix-jumping-header-divi.php Passed 13 tests

Analyzing the main PHP file in "Fixed Header Jumping Issue Divi Theme" version 1.1
76 characters long description:
Install & enable plugin and say good bye to Divi theme header jumping issue.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected180 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32568168
JavaScript10111
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin