93% bologer-vk-comments

Code Review | Bologer VK Comments

WordPress plugin Bologer VK Comments scored 93% from 54 tests.

About plugin

  • Plugin page: bologer-vk-comments
  • Plugin version: 0.0.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.1
  • WordPress version: 5.8.1
  • First release: Dec 30, 2017
  • Latest release: Feb 27, 2018
  • Number of updates: 12
  • Update frequency: every 4.9 days
  • Top authors: ateshabaev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 855 total downloads

Benchmarks

Plugin footprint Passed 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.20MB] [CPU: ▼140.65ms] Passed 4 tests

Analyzing server-side resources used by Bologer VK Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2742.79 ▲18.09
Dashboard /wp-admin3.24 ▲0.1949.61 ▼6.72
Posts /wp-admin/edit.php3.35 ▲0.2548.67 ▲3.81
Add New Post /wp-admin/post-new.php5.60 ▲0.1792.90 ▼559.18
Media Library /wp-admin/upload.php3.19 ▲0.1836.23 ▼0.51
VK Comments /wp-admin/admin.php?page=bologer-vk-comments3.1528.58
All Comments /wp-admin/admin.php?page=bologer-vk-comments-all3.1529.59
Settings /wp-admin/admin.php?page=bologer-vk-comments-settings3.1529.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Bologer VK Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,735 ▲13915.92 ▲0.399.31 ▲1.9247.89 ▲0.44
Dashboard /wp-admin2,994 ▲605.91 ▼0.06134.09 ▼22.24133.62 ▲16.87
Posts /wp-admin/edit.php2,790 ▲542.68 ▼0.0163.38 ▼0.6090.43 ▼3.09
Add New Post /wp-admin/post-new.php1,522 ▼16118.64 ▼0.09373.18 ▲2.09130.66 ▲19.70
Media Library /wp-admin/upload.php1,855 ▲485.03 ▲0.01131.04 ▼14.86146.11 ▲22.02
VK Comments /wp-admin/admin.php?page=bologer-vk-comments1,0992.0556.3865.85
All Comments /wp-admin/admin.php?page=bologer-vk-comments-all1,0492.0549.5668.43
Settings /wp-admin/admin.php?page=bologer-vk-comments-settings1,1152.0655.9674.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/bologer-vk-comments/comments.php:6

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in bologer-vk-comments/assets to your readme.txt
The official readme.txt might help

bologer-vk-comments/bologer-vk-comments.php 92% from 13 tests

Analyzing the main PHP file in "Bologer VK Comments" version 0.0.21
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,344 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3162246852
PO File2177181492

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity65.00
▷ Minimum class complexity65.00
▷ Maximum class complexity65.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
images/vk.png1.27KB0.59KB▼ 53.69%