89% easygoing-scroll-to-top

Code Review | Easygoing Scroll to Top

WordPress plugin Easygoing Scroll to Top scored89%from 54 tests.

About plugin

  • Plugin page: easygoing-scroll-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 22, 2018
  • Latest release: Dec 23, 2018
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: sajedul2016 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /561 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.00MB] [CPU: ▼8.27ms] Passed 4 tests

Server-side resources used by Easygoing Scroll to Top
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.32 ▼9.20
Dashboard /wp-admin3.31 ▲0.0046.74 ▼5.52
Posts /wp-admin/edit.php3.36 ▲0.0049.17 ▼1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.85 ▼17.20
Media Library /wp-admin/upload.php3.23 ▲0.0034.66 ▼1.15

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easygoing Scroll to Top
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲19113.44 ▼0.759.12 ▲7.2039.07 ▼2.13
Dashboard /wp-admin2,209 ▲325.52 ▼0.0887.07 ▼18.8543.22 ▼0.80
Posts /wp-admin/edit.php2,120 ▲171.97 ▼0.0534.67 ▼1.8637.02 ▲2.34
Add New Post /wp-admin/post-new.php1,385 ▼14318.91 ▼4.24586.81 ▼99.9858.45 ▼12.02
Media Library /wp-admin/upload.php1,417 ▲204.18 ▼0.0894.47 ▼11.4139.78 ▼4.23

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Screenshots: Screenshot #2 (This is the second screen shot) image required
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === easygoing-scroll-to-top === )
You can look at the official readme.txt

easygoing-scroll-to-top/init.php 85% from 13 tests

The main file in "Easygoing Scroll to Top" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easygoing-scroll-to-top.php" instead of "init.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin64 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1471025
CSS12023
JavaScript113016

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.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin