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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 33.48 ▲13.19 |
Dashboard /wp-admin | 3.12 ▲0.07 | 46.31 ▲6.75 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 45.31 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 84.12 ▼562.27 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 32.17 ▼0.88 |
VD Likes /wp-admin/options-general.php?page=vd_likes_template | 3.03 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.89 ▲0.42 | 7.09 ▼0.42 | 47.08 ▲2.80 |
Dashboard /wp-admin | 2,997 ▲66 | 5.95 ▼0.03 | 139.58 ▲2.49 | 112.70 ▼0.76 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.01 | 72.48 ▲4.23 | 91.18 ▼5.50 |
Add New Post /wp-admin/post-new.php | 1,675 ▲71 | 18.86 ▲0.03 | 362.57 ▼6.12 | 103.95 ▼9.18 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.02 ▲0.02 | 141.45 ▼4.52 | 109.49 ▼7.27 |
VD Likes /wp-admin/options-general.php?page=vd_likes_template | 891 | 1.85 | 42.37 | 55.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 22 | 327 |
CSS | 2 | 11 | 20 | 59 |
JavaScript | 2 | 11 | 0 | 54 |
SVG | 1 | 0 | 0 | 29 |
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 code | 0.37 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 50.00% |
▷ Protected methods | 10 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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