90% tap-to-top

Code Review | Tap To Top - Scroll Up Button for Back To Top

WordPress plugin Tap To Top - Scroll Up Button for Back To Top scored90%from 54 tests.

About plugin

  • Plugin page: tap-to-top
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 42
  • Update frequency: every 7.1 days
  • Top authors: mehrazmorshed (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /656 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Tap To Top - Scroll Up Button for Back To Top
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.34 ▼7.45
Dashboard /wp-admin3.34 ▲0.0352.40 ▲0.62
Posts /wp-admin/edit.php3.39 ▲0.0353.60 ▲5.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.71 ▼11.39
Media Library /wp-admin/upload.php3.26 ▲0.0336.72 ▲4.20

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Tap To Top - Scroll Up Button for Back To Top
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲17913.78 ▼0.5710.48 ▲8.7737.71 ▼8.78
Dashboard /wp-admin2,213 ▲425.62 ▲0.0994.46 ▼11.1043.10 ▼9.91
Posts /wp-admin/edit.php2,118 ▲182.02 ▼0.0541.01 ▲1.4336.78 ▼0.41
Add New Post /wp-admin/post-new.php1,545 ▲1923.19 ▼0.05688.86 ▲30.0551.31 ▲2.98
Media Library /wp-admin/upload.php1,418 ▲214.18 ▼0.0197.91 ▼1.6440.19 ▼2.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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


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
5 plugin tags: tap to top, back to top, scroll top, scroll up, scroll to top

tap-to-top/tap-to-top.php Passed 13 tests

The primary PHP file in "Tap To Top - Scroll Up Button for Back To Top" version 1.5.1 is used by WordPress to initiate all plugin functionality
45 characters long description:
Tap the button and scroll to top immediately.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin286 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/top.png1.11KB0.19KB▼ 82.70%
img/author.png110.64KB37.40KB▼ 66.20%