83% viglink-spotlight-by-shortcode

Code Review | VigLink SpotLight By ShortCode

WordPress plugin VigLink SpotLight By ShortCode scored83%from 54 tests.

About plugin

  • Plugin page: viglink-spotlight...
  • Plugin version: 1.0.a...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Sep 10, 2014
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: susantabeura (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.88ms] Passed 4 tests

This is a short check of server-side resources used by VigLink SpotLight By ShortCode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.16 ▼5.56
Dashboard /wp-admin3.32 ▼0.0347.80 ▼16.03
Posts /wp-admin/edit.php3.37 ▲0.0151.13 ▲2.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.65 ▼10.46
Media Library /wp-admin/upload.php3.24 ▲0.0138.16 ▲0.53
VigLink SpotLight /wp-admin/options-general.php?page=slb-viglink-spotlight3.2133.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

VigLink SpotLight By ShortCode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.75 ▲0.401.84 ▼0.1442.74 ▼2.46
Dashboard /wp-admin2,193 ▲135.55 ▼0.1085.71 ▼9.7237.42 ▼2.59
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0435.77 ▼3.1835.22 ▼2.05
Add New Post /wp-admin/post-new.php1,529 ▲323.00 ▲0.10653.00 ▼22.4552.59 ▼1.23
Media Library /wp-admin/upload.php1,404 ▲44.17 ▼0.0197.78 ▼5.7041.41 ▼2.86
VigLink SpotLight /wp-admin/options-general.php?page=slb-viglink-spotlight8151.9924.7525.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/viglink-spotlight-by-shortcode/spotlight.php:27

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 83% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === viglink-spotlight-by-shortcode === )
  • Screenshots: Please add descriptions for these screenshots #2, #3 in viglink-spotlight-by-shortcode/assets to your readme.txt
You can look at the official readme.txt

viglink-spotlight-by-shortcode/spotlight.php 77% from 13 tests

The main PHP script in "VigLink SpotLight By ShortCode" version 1.0.a... is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("viglink-spotlight-by-shortcode.php" instead of "spotlight.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1.0.a...")
  • Description: Keep the plugin description shorter than 140 characters (currently 230 characters long)

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
No dangerous file extensions were detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114953

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/vlsl.png36.87KB16.32KB▼ 55.73%