84% last-comments-vk-widget

Code Review | Last comments VK widget

WordPress plugin Last comments VK widget scored84%from 54 tests.

About plugin

  • Plugin page: last-comments-vk-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 27, 2016
  • Latest release: Oct 19, 2019
  • Number of updates: 7
  • Update frequency: every 164.3 days
  • Top authors: Somonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼15.99ms] Passed 4 tests

An overview of server-side resources used by Last comments VK widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.23 ▼7.33
Dashboard /wp-admin3.33 ▼0.0140.80 ▼22.93
Posts /wp-admin/edit.php3.38 ▲0.0346.64 ▼2.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0375.06 ▼30.71
Media Library /wp-admin/upload.php3.25 ▲0.0335.34 ▲1.95

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_lcw_widget
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Last comments VK widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.68 ▼0.701.71 ▼0.0539.38 ▼5.59
Dashboard /wp-admin2,206 ▲155.86 ▲0.83135.19 ▲33.4864.97 ▲23.45
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0139.19 ▼2.3134.96 ▼1.07
Add New Post /wp-admin/post-new.php1,520 ▼823.39 ▲4.94657.95 ▲58.3949.23 ▲2.68
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0198.99 ▼2.4439.95 ▼3.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_lcw_widget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/last-comments-vk-widget/last-comments-vk-widget.php:30

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: widget, comments, vk

last-comments-vk-widget/last-comments-vk-widget.php 92% from 13 tests

The main PHP script in "Last comments VK widget" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1272978

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.50
▷ Minimum class complexity5.00
▷ Maximum class complexity10.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin