84% network-site-names

Code Review | Network Site Names

WordPress plugin Network Site Names scored84%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: 6.3.1
  • 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 /564 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Network Site Names
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.07 ▼11.68
Dashboard /wp-admin3.32 ▲0.0142.58 ▼4.63
Posts /wp-admin/edit.php3.37 ▲0.0146.71 ▲0.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.70 ▼10.80
Media Library /wp-admin/upload.php3.24 ▲0.0136.20 ▲1.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Network Site Names
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.78 ▲0.502.02 ▲0.0342.36 ▲0.20
Dashboard /wp-admin2,206 ▲185.78 ▲0.89107.19 ▲2.0141.10 ▲0.30
Posts /wp-admin/edit.php2,086 ▼31.99 ▲0.0135.46 ▼2.7733.53 ▼4.74
Add New Post /wp-admin/post-new.php1,514 ▼817.67 ▼5.42665.20 ▼8.0458.15 ▼1.44
Media Library /wp-admin/upload.php1,391 ▲94.24 ▲0.03108.27 ▲9.3347.66 ▲5.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: menu, network, admin bar, sites

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

The main PHP script in "Network Site Names" version 1.0.1 is automatically included on every request by 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1603042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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
There are no PNG files in this plugin