72% wp-smoother

Code Review | WP Smoother - Smooth Scroll, Anchor Scroll, Fade Animations

WordPress plugin WP Smoother - Smooth Scroll, Anchor Scroll, Fade Animations scored72%from 54 tests.

About plugin

  • Plugin page: wp-smoother
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.10-4.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2017
  • Latest release: Jul 29, 2017
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: harryrobinson (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /5,325 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
Install script ran successfully

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

Analyzing server-side resources used by WP Smoother - Smooth Scroll, Anchor Scroll, Fade Animations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0526.59 ▼12.57
Dashboard /wp-admin3.37 ▲0.0346.32 ▼13.51
Posts /wp-admin/edit.php3.49 ▲0.1346.39 ▲0.84
Add New Post /wp-admin/post-new.php5.97 ▲0.0984.93 ▼7.82
Media Library /wp-admin/upload.php3.30 ▲0.0735.49 ▲2.46
WP Smoother /wp-admin/options-general.php?page=wp-smoother3.2930.16

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

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

Browser metrics Passed 4 tests

WP Smoother - Smooth Scroll, Anchor Scroll, Fade Animations: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.61 ▼0.7710.49 ▲8.5944.45 ▼7.26
Dashboard /wp-admin2,211 ▲265.80 ▼0.1194.78 ▼5.8736.29 ▼6.73
Posts /wp-admin/edit.php2,094 ▲22.01 ▲0.0035.78 ▼4.6929.96 ▼5.01
Add New Post /wp-admin/post-new.php1,531 ▲1218.32 ▼4.81611.12 ▼83.3352.42 ▼6.13
Media Library /wp-admin/upload.php1,396 ▲114.19 ▲0.0295.05 ▼4.8839.20 ▼4.72
WP Smoother /wp-admin/options-general.php?page=wp-smoother9522.0222.6330.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-smoother
    • > Notice in wp-content/plugins/wp-smoother/admin/partials/wp-smoother-admin-display.php+30
    Undefined index: wpsmoother_fade_home

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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-smoother/public/css/wp-smoother-public.php
    • > /wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php
    • > /wp-content/plugins/wp-smoother/public/partials/wp-smoother-public-display.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: wpsmoother_anchor_speed in wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php on line 97
    • > PHP Notice
      Undefined index: wpsmoother_mouse_distance in wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php on line 69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-smoother/admin/partials/wp-smoother-admin-display.php:19
    • > PHP Notice
      Undefined index: wpsmoother_fade_duration in wp-content/plugins/wp-smoother/public/css/wp-smoother-public.php on line 4
    • > PHP Notice
      Undefined index: wpsmoother_fade_duration in wp-content/plugins/wp-smoother/public/css/wp-smoother-public.php on line 5
    • > PHP Notice
      Undefined index: wpsmoother_mouse_speed in wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php on line 69
    • > PHP Notice
      Undefined index: wpsmoother_fade_duration in wp-content/plugins/wp-smoother/public/css/wp-smoother-public.php on line 6
    • > PHP Notice
      Undefined index: activate_mouse_scroll in wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php on line 5
    • > PHP Notice
      Undefined index: wpsmoother_fade_duration in wp-content/plugins/wp-smoother/public/css/wp-smoother-public.php on line 7
    • > PHP Notice
      Undefined index: activate_click_scroll in wp-content/plugins/wp-smoother/public/js/wp-smoother-public.php on line 77

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: page load animations, anchor scroll, scrolling animations, page fade, smooth site...

wp-smoother/wp-smoother.php 92% from 13 tests

The main PHP file in "WP Smoother - Smooth Scroll, Anchor Scroll, Fade Animations" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin421 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14254583418
JavaScript12273
CSS1040

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.57
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin