89% buooy-scroll-to-top

Code Review | Buooy Scroll To Top

WordPress plugin Buooy Scroll To Top scored89%from 54 tests.

About plugin

  • Plugin page: buooy-scroll-to-top
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: May 15, 2014
  • Number of updates: 11
  • Update frequency: every 6.4 days
  • Top authors: Buooy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,355 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.00MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Buooy Scroll To Top
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.30 ▼1.96
Dashboard /wp-admin3.31 ▲0.0142.77 ▼6.12
Posts /wp-admin/edit.php3.36 ▲0.0046.06 ▼4.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.03 ▼10.03
Media Library /wp-admin/upload.php3.23 ▲0.0047.15 ▲14.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Buooy Scroll To Top
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.28 ▼0.071.98 ▲0.4137.81 ▼5.50
Dashboard /wp-admin2,192 ▲125.51 ▼0.1583.74 ▼5.4738.61 ▼1.48
Posts /wp-admin/edit.php2,100 ▼41.98 ▲0.0139.07 ▼4.9135.67 ▼4.91
Add New Post /wp-admin/post-new.php1,526 ▼1123.13 ▲4.91681.94 ▲46.2051.80 ▼17.95
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0397.03 ▲1.1340.61 ▼4.86

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
No plugin tags provided

buooy-scroll-to-top/buooy-scrolltotop.php 77% from 13 tests

The principal PHP file in "Buooy Scroll To Top" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("buooy-scroll-to-top.php" instead of "buooy-scrolltotop.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2193175
Markdown123044

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

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
backtotop.png0.34KB0.36KB0.00%