82% vd-likes

Code Review | VD Likes

WordPress plugin VD Likes scored 82% from 54 tests.

About plugin

  • Plugin page: vd-likes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.5
  • WordPress version: 5.8.1
  • First release: Sep 3, 2015
  • Latest release: Apr 17, 2018
  • Number of updates: 6
  • Update frequency: every 159.7 days
  • Top authors: vrajesh.dave (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,367 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼139.01ms] Passed 4 tests

This is a short check of server-side resources used by VD Likes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.48 ▲13.19
Dashboard /wp-admin3.12 ▲0.0746.31 ▲6.75
Posts /wp-admin/edit.php3.17 ▲0.0745.31 ▲0.37
Add New Post /wp-admin/post-new.php5.48 ▲0.0484.12 ▼562.27
Media Library /wp-admin/upload.php3.06 ▲0.0632.17 ▼0.88
VD Likes /wp-admin/options-general.php?page=vd_likes_template3.0326.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for VD Likes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.89 ▲0.427.09 ▼0.4247.08 ▲2.80
Dashboard /wp-admin2,997 ▲665.95 ▼0.03139.58 ▲2.49112.70 ▼0.76
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0172.48 ▲4.2391.18 ▼5.50
Add New Post /wp-admin/post-new.php1,675 ▲7118.86 ▲0.03362.57 ▼6.12103.95 ▼9.18
Media Library /wp-admin/upload.php1,815 ▲115.02 ▲0.02141.45 ▼4.52109.49 ▼7.27
VD Likes /wp-admin/options-general.php?page=vd_likes_template8911.8542.3755.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=vd_likes_template
    • > Error in wp-admin/includes/template.php+1720
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/vd-likes/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1720
    Stack trace:
    #0 wp-content/plugins/vd-likes/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/vd-likes/vd_like.php(329): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(303): VD_Like->vd_likes_settings_page()
    #3 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(470): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vd-likes/vd_like.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/vd-likes/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: unlike, like

vd-likes/vd_like.php 85% from 13 tests

The principal PHP file in "VD Likes" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("vd-likes.php" instead of "vd_like.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)

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 plugin469 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP22022327
CSS2112059
JavaScript211054
SVG10029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1050.00%
▷ Protected methods1050.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin