74% scroll-to-ck

Code Review | Scroll To CK

WordPress plugin Scroll To CK scored 74% from 54 tests.

About plugin

  • Plugin page: scroll-to-ck
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.0
  • WordPress version: 5.8.1
  • First release: Dec 12, 2016
  • Latest release: Dec 17, 2018
  • Number of updates: 14
  • Update frequency: every 52.1 days
  • Top authors: ced1870 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,857 total downloads


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.08MB] [CPU: ▼137.91ms] Passed 4 tests

Server-side resources used by Scroll To CK
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2439.54 ▲18.14
Dashboard /wp-admin3.15 ▲0.0950.10 ▲14.43
Posts /wp-admin/edit.php3.20 ▲0.0948.82 ▲4.75
Add New Post /wp-admin/post-new.php5.51 ▲0.0793.60 ▼566.52
Media Library /wp-admin/upload.php3.09 ▲0.0934.20 ▼4.28
Scroll To CK /wp-admin/options-general.php?page=scroll-to-ck3.1233.10

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Scroll To CK
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲22916.28 ▲0.8114.80 ▲5.6452.01 ▲0.24
Dashboard /wp-admin2,978 ▲475.89 ▼0.15141.19 ▼4.18108.94 ▼21.33
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0172.65 ▲2.5695.36 ▼1.87
Add New Post /wp-admin/post-new.php1,601 ▲2018.78 ▲0.13384.86 ▼47.94116.67 ▼8.51
Media Library /wp-admin/upload.php1,812 ▲54.99 ▼0.05158.35 ▼17.20126.25 ▼13.57
Scroll To CK /wp-admin/options-general.php?page=scroll-to-ck1,4783.6277.77119.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 1 option in the database
    • scrolltock_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=scroll-to-ck
    • > Network (severe)
    wp-content/plugins/scroll-to-ck/assets/jscolor/jscolor.css - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration Passed 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
3 plugin tags: onepage, go to top, scroll

scroll-to-ck/scroll-to-ck.php Passed 13 tests

The main file in "Scroll To CK" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
Scroll To CK allows you to scroll your page with you links and add a go to top button on scroll.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Almost there! Just fix the following issues
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/scroll-to-ck/assets/jscolor/Demos of JSColor.URL
2,550 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File16712157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.25
▷ Minimum class complexity10.00
▷ Maximum class complexity28.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods411.76%
▷ Public methods2779.41%
▷ Protected methods00.00%
▷ Private methods720.59%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants14100.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
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo_scrolltock_64.png4.04KB2.94KB▼ 27.34%