90% scroll-top-aps

Code Review | APS SCROLL TOP

WordPress plugin APS SCROLL TOP scored90%from 54 tests.

About plugin

  • Plugin page: scroll-top-aps
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2021
  • Latest release: Oct 18, 2021
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: rishowrav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by APS SCROLL TOP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0140.12 ▼3.57
Dashboard /wp-admin3.35 ▼0.0351.29 ▼16.55
Posts /wp-admin/edit.php3.40 ▲0.0147.87 ▼2.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0195.95 ▼10.72
Media Library /wp-admin/upload.php3.28 ▲0.0134.53 ▲0.64

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for APS SCROLL TOP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16113.44 ▼0.969.45 ▲7.8142.50 ▼0.66
Dashboard /wp-admin2,195 ▲215.58 ▼0.0782.84 ▼11.3437.11 ▼0.99
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0134.56 ▼0.0437.18 ▲0.77
Add New Post /wp-admin/post-new.php1,535 ▲218.38 ▼4.45646.34 ▼21.7173.89 ▲17.82
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.0097.66 ▼20.7542.90 ▼13.78

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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: aps scroll top, scroll top, scroll to top, aps scroll to top

scroll-top-aps/aps-scroll-top.php 92% from 13 tests

The main PHP file in "APS SCROLL TOP" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("scroll-top-aps.php" instead of "aps-scroll-top.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
Success! There were no dangerous files found in this plugin57 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP145923
CSS10018
JavaScript111016

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png41.99KB14.31KB▼ 65.93%
assets/icon-128x128.png9.82KB4.97KB▼ 49.36%
assets/banner-1544x500.png.png134.56KB45.39KB▼ 66.27%