90% very-simple-link-manager

Code Review | VS Link Manager

WordPress plugin VS Link Manager scored90%from 54 tests.

About plugin

  • Plugin page: very-simple-link-...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: Oct 11, 2023
  • Number of updates: 42
  • Update frequency: every 13.3 days
  • Top authors: Guido07111975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by VS Link Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0250.15 ▲12.81
Dashboard /wp-admin3.32 ▲0.0253.74 ▲2.27
Posts /wp-admin/edit.php3.37 ▲0.0250.44 ▼4.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.17 ▼9.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.86 ▲1.29
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.2436.13
Add New /wp-admin/link-add.php3.2234.55
All Links /wp-admin/link-manager.php3.2735.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_links
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

VS Link Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6514.47 ▲0.221.80 ▼0.1542.22 ▼2.22
Dashboard /wp-admin2,240 ▲526.05 ▲0.18103.89 ▼17.0239.82 ▼0.52
Posts /wp-admin/edit.php2,120 ▲282.01 ▼0.1437.06 ▼2.0334.42 ▼0.75
Add New Post /wp-admin/post-new.php1,554 ▲2018.45 ▼5.04612.35 ▼51.7859.36 ▼3.38
Media Library /wp-admin/upload.php1,419 ▲314.29 ▲0.0795.86 ▼23.4742.69 ▼5.69
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2962.1427.8230.24
Add New /wp-admin/link-add.php1,6442.2349.5334.94
All Links /wp-admin/link-manager.php1,0561.7425.9532.61

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_links
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: link manager, simple, link portal, blogroll, links

very-simple-link-manager/vslm.php 92% from 13 tests

The entry point to "VS Link Manager" version 2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("very-simple-link-manager.php" instead of "vslm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin157 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3739120
CSS2161837

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 issues
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%
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
There were not PNG files found in your plugin