94% advanced-sticky-header

Code Review | Advanced Sticky Header

WordPress plugin Advanced Sticky Header scored 94% 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: 5.8.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

60+ active / 2,659 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.59ms] Passed 4 tests

A check of server-side resources used by Advanced Sticky Header
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0226.45 ▲2.69
Dashboard /wp-admin3.09 ▲0.0238.06 ▲2.55
Posts /wp-admin/edit.php3.14 ▲0.0331.54 ▲1.14
Add New Post /wp-admin/post-new.php5.45 ▲0.0170.18 ▼566.51
Media Library /wp-admin/upload.php3.03 ▲0.0323.92 ▲0.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Sticky Header
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,853 ▲25216.07 ▲0.138.53 ▲3.4477.75 ▲5.32
Dashboard /wp-admin2,952 ▲566.04 ▼0.11117.65 ▼8.91165.91 ▼5.98
Posts /wp-admin/edit.php2,763 ▲233.24 ▲0.0162.02 ▼3.64138.82 ▼12.26
Add New Post /wp-admin/post-new.php3,828 ▲8519.44 ▲0.45449.10 ▲27.03159.34 ▼7.36
Media Library /wp-admin/upload.php1,771 ▲225.49 ▼0.01146.24 ▼8.07184.25 ▼3.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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 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
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === advanced-sticky-header === )
You can look at the official readme.txt

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

"Advanced Sticky Header" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Highly configurable sticky header plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin322 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin