83% remove-super-admin-from-user-list-table

Code Review | Remove Super Admin from User List Table

WordPress plugin Remove Super Admin from User List Table scored83%from 54 tests.

About plugin

  • Plugin page: remove-super-admi...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Jul 4, 2019
  • Number of updates: 5
  • Update frequency: every 251.0 days
  • Top authors: codex-m (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,145 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.00MB] [CPU: ▼9.21ms] Passed 4 tests

Server-side resources used by Remove Super Admin from User List Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0153.13 ▲9.94
Dashboard /wp-admin3.31 ▼0.0351.50 ▼22.97
Posts /wp-admin/edit.php3.36 ▲0.0148.82 ▲4.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.12 ▼15.35
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▼3.38

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Remove Super Admin from User List Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.16 ▼0.191.85 ▼0.1545.77 ▲2.71
Dashboard /wp-admin2,192 ▲155.55 ▼0.0297.14 ▲1.6546.05 ▲5.61
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0137.11 ▼3.4033.02 ▼5.52
Add New Post /wp-admin/post-new.php1,528 ▲223.29 ▲0.08701.10 ▲26.6952.85 ▼3.99
Media Library /wp-admin/upload.php1,397 ▼64.25 ▲0.05103.37 ▲2.7550.81 ▲5.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-super-admin-from-user-list-table/remove_super_admin_from_usertable.php:11

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (How it looks like when this plugin is network activated.) image missing
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === remove-super-admin-from-user-list-table === )
The official readme.txt might help

remove-super-admin-from-user-list-table/remove_super_admin_from_usertable.php 92% from 13 tests

The entry point to "Remove Super Admin from User List Table" version 3.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("remove-super-admin-from-user-list-table.php" instead of "remove_super_admin_from_usertable.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131634

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.44
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png83.44KB29.61KB▼ 64.52%