77% scroll-progress

Code Review | Scroll Progress

WordPress plugin Scroll Progress scored77%from 54 tests.

About plugin

  • Plugin page: scroll-progress
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Apr 5, 2016
  • Latest release: Aug 18, 2020
  • Number of updates: 17
  • Update frequency: every 93.9 days
  • Top authors: robi-bobi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /839 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Scroll Progress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.67 ▼6.15
Dashboard /wp-admin3.33 ▲0.0351.97 ▼3.47
Posts /wp-admin/edit.php3.39 ▲0.0350.94 ▼8.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.19 ▼16.22
Media Library /wp-admin/upload.php3.26 ▲0.0339.22 ▲3.02
Scroll Progress /wp-admin/options-general.php?page=scroll_progress3.2032.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Scroll Progress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.61 ▼0.041.75 ▼0.1943.26 ▼3.15
Dashboard /wp-admin2,202 ▲315.63 ▼0.0295.17 ▼4.2643.93 ▲0.49
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0536.25 ▼5.7935.05 ▼5.46
Add New Post /wp-admin/post-new.php1,529 ▲123.58 ▲0.30635.61 ▼49.7754.33 ▲7.19
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0096.52 ▼16.4243.19 ▼5.85
Scroll Progress /wp-admin/options-general.php?page=scroll_progress8331.9921.1928.60

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=scroll_progress
    • > Notice in wp-content/plugins/scroll-progress/scroll-progress-plugin.php+133
    Trying to access array offset on value of type bool

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-progress/scroll-progress-plugin.php:13

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === scroll-progress === )
  • Screenshots: These screenshots lack descriptions #2, #3, #4 in scroll-progress/assets to your readme.txt
The official readme.txt is a good inspiration

scroll-progress/scroll-progress-plugin.php 85% from 13 tests

The main PHP file in "Scroll Progress" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-progress.php" instead of "scroll-progress-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin308 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2170121
PHP13512121
JavaScript211166

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions11
▷ Named functions11100.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