72% atelier-scroll-top

Code Review | Atelier Scroll Top

WordPress plugin Atelier Scroll Top scored72%from 54 tests.

About plugin

  • Plugin page: atelier-scroll-top
  • Plugin version: 1.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.3
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Jan 15, 2023
  • Number of updates: 20
  • Update frequency: every 65.0 days
  • Top authors: mariusz88atelierweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Atelier Scroll Top
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.83 ▲4.40
Dashboard /wp-admin3.35 ▲0.0554.83 ▲2.06
Posts /wp-admin/edit.php3.46 ▲0.1171.06 ▲13.37
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.94 ▼18.37
Media Library /wp-admin/upload.php3.28 ▲0.0543.45 ▲4.97
Atelier ScrollTop /wp-admin/options-general.php?page=atelier-scroll-top3.2743.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Atelier Scroll Top
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18613.96 ▼0.4010.99 ▲9.2141.99 ▼4.61
Dashboard /wp-admin2,227 ▲505.71 ▲0.0998.60 ▲12.4441.59 ▼0.11
Posts /wp-admin/edit.php2,134 ▲342.28 ▲0.3037.76 ▼4.8535.45 ▼1.70
Add New Post /wp-admin/post-new.php1,557 ▲2923.27 ▲0.22684.37 ▲2.5337.63 ▼17.72
Media Library /wp-admin/upload.php1,435 ▲324.44 ▲0.20112.80 ▲1.8648.58 ▲0.81
Atelier ScrollTop /wp-admin/options-general.php?page=atelier-scroll-top2,0643.1673.6663.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/atelier-scroll-top/atelier-scroll-top.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'atlScrollTop\\OptionsVariables' not found in wp-content/plugins/atelier-scroll-top/inc/ScrollSettings.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'atlScrollTop\\OptionsVariables' not found in wp-content/plugins/atelier-scroll-top/inc/scrollStyleCss.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=atelier-scroll-top
    • > Network (severe)
    wp-content/plugins/atelier-scroll-top/inc/assets/scrolltop.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=atelier-scroll-top
    • > Network (severe)
    wp-content/plugins/atelier-scroll-top/inc/custom-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=atelier-scroll-top
    • > Other (warning) in unknown
    /wp-admin/options-general.php?page=atelier-scroll-top 560 Failed to decode downloaded font: /wp-content/plugins/atelier-scroll-top/assets/fontello/font/fontello.woff2?54114207
    • > GET request to /wp-admin/options-general.php?page=atelier-scroll-top
    • > Other (warning) in unknown
    /wp-admin/options-general.php?page=atelier-scroll-top - Failed to decode downloaded font: /wp-content/plugins/atelier-scroll-top/assets/fontello/font/fontello.woff?54114207

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "paypal.me/mariusz1988"
  • Screenshots: Screenshot #1 (Atelier Scroll Top Settings page screenshot-01.png) image missing
You can look at the official readme.txt

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

The entry point to "Atelier Scroll Top" version 1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,279 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP153374611,104
CSS77352477
HTML1110315
PO File27380227
JSON300108
SVG114026
JavaScript17322

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.62
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods82
▷ Static methods78.54%
▷ Public methods8198.78%
▷ Protected methods00.00%
▷ Private methods11.22%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-256x256.png10.90KB5.51KB▼ 49.43%
assets/img/banner-772x250.png58.57KB23.60KB▼ 59.70%
screenshot-01.png50.15KB23.01KB▼ 54.12%
assets/img/logoMedium.png77.61KB29.55KB▼ 61.92%