62% scroll-highlighter

Code Review | Scroll Highlight - catch the eye of your visitors while they scroll

WordPress plugin Scroll Highlight - catch the eye of your visitors while they scroll scored62%from 54 tests.

About plugin

  • Plugin page: scroll-highlighter
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.0
  • WordPress version: 6.3.1
  • First release: Sep 27, 2022
  • Latest release: Sep 27, 2022
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: paradoxetion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼35.32ms] Passed 4 tests

An overview of server-side resources used by Scroll Highlight - catch the eye of your visitors while they scroll
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.24 ▼5.63
Dashboard /wp-admin3.03 ▼0.2822.15 ▼26.79
Posts /wp-admin/edit.php3.03 ▼0.3323.87 ▼24.63
Add New Post /wp-admin/post-new.php3.03 ▼2.8625.57 ▼77.02
Media Library /wp-admin/upload.php3.03 ▼0.2122.48 ▼12.82
Scroll Highlighter /wp-admin/options-general.php?page=scroll-highlighter/scrollhighlight.php3.0328.65

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Scroll Highlight - catch the eye of your visitors while they scroll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.30 ▼1.081.95 ▼0.1137.78 ▼13.89
Dashboard /wp-admin2,210 ▲225.89 ▲1.03106.35 ▼3.5041.92 ▼0.59
Posts /wp-admin/edit.php2,096 ▲72.04 ▼0.1138.95 ▼2.4833.31 ▼2.05
Add New Post /wp-admin/post-new.php1,517 ▼1317.52 ▼0.49635.56 ▲5.9062.68 ▲1.77
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0794.95 ▼7.9841.94 ▼0.76
Scroll Highlighter /wp-admin/options-general.php?page=scroll-highlighter/scrollhighlight.php8972.0223.7828.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=scroll-highlighter/scrollhighlight.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/scroll-highlighter/scrollhighlight.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=scroll-highlighter/scrollhighlight.php
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=scroll-highlighter%2Fscrollhighlight.php 149 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=scroll-highlighter/scrollhighlight.php
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=scroll-highlighter%2Fscrollhighlight.php 153 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: scroll, ads highlight, hightlight

scroll-highlighter/scrollhighlight.php 92% from 13 tests

"Scroll Highlight - catch the eye of your visitors while they scroll" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-highlighter.php" instead of "scrollhighlight.php")

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
Good job! No executable or dangerous file extensions detected252 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1597252

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions5
▷ Named functions5100.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