90% network-site-ids

Code Review | Network Site ID

WordPress plugin Network Site ID scored90%from 54 tests.

About plugin

  • Plugin page: network-site-ids
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Jul 30, 2016
  • Latest release: Jul 30, 2016
  • Number of updates: 5
  • Update frequency: every 54.8 days
  • Top authors: wido (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.20MB] [CPU: ▼13.43ms] Passed 4 tests

This is a short check of server-side resources used by Network Site ID
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.79 ▼6.17
Dashboard /wp-admin3.12 ▼0.1832.46 ▼13.55
Posts /wp-admin/edit.php3.25 ▼0.1132.66 ▼8.39
Add New Post /wp-admin/post-new.php5.44 ▼0.4466.90 ▼21.62
Media Library /wp-admin/upload.php3.19 ▼0.0427.37 ▼10.16

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Network Site ID
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.16 ▼1.191.78 ▲0.1242.77 ▲4.98
Dashboard /wp-admin2,231 ▲424.86 ▼1.0799.60 ▼20.7839.14 ▼9.56
Posts /wp-admin/edit.php2,111 ▲192.06 ▲0.0134.00 ▼9.7338.12 ▲2.61
Add New Post /wp-admin/post-new.php1,538 ▼423.37 ▲5.15661.47 ▲41.1864.28 ▲12.68
Media Library /wp-admin/upload.php1,410 ▲224.21 ▲0.0193.71 ▼15.6341.44 ▼2.38

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: sites, network, menu, admin bar

network-site-ids/network-site-id.php 92% from 13 tests

The principal PHP file in "Network Site ID" v. 2.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("network-site-ids.php" instead of "network-site-id.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 plugin93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12910581
CSS12312

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin