63% wpmu-linkmanager

Code Review | WPMU LinkManager

WordPress plugin WPMU LinkManager scored63%from 54 tests.

About plugin

  • Plugin page: wpmu-linkmanager
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-5.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2012
  • Latest release: Mar 12, 2019
  • Number of updates: 9
  • Update frequency: every 261.8 days
  • Top authors: wpler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,720 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by WPMU LinkManager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.36 ▼6.73
Dashboard /wp-admin3.31 ▲0.0149.60 ▼0.29
Posts /wp-admin/edit.php3.36 ▲0.0147.12 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.05 ▼8.02
Media Library /wp-admin/upload.php3.24 ▲0.0134.05 ▲1.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

WPMU LinkManager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.071.64 ▼0.1737.24 ▼12.53
Dashboard /wp-admin2,206 ▲185.88 ▼0.02102.34 ▼2.5838.13 ▼4.91
Posts /wp-admin/edit.php2,086 ▼32.06 ▼0.1139.84 ▲3.1038.95 ▲6.06
Add New Post /wp-admin/post-new.php1,533 ▲1223.17 ▲0.08652.17 ▼0.0957.71 ▲1.46
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0197.33 ▼2.7642.07 ▼0.55

Uninstaller [IO: ▲0.03MB] [DB: ▲0.07MB] 25% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wpmu-linkmanager/uninstall.php+13
    Undefined variable: wpdb
  • The plugin did not uninstall correctly, leaving 8 files (0.03MB) in the plugin directory
    • (new file) delete.png
    • (new file) wpmu_linkmanager.php
    • (new file) i18n/wplerlm-de_DE.pot
    • (new file) readme.txt
    • (new file) i18n/wplerlm-de_DE.mo
    • (new file) i18n/wplerlm-de_DE.po
    • (new file) pencil.png
    • (new file) uninstall.php
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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_path() in wp-content/plugins/wpmu-linkmanager/wpmu_linkmanager.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: links, footer, multisite

wpmu-linkmanager/wpmu_linkmanager.php 77% from 13 tests

This is the main PHP file of "WPMU LinkManager" 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
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 230 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpmu-linkmanager.php" instead of "wpmu_linkmanager.php")

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
Success! There were no dangerous files found in this plugin357 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25138265
PO File133092

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods436.36%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
delete.png0.70KB0.72KB0.00%
pencil.png0.44KB0.38KB▼ 13.11%