84% advanced-sticky-header

Code Review | Advanced Sticky Header

WordPress plugin Advanced Sticky Header scored84%from 54 tests.

About plugin

  • Plugin page: advanced-sticky-h...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Jan 27, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: danish-iqbal (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,890 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Advanced Sticky Header
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0447.54 ▲3.29
Dashboard /wp-admin3.33 ▲0.0355.99 ▼4.91
Posts /wp-admin/edit.php3.38 ▲0.0353.03 ▼2.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.34 ▼45.56
Media Library /wp-admin/upload.php3.25 ▲0.0343.55 ▲2.72

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/advanced-sticky-header/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
ash_wp_header_animation_type
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
ash_wp_header_full_width
ash_wp_header_animate
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Sticky Header
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.58 ▼1.046.94 ▲5.1244.02 ▲3.95
Dashboard /wp-admin2,242 ▲424.85 ▼1.01106.46 ▼5.0946.87 ▲3.58
Posts /wp-admin/edit.php2,118 ▲152.06 ▲0.0035.61 ▲0.1932.84 ▼3.86
Add New Post /wp-admin/post-new.php1,555 ▲1023.14 ▲0.03671.46 ▼22.8855.74 ▲3.87
Media Library /wp-admin/upload.php1,415 ▲184.25 ▲0.11107.45 ▼14.0044.55 ▼6.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/advanced-sticky-header/advanced-sticky-header.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === advanced-sticky-header === )
The official readme.txt is a good inspiration

advanced-sticky-header/advanced-sticky-header.php Passed 13 tests

The principal PHP file in "Advanced Sticky Header" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Highly configurable sticky header plugin

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
No dangerous file extensions were detected322 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22610156
PHP25015133
CSS14033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin