78% free-comments-for-wordpress-vuukle

Code Review | Vuukle Comments, Reactions, Share Bar, Revenue

WordPress plugin Vuukle Comments, Reactions, Share Bar, Revenue scored78%from 54 tests.

About plugin

  • Plugin page: free-comments-for...
  • Plugin version: 5.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.1.1
  • WordPress version: 6.3.1
  • First release: May 13, 2012
  • Latest release: Jun 1, 2023
  • Number of updates: 264
  • Update frequency: every 15.3 days
  • Top authors: vuukle (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

500+ active /64,293 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Vuukle Comments, Reactions, Share Bar, Revenue
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.63 ▼2.60
Dashboard /wp-admin3.33 ▼0.0151.03 ▼11.43
Posts /wp-admin/edit.php3.39 ▲0.0353.30 ▲5.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.56 ▼13.69
Media Library /wp-admin/upload.php3.26 ▲0.0336.55 ▼0.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
Activated_Vuukle_Plugin_Date
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Vuukle Comments, Reactions, Share Bar, Revenue
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15814.26 ▼0.141.82 ▲0.3746.37 ▲10.13
Dashboard /wp-admin2,210 ▲335.59 ▼0.0589.13 ▲2.9174.23 ▲30.60
Posts /wp-admin/edit.php2,121 ▲212.01 ▼0.0339.38 ▼1.5232.24 ▼0.21
Add New Post /wp-admin/post-new.php1,558 ▲3023.01 ▼0.19683.04 ▲30.0455.53 ▲4.98
Media Library /wp-admin/upload.php1,409 ▲94.22 ▲0.0699.63 ▼7.0382.81 ▲35.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • Activated_Vuukle_Plugin_Date
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/free-comments-for-wordpress-vuukle/admin/partials/free-comments-for-wordpress-vuukle-save-remind-modal.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/free-comments-for-wordpress-vuukle/admin/partials/free-comments-for-wordpress-vuukle-activate-modal.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/free-comments-for-wordpress-vuukle/admin/partials/free-comments-for-wordpress-vuukle-admin-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/free-comments-for-wordpress-vuukle/admin/partials/free-comments-for-wordpress-vuukle-deactivate-modal.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

free-comments-for-wordpress-vuukle/free-comments-for-wordpress-vuukle.php 85% from 13 tests

The main PHP script in "Vuukle Comments, Reactions, Share Bar, Revenue" version 5.1.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 271 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin2,425 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP181861,1592,262
JavaScript21873161
CSS1041
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity25.44
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods68
▷ Static methods913.24%
▷ Public methods6088.24%
▷ Protected methods00.00%
▷ Private methods811.76%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants0
▷ Global constants00.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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/icon@2.png1.12KB1.08KB▼ 3.56%
admin/images/emote.png47.89KB13.39KB▼ 72.03%
admin/images/share.png11.70KB4.26KB▼ 63.57%
admin/images/logo.png16.99KB7.75KB▼ 54.39%
admin/images/noavatar.png1.61KB1.04KB▼ 34.98%