72% scrolltick

Code Review | ScrollTick

WordPress plugin ScrollTick scored72%from 54 tests.

About plugin

  • Plugin page: scrolltick
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Feb 15, 2018
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: uisumo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.61MB] [CPU: ▼1.12ms] Passed 4 tests

An overview of server-side resources used by ScrollTick
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4347.31 ▲8.43
Dashboard /wp-admin4.00 ▲0.6656.98 ▼6.15
Posts /wp-admin/edit.php4.08 ▲0.7261.91 ▲14.52
Add New Post /wp-admin/post-new.php6.57 ▲0.6988.32 ▼12.88
Media Library /wp-admin/upload.php3.89 ▲0.6643.27 ▲6.14
Settings /wp-admin/edit.php?post_type=scrolltick&page=scrolltick-settings3.9447.46
Add New /wp-admin/post-new.php?post_type=scrolltick4.0152.87
All Items /wp-admin/edit.php?post_type=scrolltick3.9647.70
Group /wp-admin/edit-tags.php?taxonomy=scrolltick_group&post_type=scrolltick3.9143.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ScrollTick
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,135 ▲38916.06 ▲1.715.29 ▲3.7438.17 ▼5.76
Dashboard /wp-admin2,461 ▲2847.43 ▲1.76121.69 ▲27.2938.73 ▼2.47
Posts /wp-admin/edit.php2,397 ▲2974.14 ▲2.1761.68 ▲16.8632.38 ▼7.14
Add New Post /wp-admin/post-new.php1,640 ▲10221.91 ▲3.70647.73 ▼10.4135.68 ▼34.23
Media Library /wp-admin/upload.php1,527 ▲1245.46 ▲1.2690.25 ▼11.9541.05 ▼2.50
Settings /wp-admin/edit.php?post_type=scrolltick&page=scrolltick-settings1,3884.1864.8143.83
Add New /wp-admin/post-new.php?post_type=scrolltick2,6168.24197.0982.76
All Items /wp-admin/edit.php?post_type=scrolltick1,3734.1651.8927.36
Group /wp-admin/edit-tags.php?taxonomy=scrolltick_group&post_type=scrolltick1,5703.9654.3231.02

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
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_recent-posts
    • db_upgraded
    • widget_scrolltick
    • _scrolltick_options
    • _wpsf_registered_settings
    • _scrolltick_options-transient
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=scrolltick
    • > Notice in wp-content/plugins/scrolltick/includes/wpsf/classes/metabox.php+107
    Trying to access array offset on value of type bool

SRP 0% 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
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/scrolltick/includes/wpsf/templates/settings/global/header.php
    • > /wp-content/plugins/scrolltick/includes/wpsf/templates/settings/global/footer.php
    • > /wp-content/plugins/scrolltick/includes/wpsf/templates/settings/modern/footer.php
  • 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrolltick/includes/functions.php:12
    • > PHP Warning
      Use of undefined constant WPSF_VERSION - assumed 'WPSF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/scrolltick/includes/wpsf/templates/settings/modern/footer.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrolltick/includes/class-register-cpt.php:13
    • > PHP Notice
      Undefined variable: is_single_page in wp-content/plugins/scrolltick/includes/wpsf/templates/settings/global/header.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WPSFramework_Options' not found in wp-content/plugins/scrolltick/includes/wpsf/fields/typography_advanced/typography_advanced.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/scrolltick/includes/class-admin.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WPSFramework_Widget' not found in wp-content/plugins/scrolltick/includes/widgets/scrolltick_widgets.php:9
    • > PHP Notice
      Undefined variable: theme in wp-content/plugins/scrolltick/includes/wpsf/templates/settings/global/header.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WPSFramework_Options' not found in wp-content/plugins/scrolltick/includes/wpsf/fields/tab/tab.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/scrolltick/includes/wpsf/config/settings.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tested up to: Version not formatted correctly
The official readme.txt might help

scrolltick/scrolltick.php 77% from 13 tests

The main PHP script in "ScrollTick" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: The description should be shorter than 140 characters (currently 141 characters long)
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

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 detected81,084 lines of code in 262 files:
LanguageFilesBlank linesComment linesLines of code
CSS213,76686121,022
JSON20017,729
JavaScript832,12675716,589
PHP931,5262,92711,228
Sass55957011,139
SVG1002,672
PO File7306334705

PHP code Passed 2 tests

A short review of 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.50
Average class complexity16.17
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes64
▷ Abstract classes23.12%
▷ Concrete classes6296.88%
▷ Final classes1117.74%
Methods334
▷ Static methods257.49%
▷ Public methods28685.63%
▷ Protected methods164.79%
▷ Private methods329.58%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/wpsf/assets/images/chosen-sprite.png0.53KB0.88KB0.00%
includes/wpsf/assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
includes/wpsf/assets/images/checkerboard.png2.29KB2.54KB0.00%