10% lynk-responder

Code Review | Lynk Responder

WordPress plugin Lynk Responder scored10%from 54 tests.

About plugin

  • Plugin page: lynk-responder
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Jul 7, 2014
  • Latest release: Aug 19, 2014
  • Number of updates: 8
  • Update frequency: every 12.8 days
  • Top authors: nyxsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/lynk-responder/plugin-lynk-responder.php+17
    Undefined variable: wpdb

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

Analyzing server-side resources used by Lynk Responder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.55 ▼5.22
Dashboard /wp-admin3.33 ▲0.0348.25 ▼4.80
Posts /wp-admin/edit.php3.38 ▲0.0248.97 ▼9.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.91 ▼21.04
Media Library /wp-admin/upload.php3.25 ▲0.0234.05 ▼0.84

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Lynk Responder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.27 ▼0.451.59 ▼0.1232.87 ▼10.54
Dashboard /wp-admin2,195 ▲155.61 ▼0.0592.31 ▲4.3185.65 ▲45.00
Posts /wp-admin/edit.php2,121 ▲182.00 ▼0.1439.56 ▼11.4837.15 ▼0.25
Add New Post /wp-admin/post-new.php1,539 ▲1323.67 ▲0.27655.45 ▼33.9359.07 ▲2.97
Media Library /wp-admin/upload.php1,412 ▲154.26 ▲0.08107.33 ▼14.2777.21 ▲28.19

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lynk-responder/plugin-lynk-responder.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: smartphone, iphone, app, articles

lynk-responder/plugin-lynk-responder.php 92% from 13 tests

This is the main PHP file of "Lynk Responder" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("lynk-responder.php" instead of "plugin-lynk-responder.php")

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
Everything looks great! No dangerous files found in this plugin661 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19810620
JavaScript15028
CSS11013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity20.00
▷ Minimum class complexity13.00
▷ Maximum class complexity27.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods2976.32%
▷ Protected methods00.00%
▷ Private methods923.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/istruzioni.png19.39KB8.48KB▼ 56.27%
img/lynk_icon.png0.72KB0.88KB0.00%