84% vertical-scroll-recent-comments

Code Review | Vertical scroll recent comments

WordPress plugin Vertical scroll recent comments scored84%from 54 tests.

About plugin

  • Plugin page: vertical-scroll-r...
  • Plugin version: 12.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 29, 2009
  • Latest release: Dec 1, 2022
  • Number of updates: 90
  • Update frequency: every 54.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /47,951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.76ms] Passed 4 tests

An overview of server-side resources used by Vertical scroll recent comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.82 ▼0.60
Dashboard /wp-admin3.37 ▲0.0246.61 ▼11.64
Posts /wp-admin/edit.php3.42 ▲0.0643.12 ▼1.37
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.39 ▼13.12
Media Library /wp-admin/upload.php3.30 ▲0.0633.71 ▼0.92
Vertical scroll recent comments /wp-admin/options-general.php?page=vertical-scroll-recent-comments/vertical-scroll-recent-comments.php3.2631.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 14 new options
New WordPress options
theysaidso_admin_options
db_upgraded
vsrc_select_num_user
widget_recent-comments
widget_theysaidso_widget
vsrc_select_character
vsrc_speed
widget_recent-posts
vsrc_dis_image_or_name
vsrc_title
...

Browser metrics Passed 4 tests

Vertical scroll recent comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.101.69 ▼0.4142.63 ▼0.42
Dashboard /wp-admin2,210 ▲225.90 ▼0.02109.02 ▼4.6942.82 ▼0.23
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0133.45 ▼1.2733.70 ▼2.80
Add New Post /wp-admin/post-new.php1,537 ▲423.04 ▼0.16673.50 ▼31.4948.74 ▼8.41
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.1393.42 ▼16.3943.47 ▼0.48
Vertical scroll recent comments /wp-admin/options-general.php?page=vertical-scroll-recent-comments/vertical-scroll-recent-comments.php9022.2024.9726.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/vertical-scroll-recent-comments/vertical-scroll-recent-comments.php:332

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: widget, comment, vertical, scroll, recent

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

The primary PHP file in "Vertical scroll recent comments" version 12.2 is used by WordPress to initiate all plugin functionality
126 characters long description:
Vertical scroll recent comments wordpress plugin will scroll the recent post comment vertically (bottom to top) in the widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin534 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP24118317
PO File26478179
JavaScript172538

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin