84% wp-hide-super-admin-users

Code Review | Hide Super Admin Users

WordPress plugin Hide Super Admin Users scored84%from 54 tests.

About plugin

  • Plugin page: wp-hide-super-adm...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 5, 2015
  • Latest release: Jan 28, 2022
  • Number of updates: 10
  • Update frequency: every 231.9 days
  • Top authors: josheby (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,159 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Hide Super Admin Users
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.39 ▲1.24
Dashboard /wp-admin3.31 ▲0.0149.68 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0151.90 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.91 ▼9.90
Media Library /wp-admin/upload.php3.24 ▲0.0139.79 ▲5.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Hide Super Admin Users: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.081.70 ▼0.1044.11 ▲0.29
Dashboard /wp-admin2,198 ▲215.63 ▲0.1091.02 ▲2.2341.13 ▼2.25
Posts /wp-admin/edit.php2,097 ▼02.00 ▲0.0139.21 ▲2.5835.02 ▼3.05
Add New Post /wp-admin/post-new.php1,533 ▲718.04 ▼4.95641.60 ▼32.4266.48 ▲5.05
Media Library /wp-admin/upload.php1,403 ▲94.13 ▼0.10108.58 ▲7.1850.65 ▲4.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-hide-super-admin-users/wp-hide-super-admin-users.php

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

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: multisite, network, super admin

wp-hide-super-admin-users/wp-hide-super-admin-users.php 92% from 13 tests

The main file in "Hide Super Admin Users" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected41 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151139
Markdown1102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin