84% post-auto-vertical-scrolling

Code Review | Post Auto Vertical Scrolling

WordPress plugin Post Auto Vertical Scrolling scored84%from 54 tests.

About plugin

  • Plugin page: post-auto-vertica...
  • Plugin version: 2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 8
  • Update frequency: every 65.9 days
  • Top authors: shahinurislam (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /987 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
Install script ran successfully

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

An overview of server-side resources used by Post Auto Vertical Scrolling
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.72 ▼6.38
Dashboard /wp-admin3.31 ▼0.0343.80 ▼13.31
Posts /wp-admin/edit.php3.36 ▲0.0146.85 ▼0.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.80 ▼21.52
Media Library /wp-admin/upload.php3.24 ▲0.0136.70 ▲3.41
Settings /wp-admin/edit.php?post_type=post&page=pascs_settings3.2030.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Auto Vertical Scrolling
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲14913.78 ▼0.467.97 ▲6.1538.07 ▼1.29
Dashboard /wp-admin2,198 ▲205.62 ▼0.0587.24 ▼21.0937.75 ▼10.04
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0438.99 ▲1.9435.14 ▲2.36
Add New Post /wp-admin/post-new.php1,535 ▲925.26 ▲2.04634.36 ▼57.9971.40 ▲20.14
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.0495.14 ▼4.1240.78 ▼3.05
Settings /wp-admin/edit.php?post_type=post&page=pascs_settings7932.0024.6228.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-auto-vertical-scrolling/include/enqueue.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/post-auto-vertical-scrolling/index.php:12

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: any post, category, custom post

post-auto-vertical-scrolling/index.php 85% from 13 tests

The main PHP script in "Post Auto Vertical Scrolling" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 232 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-auto-vertical-scrolling.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin169 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2418116
JavaScript12850
CSS3013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin