84% show-me-the-admin

Code Review | Show Me The Admin

WordPress plugin Show Me The Admin scored84%from 54 tests.

About plugin

  • Plugin page: show-me-the-admin
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 7, 2016
  • Latest release: Nov 20, 2017
  • Number of updates: 24
  • Update frequency: every 27.4 days
  • Top authors: bamadesigner (95.83%)Otto42 (8.33%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active /2,433 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.03MB] [CPU: ▼7.10ms] Passed 4 tests

This is a short check of server-side resources used by Show Me The Admin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.44 ▲0.26
Dashboard /wp-admin3.34 ▲0.0452.68 ▲4.62
Posts /wp-admin/edit.php3.39 ▲0.0453.87 ▼11.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.99 ▼17.21
Media Library /wp-admin/upload.php3.26 ▲0.0436.18 ▼0.42
Show Me The Admin /wp-admin/options-general.php?page=show-me-the-admin3.2638.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 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

An overview of browser requirements for Show Me The Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22513.70 ▼0.667.93 ▲5.9543.12 ▼1.05
Dashboard /wp-admin2,229 ▲414.89 ▼1.15113.48 ▲2.5742.23 ▲2.78
Posts /wp-admin/edit.php2,112 ▲202.04 ▲0.0342.90 ▲4.8838.11 ▼5.28
Add New Post /wp-admin/post-new.php1,548 ▲2023.14 ▲1.96632.38 ▼92.9463.48 ▲8.73
Media Library /wp-admin/upload.php1,405 ▲174.24 ▼0.01106.16 ▼25.7642.65 ▼7.62
Show Me The Admin /wp-admin/options-general.php?page=show-me-the-admin1,5782.9961.3858.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/show-me-the-admin/inc/admin.php:70

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: admin bar, bar, hide, toolbar, adminbar...

show-me-the-admin/show-me-the-admin.php 92% from 13 tests

The main PHP script in "Show Me The Admin" version 1.2.1 is automatically included on every request by WordPress
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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin850 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3323648845
JavaScript3003
CSS2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity90.50
▷ Minimum class complexity64.00
▷ Maximum class complexity117.00
Average method complexity5.71
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3284.21%
▷ Protected methods25.26%
▷ Private methods410.53%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin