89% smoothscroll

Code Review | Smoothscroll

WordPress plugin Smoothscroll scored 89% from 54 tests.

About plugin

  • Plugin page: smoothscroll
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Nov 2, 2016
  • Number of updates: 15
  • Update frequency: every 4.6 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,603 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by Smoothscroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.46 ▼0.29
Dashboard /wp-admin3.37 ▲0.0646.50 ▼0.34
Posts /wp-admin/edit.php3.42 ▲0.0648.44 ▲0.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.59 ▼14.13
Media Library /wp-admin/upload.php3.29 ▲0.0637.99 ▲3.62
Smoothscroll /wp-admin/options-general.php?page=smoothscroll3.2632.30

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smoothscroll
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.53 ▼0.521.94 ▲0.1738.61 ▼6.90
Dashboard /wp-admin2,210 ▲224.84 ▼1.0799.07 ▼18.7739.99 ▲1.55
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0241.09 ▲4.8934.28 ▲0.96
Add New Post /wp-admin/post-new.php1,540 ▲723.01 ▼0.16592.34 ▼70.8869.05 ▼7.12
Media Library /wp-admin/upload.php1,386 ▲14.26 ▲0.0695.57 ▼8.8542.68 ▼2.58
Smoothscroll /wp-admin/options-general.php?page=smoothscroll8322.0324.2425.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
7 plugin tags: smoothscrolling, smooth scroll, frontend, smooth, backend...

smoothscroll/smoothscroll.php 85% from 13 tests

The main file in "Smoothscroll" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Domain Path: Prefix the domain path with a forward slash character ("/")

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
No dangerous file extensions were detected633 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript29811392
PHP22927241

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin