83% tipu-scroll-to-top

Code Review | Tipu Scroll To Top

WordPress plugin Tipu Scroll To Top scored83%from 54 tests.

About plugin

  • Plugin page: tipu-scroll-to-top
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Mar 1, 2020
  • Number of updates: 45
  • Update frequency: every 36.1 days
  • Top authors: abulogics (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /7,427 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Tipu Scroll To Top
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0443.63 ▲2.58
Dashboard /wp-admin3.33 ▲0.0363.94 ▲9.13
Posts /wp-admin/edit.php3.38 ▲0.0252.37 ▲1.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.55 ▼4.66
Media Library /wp-admin/upload.php3.25 ▲0.0232.54 ▼4.42
Scroll to Top /wp-admin/options-general.php?page=tipu_scroll_to_top3.2834.76

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Tipu Scroll To Top: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲20313.69 ▼0.745.86 ▲3.9943.64 ▼5.19
Dashboard /wp-admin2,232 ▲505.06 ▼0.84111.45 ▲5.4739.10 ▼2.44
Posts /wp-admin/edit.php2,123 ▲312.32 ▲0.3340.09 ▲5.4034.31 ▼0.38
Add New Post /wp-admin/post-new.php1,537 ▲1723.30 ▲0.14643.82 ▼42.4934.81 ▼26.77
Media Library /wp-admin/upload.php1,417 ▲294.41 ▲0.19108.86 ▲1.5349.81 ▲2.78
Scroll to Top /wp-admin/options-general.php?page=tipu_scroll_to_top1,4672.8168.2534.71

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tipu-scroll-to-top/settings-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tipu-scroll-to-top/index.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Invalid plugin version format
  • Screenshots: Add images for these screenshots: #1 (The Settings Page.), #2 (Demo Page.)
You can look at the official readme.txt

tipu-scroll-to-top/index.php 92% from 13 tests

The main PHP file in "Tipu Scroll To Top" ver. 5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tipu-scroll-to-top.php" instead of "index.php")

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
No dangerous file extensions were detected359 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP37360241
PO File2344099
JavaScript22118
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.01
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin