84% extend-link

Code Review | Extend Link

WordPress plugin Extend Link scored84%from 54 tests.

About plugin

  • Plugin page: extend-link
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 12, 2016
  • Latest release: Oct 23, 2019
  • Number of updates: 10
  • Update frequency: every 111.1 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /8,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by Extend Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.37 ▼4.78
Dashboard /wp-admin3.31 ▲0.0146.69 ▼1.72
Posts /wp-admin/edit.php3.37 ▲0.0145.94 ▲1.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.54 ▼9.37
Media Library /wp-admin/upload.php3.24 ▲0.0136.01 ▲4.59

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Extend Link: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.29 ▼0.431.73 ▲0.1241.65 ▲0.29
Dashboard /wp-admin2,201 ▲275.51 ▼0.0986.84 ▼12.9036.85 ▼12.83
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0636.24 ▼6.1531.32 ▼3.45
Add New Post /wp-admin/post-new.php1,529 ▲322.99 ▼0.03602.43 ▼17.4563.53 ▲9.18
Media Library /wp-admin/upload.php1,397 ▼64.17 ▼0.0297.75 ▲0.6241.72 ▼0.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 50% from 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/extend-link/index.php
    • > /wp-content/plugins/extend-link/extend-link.php
    • > /wp-content/plugins/extend-link/js/index.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

extend-link/extend-link.php 92% from 13 tests

Analyzing the main PHP file in "Extend Link" version 1.0.3
The following require your attention:
  • Description: Please keep the plugin description shorter than 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
Success! There were no dangerous files found in this plugin219 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1505175
PHP2172144

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin