72% alink-tap

Code Review | Alink Tap

WordPress plugin Alink Tap scored72%from 54 tests.

About plugin

  • Plugin page: alink-tap
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2014
  • Latest release: Dec 11, 2022
  • Number of updates: 62
  • Update frequency: every 49.0 days
  • Top authors: todoapuestas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.31MB] [CPU: ▼7.60ms] Passed 4 tests

Analyzing server-side resources used by Alink Tap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0135.87 ▼1.98
Dashboard /wp-admin3.41 ▲0.1070.90 ▲19.44
Posts /wp-admin/edit.php3.38 ▲0.0248.62 ▲2.46
Add New Post /wp-admin/post-new.php4.62 ▼1.2744.51 ▼41.21
Media Library /wp-admin/upload.php3.25 ▲0.0241.97 ▲10.34
Alink Tap /wp-admin/options-general.php?page=alink-tap3.2831.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
recovery_mode_email_last_sent
alink_tap_linker_remote_info
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
alink_tap_linker_remote

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alink Tap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,690 ▼4513.23 ▼1.071.17 ▼0.9021.29 ▼20.19
Dashboard /wp-admin2,213 ▲225.78 ▼0.1398.19 ▼7.0638.28 ▼7.12
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0139.97 ▲3.2335.54 ▲1.76
Add New Post /wp-admin/post-new.php45 ▼1,5000.44 ▼17.640.10 ▼587.7911.18 ▼43.57
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0095.25 ▼1.5568.18 ▲26.50
Alink Tap /wp-admin/options-general.php?page=alink-tap9272.0322.9529.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=alink-tap
    • > Warning in wp-content/plugins/alink-tap/admin/views/admin.php+91
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/options-general.php?page=alink-tap
    • > Warning in wp-content/plugins/alink-tap/admin/views/admin.php+104
    Invalid argument supplied for foreach()

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/alink-tap/public/views/public.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alink-tap/admin/includes/local-linked.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alink-tap/admin/includes/remote-linked.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/alink-tap/admin/views/admin.php:24
    • > PHP Notice
      Undefined variable: sample in wp-content/plugins/alink-tap/admin/includes/local-linked.php on line 11
    • > PHP Notice
      Undefined index: alink_tap_linker_text in wp-content/plugins/alink-tap/admin/includes/local-linked.php on line 15

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)
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
1 plugin tags: link

alink-tap/alink-tap.php 92% from 13 tests

The entry point to "Alink Tap" version 1.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 322 characters long)

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 detected449 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9244543439
JavaScript28210
CSS2020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.50
▷ Minimum class complexity8.00
▷ Maximum class complexity41.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods725.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin