93% awesome-scroll-to-top

Code Review | Awesome Scroll To Top

WordPress plugin Awesome Scroll To Top scored 93% from 54 tests.

About plugin

  • Plugin page: awesome-scroll-to...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.7
  • WordPress version: 5.8.1
  • First release: Oct 30, 2015
  • Latest release: Jul 22, 2018
  • Number of updates: 5
  • Update frequency: every 199.2 days
  • Top authors: Mudit Kumawat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 922 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.98ms] Passed 4 tests

An overview of server-side resources used by Awesome Scroll To Top
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.32 ▲14.36
Dashboard /wp-admin3.07 ▲0.0141.92 ▼3.46
Posts /wp-admin/edit.php3.12 ▲0.0137.76 ▼7.94
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.65 ▼572.16
Media Library /wp-admin/upload.php3.01 ▲0.0032.08 ▼4.35

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Scroll To Top
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲19516.22 ▲0.2912.88 ▲3.4047.81 ▼2.12
Dashboard /wp-admin2,973 ▲395.90 ▼0.24135.26 ▼11.86110.22 ▲0.97
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0063.18 ▼2.9391.68 ▼0.07
Add New Post /wp-admin/post-new.php1,876 ▼1,81319.16 ▲4.09378.60 ▼55.24114.68 ▲4.39
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00148.15 ▼6.46112.58 ▼11.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/awesome-scroll-to-top/awesome-scroll-to-top.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
  • Screenshots: Screenshot #1 (After Install Awesome Scroll To Top Plugin Show scroll to top Button) image missing
The official readme.txt is a good inspiration

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

This is the main PHP file of "Awesome Scroll To Top" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin64 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS10136
JavaScript12115
PHP221113

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin