84% jquery-scrollup

Code Review | Scroll Up

WordPress plugin Scroll Up scored84%from 54 tests.

About plugin

  • Plugin page: jquery-scrollup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: Aug 13, 2012
  • Latest release: Aug 13, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: philipste (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,983 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.70ms] Passed 4 tests

This is a short check of server-side resources used by Scroll Up
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.81 ▲1.36
Dashboard /wp-admin3.31 ▲0.0046.40 ▼6.60
Posts /wp-admin/edit.php3.36 ▲0.0044.76 ▼1.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.18 ▼21.85
Media Library /wp-admin/upload.php3.23 ▲0.0033.65 ▼0.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scroll Up
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲14213.45 ▼0.819.73 ▲7.9845.89 ▲8.55
Dashboard /wp-admin2,197 ▲175.57 ▼0.1079.80 ▼10.7537.80 ▼6.31
Posts /wp-admin/edit.php2,102 ▲21.99 ▼0.0332.67 ▼4.3633.16 ▲0.86
Add New Post /wp-admin/post-new.php1,528 ▼022.82 ▼0.19667.51 ▼12.9555.56 ▼0.72
Media Library /wp-admin/upload.php1,402 ▲24.21 ▲0.0592.81 ▼16.2244.20 ▼1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jquery-scrollup/scroll-up.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: jquery, scroll

jquery-scrollup/scroll-up.php 85% from 13 tests

The main PHP file in "Scroll Up" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jquery-scrollup.php" instead of "scroll-up.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin67 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown228047
PHP1183819
JavaScript1051

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
jquery-scroll-up/arrow_up.png1.12KB0.30KB▼ 73.61%