78% extlnk

Code Review | extLnk

WordPress plugin extLnk scored78%from 54 tests.

About plugin

  • Plugin page: extlnk
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Nov 6, 2016
  • Number of updates: 24
  • Update frequency: every 10.2 days
  • Top authors: schokokeks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.97MB] [CPU: ▼51.58ms] Passed 4 tests

Analyzing server-side resources used by extLnk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.437.29 ▼31.05
Dashboard /wp-admin2.05 ▼1.306.37 ▼54.07
Posts /wp-admin/edit.php2.05 ▼1.316.90 ▼40.95
Add New Post /wp-admin/post-new.php2.05 ▼3.846.31 ▼80.25
Media Library /wp-admin/upload.php2.05 ▼1.186.24 ▼25.89

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for extLnk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5214.35 ▼0.251.57 ▼0.2036.35 ▼13.28
Dashboard /wp-admin2,195 ▲185.51 ▼0.1481.79 ▼11.0938.49 ▲0.54
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0434.26 ▼0.9630.12 ▼4.57
Add New Post /wp-admin/post-new.php1,538 ▲1223.23 ▼0.22666.06 ▼1.7657.11 ▲2.94
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.1395.99 ▼1.5740.95 ▼0.95
extLnk /wp-admin/extlnk.php260.420.1812.25

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/extlnk/extlnk.php:77

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/extlnk.php
    • > Network (severe)
    wp-admin/extlnk.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
These attributes need to be fixed:
  • Tags: You are using too many tags: 40 tag instead of maximum 10
You can look at the official readme.txt

extlnk/extlnk.php 92% from 13 tests

Analyzing the main PHP file in "extLnk" version 1.3
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,466 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13243491,601
PO File22725821,075
JavaScript48938454
Markdown31020175
JSON400114
HTML20037
YAML10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity211.00
▷ Minimum class complexity211.00
▷ Maximum class complexity211.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/select-arrow.png1.16KB0.32KB▼ 72.19%
images/screenshot.png14.23KB7.77KB▼ 45.39%
images/wordpress.png3.16KB0.51KB▼ 83.98%
icons/standard.png0.97KB0.13KB▼ 86.81%
images/close.png2.95KB0.31KB▼ 89.32%