84% multisites-in-link-search

Code Review | Multisites In Link Search

WordPress plugin Multisites In Link Search scored84%from 54 tests.

About plugin

  • Plugin page: multisites-in-lin...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 17, 2019
  • Latest release: Oct 17, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: GusSalvador (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /386 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.87ms] Passed 4 tests

Server-side resources used by Multisites In Link Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.31 ▼6.20
Dashboard /wp-admin3.37 ▲0.0250.43 ▼21.54
Posts /wp-admin/edit.php3.48 ▲0.1249.52 ▼2.14
Add New Post /wp-admin/post-new.php5.97 ▲0.08104.85 ▲2.39
Media Library /wp-admin/upload.php3.29 ▲0.0639.94 ▲5.40

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Multisites In Link Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.64 ▼0.737.84 ▲5.9141.79 ▼1.62
Dashboard /wp-admin2,214 ▲265.80 ▼0.05101.69 ▼1.5540.99 ▼1.18
Posts /wp-admin/edit.php2,099 ▲132.00 ▼0.0541.29 ▲6.2036.26 ▲1.91
Add New Post /wp-admin/post-new.php1,539 ▲2518.00 ▲0.26638.11 ▲19.7475.46 ▲23.60
Media Library /wp-admin/upload.php1,393 ▲84.16 ▼0.05104.04 ▲3.7045.32 ▼0.61

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/multisites-in-link-search/admin/partials/multisites-in-link-search-admin-display.php
    • > /wp-content/plugins/multisites-in-link-search/public/partials/multisites-in-link-search-public-display.php

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

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === multisites-in-link-search === )
  • Donate link: Invalid URI ("www.andyboehm.com")
You can look at the official readme.txt

multisites-in-link-search/multisites-in-link-search.php Passed 13 tests

The principal PHP file in "Multisites In Link Search" v. 1.0.0 is loaded by WordPress automatically on each request
138 characters long description:
Adds your multisite blogs to the internal link search tool as a Better Internal Link Search modifier. Requires Better Internal Link Search

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
No dangerous file extensions were detected241 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136542229
JavaScript24546
Markdown1506
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin