90% link-view

Code Review | Link View

WordPress plugin Link View scored90%from 54 tests.

About plugin

  • Plugin page: link-view
  • Plugin version: 0.8.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Feb 27, 2012
  • Latest release: Nov 29, 2020
  • Number of updates: 76
  • Update frequency: every 42.1 days
  • Top authors: mibuthu (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /52,414 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.91ms] Passed 4 tests

Analyzing server-side resources used by Link View
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.14 ▼3.38
Dashboard /wp-admin3.34 ▲0.0048.21 ▼9.14
Posts /wp-admin/edit.php3.46 ▲0.1044.88 ▼2.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.80 ▼9.07
Media Library /wp-admin/upload.php3.27 ▲0.0433.81 ▼0.91
Add New /wp-admin/link-add.php3.2435.31
About LinkView /wp-admin/link-manager.php?page=lvw_admin_about3.3731.40
LinkView /wp-admin/options-general.php?page=lvw_admin_settings3.3033.12
All Links /wp-admin/link-manager.php3.2532.33
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.3534.75

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_linkview_widget
widget_recent-comments
widget_recent-posts
widget_links
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Link View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6014.42 ▲0.131.73 ▲0.0244.41 ▲3.55
Dashboard /wp-admin2,237 ▲575.62 ▲0.0194.19 ▲3.6745.07 ▲2.76
Posts /wp-admin/edit.php2,139 ▲391.96 ▲0.0034.53 ▼1.6336.23 ▼0.42
Add New Post /wp-admin/post-new.php1,566 ▲3818.02 ▼5.25619.57 ▼17.3575.06 ▲29.95
Media Library /wp-admin/upload.php1,436 ▲334.21 ▲0.0497.83 ▲2.1755.61 ▲10.24
Add New /wp-admin/link-add.php1,6612.5652.1038.10
About LinkView /wp-admin/link-manager.php?page=lvw_admin_about9671.9824.0534.11
LinkView /wp-admin/options-general.php?page=lvw_admin_settings1,0452.0422.9831.56
All Links /wp-admin/link-manager.php1,0571.6928.4629.44
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,3162.2727.5630.02

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: 8 options
    • widget_linkview_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_links
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can look at the official readme.txt

link-view/link-view.php Passed 13 tests

The main file in "Link View" v. 0.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Display a link-list or link-slider in a post or page by using a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,199 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript44006491,680
PHP173731,0981,643
PO File1164175732
SVG10082
CSS213062

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.94
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes211.76%
Methods88
▷ Static methods66.82%
▷ Public methods6371.59%
▷ Protected methods00.00%
▷ Private methods2528.41%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/flattr-badge-large.png2.19KB1.04KB▼ 52.37%