84% page-scroll-progress

Code Review | Page Scroll Progress

WordPress plugin Page Scroll Progress scored84%from 54 tests.

About plugin

  • Plugin page: page-scroll-progress
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Feb 28, 2020
  • Latest release: Mar 5, 2020
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: ALZaN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /390 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 gracefully, with no errors

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

This is a short check of server-side resources used by Page Scroll Progress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.31 ▲6.37
Dashboard /wp-admin3.31 ▲0.0148.47 ▼4.81
Posts /wp-admin/edit.php3.36 ▲0.0151.50 ▲2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.85 ▼13.50
Media Library /wp-admin/upload.php3.23 ▲0.0038.73 ▼1.37

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
page-scroll-progress-substrates-color
widget_recent-posts
db_upgraded
page-scroll-progress-line-color
page-scroll-progress-position

Browser metrics Passed 4 tests

This is an overview of browser requirements for Page Scroll Progress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲5214.34 ▼0.022.25 ▲0.3343.26 ▼2.21
Dashboard /wp-admin2,208 ▲315.54 ▼0.2392.86 ▼7.2682.82 ▲37.56
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0339.06 ▲3.1337.47 ▼0.68
Add New Post /wp-admin/post-new.php1,564 ▲3618.36 ▼4.64718.25 ▲45.6055.44 ▲3.16
Media Library /wp-admin/upload.php1,413 ▲134.26 ▲0.04102.33 ▼0.3269.79 ▲25.06

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: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/page-scroll-progress/page-scroll-progress.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/page-scroll-progress/menu-page.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: progress, scroll, page progress, page scroll

page-scroll-progress/page-scroll-progress.php Passed 13 tests

The entry point to "Page Scroll Progress" version 2.0.1 is a PHP file that has certain tags in its header comment area
82 characters long description:
A plugin to create on the top side loading line witch always visible and fixed top

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
There were no executable files found in this plugin204 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41510133
CSS18042
JavaScript16129

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin