79% admin-expert-mode

Code Review | Admin Expert Mode

WordPress plugin Admin Expert Mode scored79%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: 6.3.1
  • 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

50+ active /6,840 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.18ms] Passed 4 tests

Analyzing server-side resources used by Admin Expert Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.94 ▲0.65
Dashboard /wp-admin3.34 ▲0.0344.21 ▼1.99
Posts /wp-admin/edit.php3.39 ▲0.0350.68 ▲1.74
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.54 ▼8.03
Media Library /wp-admin/upload.php3.26 ▲0.0332.80 ▲0.65

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Admin Expert Mode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.471.68 ▼0.1045.48 ▲5.92
Dashboard /wp-admin2,209 ▲185.91 ▲1.0295.84 ▼6.6339.22 ▼5.06
Posts /wp-admin/edit.php2,092 ▼01.97 ▼0.0239.54 ▼0.5434.54 ▼2.87
Add New Post /wp-admin/post-new.php1,533 ▼318.45 ▼4.84606.32 ▼57.7770.05 ▲19.33
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0896.36 ▼4.7840.65 ▼2.64

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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)
The smoke test was a success, however most plugin functionality was not tested

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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-expert-mode/tests/phpunit/bootstrap.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: admin, expert, help, coffee2code, documentation

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

The principal PHP file in "Admin Expert Mode" v. 2.9 is loaded by WordPress automatically on each request
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 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected661 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4152251317
Markdown4750274
CSS10135
Bourne Shell16221
XML10014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for 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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1228.57%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin