84% super-admin-all-sites-menu

Code Review | Super Admin All Sites Menu

WordPress plugin Super Admin All Sites Menu scored84%from 54 tests.

About plugin

  • Plugin page: super-admin-all-s...
  • Plugin version: 1.6.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2021
  • Latest release: Oct 30, 2023
  • Number of updates: 28
  • Update frequency: every 26.6 days
  • Top authors: PerS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.79ms] Passed 4 tests

Analyzing server-side resources used by Super Admin All Sites Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.07 ▼1.13
Dashboard /wp-admin3.39 ▲0.0843.87 ▼7.85
Posts /wp-admin/edit.php3.50 ▲0.1442.66 ▼9.04
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.58 ▼5.12
Media Library /wp-admin/upload.php3.31 ▲0.0835.70 ▲0.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Super Admin All Sites Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.14 ▼0.481.71 ▼0.3144.25 ▲1.34
Dashboard /wp-admin2,195 ▲175.55 ▼0.1692.33 ▼19.3138.07 ▼4.54
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0235.46 ▼1.6633.58 ▲3.80
Add New Post /wp-admin/post-new.php1,409 ▼11717.88 ▼5.30593.37 ▼81.8947.98 ▼3.33
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0394.79 ▼17.7339.82 ▼7.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Soderlind\\Multisite\\wp_die() in wp-content/plugins/super-admin-all-sites-menu/super-admin-all-sites-menu.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: superadmin, multisite, management

super-admin-all-sites-menu/super-admin-all-sites-menu.php Passed 13 tests

The primary PHP file in "Super Admin All Sites Menu" version 1.6.6 is used by WordPress to initiate all plugin functionality
79 characters long description:
For the super admin, replace WP Admin Bar My Sites menu with an All Sites menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected387 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP359166337
CSS171449
JavaScript1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin