83% ac-scroll-up

Code Review | Ac-Scroll-Up

WordPress plugin Ac-Scroll-Up scored 83% from 54 tests.

About plugin

  • Plugin page: ac-scroll-up
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Mar 11, 2015
  • Number of updates: 4
  • Update frequency: every 2.5 days
  • Top authors: Asif Ahmmad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 766 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.04ms] Passed 4 tests

Analyzing server-side resources used by Ac-Scroll-Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.46 ▲2.63
Dashboard /wp-admin3.33 ▲0.0245.59 ▼5.02
Posts /wp-admin/edit.php3.38 ▲0.0246.32 ▼3.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.59 ▼12.16
Media Library /wp-admin/upload.php3.25 ▲0.0235.95 ▲0.16
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php3.2230.73

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ac-Scroll-Up
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18613.83 ▼0.817.93 ▲6.0242.20 ▼3.24
Dashboard /wp-admin2,229 ▲415.00 ▲0.1198.20 ▼11.5638.85 ▼7.83
Posts /wp-admin/edit.php2,117 ▲282.29 ▲0.2841.77 ▲4.0434.13 ▲0.83
Add New Post /wp-admin/post-new.php1,531 ▼1317.79 ▼0.57678.17 ▲48.7736.38 ▼20.05
Media Library /wp-admin/upload.php1,411 ▲324.41 ▲0.1396.62 ▼0.8942.15 ▼1.44
Ac-Scroll-Up /wp-admin/options-general.php?page=ac-scroll-up/scroll-settings.php1,0422.4043.9724.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ac-scroll-up/scroll-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ac-scroll-up/scroll-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Screenshots: These screenshots do not have images: #1 (Scroll up arrow on bottom right.), #2 (Go to setting page.), #3 (Set up your icon color and icon background.)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ac-scroll-up === )
You can take inspiration from this readme.txt

ac-scroll-up/main.php 92% from 13 tests

The main PHP script in "Ac-Scroll-Up" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ac-scroll-up.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected627 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG100520
PHP2352084
CSS20317
JavaScript2276

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png11.13KB6.19KB▼ 44.36%
Screenshot-2.png4.39KB3.04KB▼ 30.79%
Screenshot-3.png7.00KB3.75KB▼ 46.39%