78% linkions

Code Review | Linkions

WordPress plugin Linkions scored78%from 54 tests.

About plugin

  • Plugin page: linkions
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2022
  • Latest release: May 6, 2022
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: linkions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /257 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.12MB] [CPU: ▼2.59ms] Passed 4 tests

Analyzing server-side resources used by Linkions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.24 ▼2.94
Dashboard /wp-admin3.50 ▲0.1565.58 ▼0.51
Posts /wp-admin/edit.php3.55 ▲0.1956.72 ▲4.46
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.35 ▼8.43
Media Library /wp-admin/upload.php3.34 ▲0.1137.79 ▲1.53
Appearance /wp-admin/admin.php?page=linkions-appearance3.3438.42
Social /wp-admin/admin.php?page=linkions-social3.3538.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Linkions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,040 ▲27914.77 ▲0.784.82 ▲3.1843.93 ▲5.81
Dashboard /wp-admin2,363 ▲1826.23 ▲0.59122.22 ▲19.4540.76 ▼2.73
Posts /wp-admin/edit.php2,291 ▲1883.31 ▲1.2850.72 ▲9.9932.85 ▼3.16
Add New Post /wp-admin/post-new.php1,552 ▲1923.65 ▲0.86653.36 ▼2.5937.38 ▼25.34
Media Library /wp-admin/upload.php1,431 ▲404.15 ▼0.0785.19 ▼20.9144.47 ▼1.50
Appearance /wp-admin/admin.php?page=linkions-appearance1,1053.0338.0328.48
Social /wp-admin/admin.php?page=linkions-social1,1603.0337.8625.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/linkions/admin/partials/linkions-admin-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/linkions/public/profile-view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/linkions/admin/partials/social-icons-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/linkions/admin/partials/appearance-general-form.php:2

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)
Everything seems fine on the user side

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
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === linkions === )
You can look at the official readme.txt

linkions/linkions.php Passed 13 tests

The primary PHP file in "Linkions" version 1.0.1 is used by WordPress to initiate all plugin functionality
76 characters long description:
Linkions helps to create a bio short link page to link your social profiles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected881 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP14167531644
SVG808134
CSS23572
JavaScript2115531

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin