83% simple-scroll-to-top-rubsum

Code Review | Simple Scroll To Top

WordPress plugin Simple Scroll To Top scored83%from 54 tests.

About plugin

  • Plugin page: simple-scroll-to-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Aug 29, 2018
  • Latest release: Oct 24, 2019
  • Number of updates: 13
  • Update frequency: every 32.4 days
  • Top authors: rubelbdp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /502 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.29ms] Passed 4 tests

An overview of server-side resources used by Simple Scroll To Top
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.86 ▲1.26
Dashboard /wp-admin3.32 ▲0.0144.52 ▼4.30
Posts /wp-admin/edit.php3.37 ▲0.0148.94 ▲1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.15 ▼24.46
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▼1.66

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Simple Scroll To Top
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.59 ▼0.806.14 ▲4.3842.37 ▲3.29
Dashboard /wp-admin2,203 ▲145.04 ▲0.06110.28 ▼13.6542.41 ▼0.62
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0639.45 ▼2.7534.41 ▼3.42
Add New Post /wp-admin/post-new.php1,528 ▼1423.02 ▲4.67648.14 ▲37.6454.84 ▲7.07
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0198.73 ▼2.4442.03 ▼1.24

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-scroll-to-top-rubsum/init.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === simple-scroll-to-top-rubsum === )
Please take inspiration from this readme.txt

simple-scroll-to-top-rubsum/init.php 92% from 13 tests

The primary PHP file in "Simple Scroll To Top" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-scroll-to-top-rubsum.php" instead of "init.php")

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 plugin3,981 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG30123,927
PHP119821
CSS22417
JavaScript19016

PHP code Passed 2 tests

This is a short overview 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.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin