89% admin-expert-mode

Code Review | Admin Expert Mode

WordPress plugin Admin Expert Mode scored 89% from 54 tests.

About plugin

  • Plugin page: admin-expert-mode
  • Plugin version: 2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 5.9.2
  • First release: Jun 15, 2009
  • Latest release: Nov 19, 2021
  • Number of updates: 24
  • Update frequency: every 189.9 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 6,153 total downloads


Plugin footprint Passed 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.01MB] [CPU: ▼292.68ms] Passed 4 tests

Server-side resources used by Admin Expert Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0457.24 ▼2.15
Dashboard /wp-admin3.45 ▲0.0441.79 ▼0.63
Posts /wp-admin/edit.php3.67 ▲0.0364.86 ▲16.98
Add New Post /wp-admin/post-new.php6.92 ▼0.05100.13 ▼1,183.83
Media Library /wp-admin/upload.php3.32 ▲0.0347.38 ▲15.90

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Expert Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2715.50 ▼0.276.06 ▼0.092.90 ▲0.73
Dashboard /wp-admin2,881 ▲276.10 ▼0.03115.95 ▼24.30155.18 ▼18.57
Posts /wp-admin/edit.php2,694 ▲33.24 ▼0.0063.63 ▲0.36142.17 ▼1.14
Add New Post /wp-admin/post-new.php1,668 ▼2218.36 ▼2.65427.67 ▲1.82173.32 ▲14.33
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.03138.91 ▼33.22186.77 ▼3.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/admin-expert-mode/tests/phpunit/bootstrap.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/admin-expert-mode/tests/phpunit/bootstrap.php on line 29
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-expert-mode/tests/phpunit/bootstrap.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: documentation, admin, help, coffee2code, expert

admin-expert-mode/admin-expert-mode.php Passed 13 tests

The main PHP script in "Admin Expert Mode" version 2.9 is automatically included on every request by WordPress
115 characters long description:
Allows users to hide inline documentation and help text that are geared for beginning users in the WordPress admin.

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
Everything looks great! No dangerous files found in this plugin661 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell16221

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity8.50
▷ Minimum class complexity4.00
▷ Maximum class complexity13.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1228.57%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin