84% easy-smooth-scroll

Code Review | Easy Smooth Scroll

WordPress plugin Easy Smooth Scroll scored84%from 54 tests.

About plugin

  • Plugin page: easy-smooth-scroll
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2015
  • Latest release: Nov 5, 2015
  • Number of updates: 16
  • Update frequency: every 3.4 days
  • Top authors: kingrayhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,767 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.93ms] Passed 4 tests

Analyzing server-side resources used by Easy Smooth Scroll
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.09 ▼2.89
Dashboard /wp-admin3.31 ▼0.0444.24 ▼14.83
Posts /wp-admin/edit.php3.37 ▲0.0047.22 ▲1.81
Add New Post /wp-admin/post-new.php5.90 ▲0.0079.57 ▼24.79
Media Library /wp-admin/upload.php3.24 ▲0.0034.77 ▼1.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Smooth Scroll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.40 ▼1.168.55 ▲6.9938.82 ▼1.23
Dashboard /wp-admin2,189 ▲115.55 ▼0.1089.54 ▼9.0636.29 ▼9.20
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0439.22 ▲3.2337.22 ▲1.12
Add New Post /wp-admin/post-new.php1,526 ▼1022.96 ▲4.52680.07 ▲34.9255.73 ▼23.17
Media Library /wp-admin/upload.php1,403 ▲34.12 ▼0.0796.89 ▼19.4443.77 ▼4.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-smooth-scroll/plugin-hook.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

easy-smooth-scroll/plugin-hook.php 92% from 13 tests

"Easy Smooth Scroll" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-smooth-scroll.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13355
JavaScript1001

PHP code Passed 2 tests

Analyzing 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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin