90% scroll-up-sticky-header-for-total

Code Review | Scroll Up Sticky Header for Total

WordPress plugin Scroll Up Sticky Header for Total scored90%from 54 tests.

About plugin

  • Plugin page: scroll-up-sticky-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 27, 2020
  • Latest release: Jun 24, 2022
  • Number of updates: 9
  • Update frequency: every 67.2 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,248 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.00MB] [CPU: ▼6.27ms] Passed 4 tests

Analyzing server-side resources used by Scroll Up Sticky Header for Total
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.79 ▲1.96
Dashboard /wp-admin3.31 ▼0.0343.71 ▼14.50
Posts /wp-admin/edit.php3.37 ▲0.0144.86 ▼2.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.52 ▼8.64
Media Library /wp-admin/upload.php3.24 ▲0.0132.09 ▲0.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Scroll Up Sticky Header for Total
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.33 ▼0.221.81 ▲0.0444.78 ▲2.59
Dashboard /wp-admin2,195 ▲215.56 ▼0.1281.91 ▼12.5837.64 ▼10.02
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0333.07 ▼8.2934.43 ▼4.54
Add New Post /wp-admin/post-new.php1,528 ▲223.08 ▼0.60591.68 ▼106.3151.66 ▼1.54
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0393.50 ▼7.2841.12 ▼4.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: sticky header, total theme, addon

scroll-up-sticky-header-for-total/scroll-up-sticky-header-for-total.php 92% from 13 tests

The main file in "Scroll Up Sticky Header for Total" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin118 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript216263
PHP2204552
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
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

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