94% smoothscroller

Code Review | Smoothscroller

WordPress plugin Smoothscroller scored 94% from 54 tests.

About plugin

  • Plugin page: smoothscroller
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.8.1
  • First release: Sep 21, 2015
  • Latest release: Oct 24, 2020
  • Number of updates: 16
  • Update frequency: every 116.3 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 5,553 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼146.19ms] Passed 4 tests

A check of server-side resources used by Smoothscroller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.76 ▲0.0423.97 ▼8.09
Dashboard /wp-admin3.11 ▲0.0645.24 ▲0.33
Posts /wp-admin/edit.php3.16 ▲0.0647.11 ▼0.35
Add New Post /wp-admin/post-new.php5.47 ▲0.0496.38 ▼574.49
Media Library /wp-admin/upload.php3.06 ▲0.0533.57 ▼1.84
Smoothscroller /wp-admin/options-general.php?page=smoothscroller3.0231.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Smoothscroller
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.15 ▲0.238.97 ▼3.6348.75 ▼7.65
Dashboard /wp-admin2,997 ▲635.94 ▲0.00155.58 ▲7.14125.27 ▼12.29
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0073.34 ▲3.6294.04 ▲0.23
Add New Post /wp-admin/post-new.php1,686 ▲318.78 ▲0.04395.50 ▲2.53113.59 ▼1.41
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.03172.00 ▲22.75130.23 ▲6.51
Smoothscroller /wp-admin/options-general.php?page=smoothscroller1,1212.0964.1788.28

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/smoothscroller/inc/options-page-wrapper.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === smoothscroller === )
The official readme.txt might help

smoothscroller/smoothscroller.php Passed 13 tests

"Smoothscroller" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
Smooth Scroll to internal links in WordPress

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
There were no executable files found in this plugin192 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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 functions12100.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
No PNG files were detected