90% iprog-scroll-to-top

Code Review | iprog scroll to top

WordPress plugin iprog scroll to top scored90%from 54 tests.

About plugin

  • Plugin page: iprog-scroll-to-top
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 17, 2016
  • Latest release: Nov 24, 2016
  • Number of updates: 39
  • Update frequency: every 0.4 days
  • Top authors: iprog21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by iprog scroll to top
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.95 ▼1.05
Dashboard /wp-admin3.37 ▲0.0357.48 ▼4.60
Posts /wp-admin/edit.php3.48 ▲0.1358.19 ▲1.23
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.94 ▼8.59
Media Library /wp-admin/upload.php3.29 ▲0.0639.10 ▼3.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
istt_data
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for iprog scroll to top
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲7113.58 ▼0.742.77 ▲0.5842.61 ▼1.76
Dashboard /wp-admin2,217 ▲265.86 ▲0.75116.66 ▲8.7485.95 ▲43.03
Posts /wp-admin/edit.php2,103 ▲141.98 ▼0.0534.30 ▼5.7834.39 ▼6.35
Add New Post /wp-admin/post-new.php1,678 ▲16422.38 ▲4.72709.99 ▲11.0253.72 ▼2.17
Media Library /wp-admin/upload.php1,399 ▲84.23 ▼0.00119.25 ▲10.3348.89 ▲1.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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: smooth scrolling, move up, to top, moving button, scroll up...

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

This is the main PHP file of "iprog scroll to top" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected510 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1217732397
CSS143597
JavaScript14016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity3.91
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods69
▷ Static methods69100.00%
▷ Public methods69100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugin/assets/images/menu_icon.png0.81KB1.02KB0.00%
plugin/assets/images/plugin_banner.png14.02KB6.25KB▼ 55.39%