89% quick-back-to-top-button

Code Review | Quick Back To Top Button

WordPress plugin Quick Back To Top Button scored89%from 54 tests.

About plugin

  • Plugin page: quick-back-to-top...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Apr 22, 2021
  • Number of updates: 2
  • Update frequency: every 197.0 days
  • Top authors: rajankarmakar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.26ms] Passed 4 tests

Server-side resources used by Quick Back To Top Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.10 ▼0.93
Dashboard /wp-admin3.35 ▲0.0447.52 ▲2.04
Posts /wp-admin/edit.php3.46 ▲0.1047.79 ▼0.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.72 ▼6.78
Media Library /wp-admin/upload.php3.27 ▲0.0435.54 ▼0.94

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quick Back To Top Button
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.57 ▼0.815.36 ▲3.6037.29 ▼11.16
Dashboard /wp-admin2,206 ▲155.88 ▲1.0196.88 ▼5.5940.23 ▼3.85
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0440.20 ▲5.4434.55 ▼3.84
Add New Post /wp-admin/post-new.php1,538 ▲223.09 ▼0.24658.35 ▼30.0654.40 ▼6.43
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.1495.17 ▼6.0141.70 ▼2.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === quick-back-to-top-button === )
  • Screenshots: Screenshot #1 (See how the button look) image not found
Please take inspiration from this readme.txt

quick-back-to-top-button/quick-back-to-top-button.php Passed 13 tests

The entry point to "Quick Back To Top Button" version 1.0.0 is a PHP file that has certain tags in its header comment area
81 characters long description:
This is a very simple back to top button plugin. Just one click and you are done.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected206 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1173295149
Markdown116026
JavaScript12019
CSS10012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1676.19%
▷ Protected methods00.00%
▷ Private methods523.81%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin