84% scrolltop-fader

Code Review | Scroll Top Fader

WordPress plugin Scroll Top Fader scored84%from 54 tests.

About plugin

  • Plugin page: scrolltop-fader
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 30, 2017
  • Latest release: Oct 11, 2020
  • Number of updates: 24
  • Update frequency: every 56.1 days
  • Top authors: crucialinnovations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.24ms] Passed 4 tests

Server-side resources used by Scroll Top Fader
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.88 ▲3.91
Dashboard /wp-admin3.38 ▲0.0349.63 ▼13.84
Posts /wp-admin/edit.php3.43 ▲0.0748.26 ▼1.85
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.63 ▼21.35
Media Library /wp-admin/upload.php3.30 ▲0.0735.86 ▲0.07
ScrollTop Fader /wp-admin/options-general.php?page=scrolltop-fader3.3634.71

Server storage [IO: ▲0.64MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 157 new files
Database: no new tables, 32 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
dme_scroll_to_top_fader_background_color_in
dme_scroll_to_top_fader_is_color_one_mouse_over_transparent
dme_scroll_to_top_fader_image_right_position
dme_scroll_to_top_fader_box_shadow_blur_position
dme_scroll_to_top_fader_fadein
dme_scroll_to_top_fader_compress_js_files
dme_scroll_to_top_fader_box_shadow_horizontal_position
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Scroll Top Fader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17313.61 ▼0.9111.92 ▲9.9342.05 ▲0.59
Dashboard /wp-admin2,187 ▲135.51 ▼0.0984.27 ▼8.3079.38 ▲37.70
Posts /wp-admin/edit.php2,107 ▲101.98 ▲0.0039.17 ▲2.0834.40 ▼5.92
Add New Post /wp-admin/post-new.php1,556 ▲2823.13 ▲0.01728.03 ▲63.4252.26 ▲2.37
Media Library /wp-admin/upload.php1,410 ▲134.19 ▼0.0299.95 ▼4.3870.95 ▲27.02
ScrollTop Fader /wp-admin/options-general.php?page=scrolltop-fader2,3712.5643.7747.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrolltop-fader/include/settings.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scrolltop-fader/include/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scrolltop-fader/include/admin-help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scrolltop-fader/include/functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: back to top, jquery top, smooth scroll top, scroll top, scroll to top...

scrolltop-fader/scrolltop-fader.php 92% from 13 tests

The main file in "Scroll Top Fader" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 270 characters long)

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
Everything looks great! No dangerous files found in this plugin7,014 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript86834283,511
PHP591862,015
CSS644591,488

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions108
▷ Named functions108100.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
133 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/up-30-f-gray.png0.35KB0.44KB0.00%
images/up-45-c-black.png0.42KB0.58KB0.00%
images/up-40-a-gray.png0.48KB0.57KB0.00%
images/up-50-b-black.png0.67KB0.64KB▼ 3.96%
images/up-50-e-gray.png0.57KB0.66KB0.00%