83% vn-links

Code Review | VN Links

WordPress plugin VN Links scored83%from 54 tests.

About plugin

  • Plugin page: vn-links
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: khoipro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 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.08MB] [CPU: ▼5.04ms] Passed 4 tests

Server-side resources used by VN Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.61 ▼6.87
Dashboard /wp-admin3.38 ▲0.0843.31 ▼2.56
Posts /wp-admin/edit.php3.49 ▲0.1446.60 ▼0.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.93 ▼10.06
Media Library /wp-admin/upload.php3.30 ▲0.0838.26 ▲4.90
All Links /wp-admin/edit.php?post_type=vn-links3.3536.59
Add new /wp-admin/post-new.php?post_type=vn-links3.3442.79

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_vn-links
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for VN Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7713.25 ▼1.131.96 ▼0.4240.23 ▼10.68
Dashboard /wp-admin2,230 ▲424.87 ▼0.0499.60 ▼25.4340.60 ▼8.66
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0534.46 ▼6.8135.58 ▼0.16
Add New Post /wp-admin/post-new.php1,557 ▲1723.35 ▲0.16666.09 ▲66.6955.23 ▲2.83
Media Library /wp-admin/upload.php1,412 ▲214.18 ▼0.08108.33 ▲13.7947.95 ▲4.58
All Links /wp-admin/edit.php?post_type=vn-links1,0801.9931.3930.73
Add new /wp-admin/post-new.php?post_type=vn-links1,4552.5247.4745.62

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_vn-links
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vn-links/inc/class-vn-links-legacy-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
7 plugin tags: codetot, vn, shortcode, links-manager, widget...

vn-links/vn-links.php 77% from 13 tests

Analyzing the main PHP file in "VN Links" version 0.0.2
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0.0" instead of "5.0")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin245 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP741100235
Markdown1508
CSS1001
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.55MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png7.43KB3.00KB▼ 59.65%
assets/icon-256x256.png10.44KB4.37KB▼ 58.15%
assets/screenshot-1.png27.08KB13.43KB▼ 50.42%
assets/screenshot-2.png519.79KB244.09KB▼ 53.04%