84% super-light-animated-scroll-to-id

Code Review | Super Light Animated Scroll to id

WordPress plugin Super Light Animated Scroll to id scored84%from 54 tests.

About plugin

  • Plugin page: super-light-anima...
  • Plugin version: 0.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2020
  • Latest release: Feb 10, 2020
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: dlawp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /551 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Super Light Animated Scroll to id
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.24 ▼4.96
Dashboard /wp-admin3.31 ▲0.0144.26 ▼3.84
Posts /wp-admin/edit.php3.36 ▲0.0045.77 ▲0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.06 ▼14.76
Media Library /wp-admin/upload.php3.23 ▲0.0038.25 ▲3.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Super Light Animated Scroll to id
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲13613.69 ▼0.578.07 ▲6.2841.19 ▲1.16
Dashboard /wp-admin2,203 ▲124.86 ▼0.0198.34 ▼6.7639.13 ▼2.80
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0245.60 ▲7.2135.74 ▲0.74
Add New Post /wp-admin/post-new.php1,533 ▼923.30 ▲4.84631.89 ▼23.2357.21 ▼0.53
Media Library /wp-admin/upload.php1,388 ▼34.12 ▼0.11111.26 ▲14.5746.41 ▲0.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-light-animated-scroll-to-id/super-light-animated-scroll.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
9 plugin tags: links, animate, jquery, smooth, scrolling...

super-light-animated-scroll-to-id/super-light-animated-scroll.php 92% from 13 tests

"Super Light Animated Scroll to id" version 0.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("super-light-animated-scroll-to-id.php" instead of "super-light-animated-scroll.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110939

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected