84% gntt-scroll-up

Code Review | GNTT Scroll Up

WordPress plugin GNTT Scroll Up scored84%from 54 tests.

About plugin

  • Plugin page: gntt-scroll-up
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2016
  • Latest release: Mar 26, 2016
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: golzarrahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /519 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼2.52ms] Passed 4 tests

This is a short check of server-side resources used by GNTT Scroll Up
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.22 ▼3.05
Dashboard /wp-admin3.31 ▲0.0144.33 ▼5.88
Posts /wp-admin/edit.php3.36 ▲0.0147.48 ▼0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.99 ▲1.82
Media Library /wp-admin/upload.php3.23 ▲0.0134.17 ▼0.94

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

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

Browser metrics Passed 4 tests

GNTT Scroll Up: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.26 ▼1.382.99 ▲1.3344.21 ▲0.04
Dashboard /wp-admin2,205 ▲174.82 ▼0.01108.32 ▲2.7040.44 ▼2.97
Posts /wp-admin/edit.php2,094 ▲52.14 ▲0.1039.27 ▲1.2335.49 ▲3.29
Add New Post /wp-admin/post-new.php1,539 ▲618.62 ▼4.47607.58 ▼78.8054.93 ▼3.74
Media Library /wp-admin/upload.php1,390 ▲24.22 ▼0.0795.23 ▼9.9543.17 ▼4.87

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 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/gntt-scroll-up/gntt-scroll-up.php:18

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gntt, scroll to top, gntt scroll up, scroll top

gntt-scroll-up/gntt-scroll-up.php Passed 13 tests

Analyzing the main PHP file in "GNTT Scroll Up" version 1.0
69 characters long description:
This plugin will help you to scroll up to top in your WrodPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected204 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3476145
CSS31246
PHP121413

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/top.png0.68KB0.69KB0.00%