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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 56.74 ▼36.75 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.48 ▼2.24 |
Posts /wp-admin/edit.php | 3.66 ▲0.01 | 36.01 ▼4.04 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 101.94 ▼1,149.93 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.89 ▲0.25 | 5.51 ▼1.69 | 2.10 ▼0.45 |
Dashboard /wp-admin | 2,895 ▲34 | 6.08 ▼0.11 | 128.42 ▼9.00 | 212.45 ▼24.10 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.24 ▲0.02 | 72.42 ▲6.75 | 148.91 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,717 ▲6 | 21.15 ▼0.43 | 428.04 ▼50.50 | 174.62 ▼7.58 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.47 ▼0.02 | 133.93 ▼12.73 | 268.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 30 | 42 |
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 code | 0.43 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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