84% mi-scroll-to-top

Code Review | MI Scroll To Top

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

About plugin

  • Plugin page: mi-scroll-to-top
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Apr 7, 2020
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: mitonmoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by MI Scroll To Top
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.37 ▼1.87
Dashboard /wp-admin3.31 ▲0.0141.52 ▼4.98
Posts /wp-admin/edit.php3.36 ▲0.0043.09 ▼1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.94 ▲0.05
Media Library /wp-admin/upload.php3.24 ▲0.0036.09 ▼0.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MI Scroll To Top
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.76 ▼0.555.63 ▲3.8941.64 ▼2.73
Dashboard /wp-admin2,206 ▲214.85 ▼1.0697.14 ▼28.6640.23 ▼1.29
Posts /wp-admin/edit.php2,089 ▼02.17 ▲0.1740.27 ▲3.8937.97 ▲4.50
Add New Post /wp-admin/post-new.php1,533 ▲1422.99 ▼0.15674.14 ▼11.7952.99 ▼0.08
Media Library /wp-admin/upload.php1,391 ▼04.15 ▼0.09102.91 ▲1.5645.11 ▼2.99

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 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/mi-scroll-to-top/mi-scroll-to-top.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

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

"MI Scroll To Top" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
Just add Scroll To Top functionality in any wordpress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,124 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,061
CSS21431
JavaScript18016
PHP110816

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
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

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