83% viglink

Code Review | VigLink

WordPress plugin VigLink scored83%from 54 tests.

About plugin

  • Plugin page: viglink
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.7
  • WordPress version: 6.3.1
  • First release: Apr 5, 2010
  • Latest release: Jul 10, 2018
  • Number of updates: 25
  • Update frequency: every 120.7 days
  • Top authors: viglink (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /105,519 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by VigLink
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.08 ▲4.26
Dashboard /wp-admin3.34 ▼0.0149.31 ▼21.69
Posts /wp-admin/edit.php3.39 ▲0.0351.21 ▼3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.09 ▲1.66
Media Library /wp-admin/upload.php3.26 ▲0.0337.92 ▲0.48
VigLink /wp-admin/options-general.php?page=viglink/viglink.php3.2344.09

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
key
can_compress_scripts
enable-rss-rewrites
db_upgraded
is-not-first-load

Browser metrics Passed 4 tests

An overview of browser requirements for VigLink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8414.81 ▲0.062.32 ▲0.2844.15 ▼10.48
Dashboard /wp-admin2,228 ▲255.86 ▲0.0197.21 ▼21.6138.16 ▼4.02
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0536.96 ▼5.8937.04 ▼1.65
Add New Post /wp-admin/post-new.php1,558 ▲2723.40 ▲0.12633.04 ▼41.7567.38 ▲3.36
Media Library /wp-admin/upload.php1,404 ▲44.18 ▼0.04101.37 ▼22.1047.75 ▼4.24
VigLink /wp-admin/options-general.php?page=viglink/viglink.php8242.0429.0332.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • key
    • theysaidso_admin_options
    • enable-rss-rewrites
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • is-not-first-load

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/viglink/viglink.php:30

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #1 (**The Settings Page** - Once you're signed up at viglink.com, copy and paste your VigLink key from [sites](https://publishers.viglink.com/publisher/sites), and click the key icon next to the site you are using.) image not found
The official readme.txt is a good inspiration

viglink/viglink.php 92% from 13 tests

The entry point to "VigLink" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 315 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected275 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14457189
JavaScript112163
CSS15023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo-32x32.png0.79KB0.62KB▼ 21.36%
screenshot-1.png51.20KB19.74KB▼ 61.44%