84% scrollup-master

Code Review | Scroll Back To Top Button

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

About plugin

  • Plugin page: scrollup-master
  • Plugin version: 2.9.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 8, 2014
  • Latest release: Aug 8, 2023
  • Number of updates: 61
  • Update frequency: every 56.4 days
  • Top authors: sayful (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

4,000+ active /27,063 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Scroll Back To Top Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.69 ▼2.77
Dashboard /wp-admin3.34 ▼0.0050.04 ▼18.58
Posts /wp-admin/edit.php3.39 ▲0.0451.32 ▼5.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.35 ▼24.66
Media Library /wp-admin/upload.php3.27 ▲0.0437.69 ▲2.64
Scroll to Top /wp-admin/options-general.php?page=scrollup-master3.2535.76

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/scrollup-master/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scroll Back To Top Button
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.82 ▼0.581.75 ▲0.0839.88 ▼2.08
Dashboard /wp-admin2,245 ▲425.08 ▼0.82113.61 ▲6.0743.65 ▲2.49
Posts /wp-admin/edit.php2,129 ▲292.27 ▲0.2142.54 ▲1.6937.70 ▼0.81
Add New Post /wp-admin/post-new.php1,541 ▲1217.84 ▲0.20621.95 ▼17.1632.86 ▼25.35
Media Library /wp-admin/upload.php1,424 ▲244.41 ▲0.0496.98 ▼9.9542.24 ▼0.27
Scroll to Top /wp-admin/options-general.php?page=scrollup-master1,5032.6062.0728.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrollup-master/scrollup-master.php:258
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/scrollup-master/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: scroll back to top, scroll to top, back to top, scroll up, scrollup...

scrollup-master/scrollup-master.php Passed 13 tests

The primary PHP file in "Scroll Back To Top Button" version 2.9.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
A simple WordPress plugin to create scroll back to top button.

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
No dangerous file extensions were detected337 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43563299
JavaScript211238

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin