94% network-site-names

Code Review | Network Site Names

WordPress plugin Network Site Names scored 94% from 54 tests.

About plugin

  • Plugin page: network-site-names
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-4.8
  • WordPress version: 5.9.2
  • First release: Nov 30, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 10
  • Update frequency: every 20.4 days
  • Top authors: josemanuelsh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 463 total downloads

Benchmarks

Plugin footprint Passed 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: ▼0.01MB] [CPU: ▼298.24ms] Passed 4 tests

This is a short check of server-side resources used by Network Site Names
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.74 ▼36.75
Dashboard /wp-admin3.42 ▲0.0134.48 ▼2.24
Posts /wp-admin/edit.php3.66 ▲0.0136.01 ▼4.04
Add New Post /wp-admin/post-new.php6.89 ▼0.08101.94 ▼1,149.93
Media Library /wp-admin/upload.php3.31 ▲0.0130.82 ▲5.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Network Site Names
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.89 ▲0.255.51 ▼1.692.10 ▼0.45
Dashboard /wp-admin2,895 ▲346.08 ▼0.11128.42 ▼9.00212.45 ▼24.10
Posts /wp-admin/edit.php2,694 ▲33.24 ▲0.0272.42 ▲6.75148.91 ▼0.06
Add New Post /wp-admin/post-new.php1,717 ▲621.15 ▼0.43428.04 ▼50.50174.62 ▼7.58
Media Library /wp-admin/upload.php1,698 ▲65.47 ▼0.02133.93 ▼12.73268.78 ▲82.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/network-site-names/network-site-names.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: admin bar, network, sites, menu

network-site-names/network-site-names.php Passed 13 tests

"Network Site Names" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
Network Site Names lets you add custom site names to be shown in the admin bar menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1603042

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin