84% hyper-admins

Code Review | Hyper Admins

WordPress plugin Hyper Admins scored84%from 54 tests.

About plugin

  • Plugin page: hyper-admins
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8
  • WordPress version: 6.3.1
  • First release: Nov 20, 2011
  • Latest release: Apr 10, 2014
  • Number of updates: 9
  • Update frequency: every 96.8 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /24,338 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
Installer ran successfully

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

This is a short check of server-side resources used by Hyper Admins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.16 ▲1.42
Dashboard /wp-admin3.31 ▲0.0158.58 ▼4.16
Posts /wp-admin/edit.php3.36 ▲0.0150.54 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.01105.03 ▼0.94
Media Library /wp-admin/upload.php3.23 ▲0.0137.14 ▲0.88

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hyper Admins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.105.45 ▲3.6647.60 ▼2.12
Dashboard /wp-admin2,206 ▲184.88 ▲0.00120.12 ▼5.5643.38 ▼7.89
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0241.60 ▼3.3941.17 ▲0.71
Add New Post /wp-admin/post-new.php1,533 ▲1023.24 ▼0.01728.75 ▲5.1959.47 ▲5.02
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.05114.09 ▼13.3446.99 ▼5.48

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 everything seems fine, this is not 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/hyper-admins/hyper-admins.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: network, users, administration, multisite, themes

hyper-admins/hyper-admins.php Passed 13 tests

The principal PHP file in "Hyper Admins" v. 1.1 is loaded by WordPress automatically on each request
82 characters long description:
Show all sites in admin bar; show all themes in theme page. Only for super-admins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141245

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin