84% creative-scroll-to-top

Code Review | Creative Scroll To Top

WordPress plugin Creative Scroll To Top scored84%from 54 tests.

About plugin

  • Plugin page: creative-scroll-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 8, 2017
  • Latest release: Oct 8, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /595 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼11.91ms] Passed 4 tests

A check of server-side resources used by Creative Scroll To Top
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0724.55 ▼12.48
Dashboard /wp-admin3.31 ▼0.0444.67 ▼13.01
Posts /wp-admin/edit.php3.36 ▲0.0046.35 ▼2.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.77 ▼19.73
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▲0.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Creative Scroll To Top: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.42 ▼0.618.40 ▲6.7136.52 ▼1.23
Dashboard /wp-admin2,198 ▲175.61 ▼0.1282.47 ▼19.9039.79 ▼6.34
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0237.06 ▲2.5131.85 ▼2.48
Add New Post /wp-admin/post-new.php1,535 ▼918.01 ▼0.18606.16 ▼10.93100.36 ▲33.98
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.06102.33 ▼3.9243.89 ▼1.46

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

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

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 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/creative-scroll-to-top/creative-scroll-to-top.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Stable tag: Empty value
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot.png), #2 ()
The official readme.txt is a good inspiration

creative-scroll-to-top/creative-scroll-to-top.php Passed 13 tests

The principal PHP file in "Creative Scroll To Top" v. 1.0 is loaded by WordPress automatically on each request
60 characters long description:
This plugin will add a scroll to top button on your website.

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
Everything looks great! No dangerous files found in this plugin33 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP181117
CSS11012
JavaScript1174

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
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
images/screenshot.png3.24KB0.56KB▼ 82.71%