84% user-admin-simplifier

Code Review | User Admin Simplifier

WordPress plugin User Admin Simplifier scored 84% from 54 tests.

About plugin

  • Plugin page: user-admin-simpli...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 29, 2012
  • Latest release: Mar 15, 2020
  • Number of updates: 91
  • Update frequency: every 33.7 days
  • Top authors: adamsilverstein (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

10,000+ active / 63,960 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.08MB] [CPU: ▼2.38ms] Passed 4 tests

Analyzing server-side resources used by User Admin Simplifier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.80 ▼5.34
Dashboard /wp-admin3.38 ▲0.0846.10 ▼2.08
Posts /wp-admin/edit.php3.43 ▲0.0848.38 ▲3.60
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.50 ▼2.84
Media Library /wp-admin/upload.php3.30 ▲0.0835.72 ▲0.76
User Admin Simplifier /wp-admin/tools.php?page=useradminsimplifier/useradminsimplifier.php3.2634.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
useradminsimplifier_options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Admin Simplifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲13213.59 ▼0.995.24 ▲3.1639.45 ▼7.17
Dashboard /wp-admin2,216 ▲285.88 ▲0.00104.01 ▼13.8539.15 ▼6.94
Posts /wp-admin/edit.php2,099 ▲102.02 ▲0.0140.48 ▲2.6535.77 ▼0.62
Add New Post /wp-admin/post-new.php1,543 ▲1023.33 ▲0.14672.01 ▲0.3562.99 ▲0.27
Media Library /wp-admin/upload.php1,395 ▲44.20 ▼0.03104.72 ▼3.3447.15 ▼2.70
User Admin Simplifier /wp-admin/tools.php?page=useradminsimplifier/useradminsimplifier.php7911.6827.2032.07

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-admin-simplifier/useradminsimplifier.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

user-admin-simplifier/useradminsimplifier.php 92% from 13 tests

The main PHP script in "User Admin Simplifier" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("user-admin-simplifier.php" instead of "useradminsimplifier.php")

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 detected564 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26573402
HTML12521107
Bourne Shell1191155

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 code0.57
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plus15.png0.97KB0.80KB▼ 17.91%
images/minus15.png0.79KB0.62KB▼ 22.41%