84% vertical-scroll-recent-post

Code Review | Vertical scroll recent post

WordPress plugin Vertical scroll recent post scored 84% from 54 tests.

About plugin

  • Plugin page: vertical-scroll-r...
  • Plugin version: 13.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 21, 2009
  • Latest release: Jan 1, 2022
  • Number of updates: 112
  • Update frequency: every 40.6 days
  • Top authors: gopiplus (86.61%)Sudavar (11.61%)gopi_plus (3.57%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 110,236 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 gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼290.27ms] Passed 4 tests

A check of server-side resources used by Vertical scroll recent post
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2155.19 ▲8.63
Dashboard /wp-admin3.56 ▲0.1535.15 ▲1.19
Posts /wp-admin/edit.php3.78 ▲0.1439.32 ▲0.51
Add New Post /wp-admin/post-new.php7.06 ▲0.0698.80 ▼1,162.32
Media Library /wp-admin/upload.php3.43 ▲0.1424.65 ▼0.47
VSRP Options /wp-admin/options-general.php?page=vertical-scroll-recent-post3.4022.98

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options
vsrp_scrollings
widget_vertical_recent_post_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Vertical scroll recent post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲15116.52 ▲0.779.45 ▲3.172.30 ▼0.24
Dashboard /wp-admin2,897 ▲395.99 ▼0.16115.86 ▼21.29152.24 ▼13.03
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0067.21 ▲4.03135.07 ▼3.89
Add New Post /wp-admin/post-new.php1,664 ▼4716.15 ▼4.74446.79 ▲10.76158.36 ▼3.93
Media Library /wp-admin/upload.php1,703 ▲55.44 ▼0.04138.57 ▲3.00186.98 ▲0.57
VSRP Options /wp-admin/options-general.php?page=vertical-scroll-recent-post1,1192.4255.98129.97

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_vertical_recent_post_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vertical-scroll-recent-post/class-vertical-scroll-recent-post-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vertical-scroll-recent-post/class-vertical-scroll-recent-post-widget.php:5

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, but this is not an exhaustive test

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: post, vertical, scroll, recent

vertical-scroll-recent-post/vertical-scroll-recent-post.php Passed 13 tests

"Vertical scroll recent post" version 13.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Vertical Scroll Recent Post plugin scroll the recent post title in the widget, the post scroll from bottom to top vertically.

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
No dangerous file extensions were detected1,087 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43855697
JavaScript21168161
PO File16586157
CSS112072

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity21.33
▷ Minimum class complexity3.00
▷ Maximum class complexity43.00
Average method complexity6.08
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods541.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vsrp_icon.png0.26KB0.19KB▼ 26.14%