84% scroll-fast-to-top-button

Code Review | Scroll Fast To Top Button

WordPress plugin Scroll Fast To Top Button scored84%from 54 tests.

About plugin

  • Plugin page: scroll-fast-to-to...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2017
  • Latest release: Aug 26, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: mirajnetxp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.23ms] Passed 4 tests

An overview of server-side resources used by Scroll Fast To Top Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0249.07 ▲4.49
Dashboard /wp-admin3.32 ▲0.0147.97 ▲0.55
Posts /wp-admin/edit.php3.37 ▲0.0147.92 ▲3.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.28 ▼3.60
Media Library /wp-admin/upload.php3.24 ▲0.0135.69 ▲0.74

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Scroll Fast To Top Button: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20014.25 ▼0.439.89 ▲7.8048.02 ▼5.33
Dashboard /wp-admin2,217 ▲254.90 ▼0.02107.23 ▲1.3338.75 ▲0.05
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0235.66 ▲0.2031.52 ▼0.63
Add New Post /wp-admin/post-new.php1,522 ▼617.79 ▼0.78685.14 ▲88.8261.52 ▲10.61
Media Library /wp-admin/upload.php1,393 ▲24.18 ▼0.0597.11 ▼0.0644.10 ▲0.27

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/scroll-fast-to-top-button/scroll-fast-to-top-button.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: You can look at the official readme.txt

scroll-fast-to-top-button/scroll-fast-to-top-button.php Passed 13 tests

The main file in "Scroll Fast To Top Button" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
140 characters long description:
Scroll Fast To Top Button the simplest and lightweight Scroll Back To Top Button. Which display Scroll To Back Top Button on your web site.

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
Everything looks great! No dangerous files found in this plugin525 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15184272
CSS3211167
PHP1484186

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin