93% adminimize

Code Review | Adminimize

WordPress plugin Adminimize scored 93% from 54 tests.

About plugin

  • Plugin page: adminimize
  • Plugin version: 1.11.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 5.9.2
  • First release: Jun 28, 2008
  • Latest release: Jul 15, 2020
  • Number of updates: 414
  • Update frequency: every 10.7 days
  • Top authors: Bueltge (100%)

Code review

54 tests

User reviews

246 reviews

Install metrics

200,000+ active / 2,287,403 total downloads

Benchmarks

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.46MB] [CPU: ▼301.30ms] Passed 4 tests

An overview of server-side resources used by Adminimize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.5864.67 ▲7.89
Dashboard /wp-admin3.85 ▲0.4441.53 ▲7.90
Posts /wp-admin/edit.php4.06 ▲0.4245.47 ▲9.00
Add New Post /wp-admin/post-new.php7.36 ▲0.39104.95 ▼1,229.36
Media Library /wp-admin/upload.php3.92 ▲0.6230.95 ▲8.39
Adminimize /wp-admin/options-general.php?page=adminimize-options3.8945.24

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 1 new option
New WordPress options
mw_adminimize

Browser metrics Passed 4 tests

A check of browser resources used by Adminimize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲4616.24 ▲0.615.57 ▼0.452.59 ▲0.32
Dashboard /wp-admin2,897 ▲396.15 ▼0.01118.96 ▼17.42155.63 ▼7.67
Posts /wp-admin/edit.php2,693 ▼13.24 ▼0.0066.55 ▲2.38153.85 ▲8.69
Add New Post /wp-admin/post-new.php1,664 ▲316.93 ▲0.78408.09 ▲2.93149.93 ▼6.04
Media Library /wp-admin/upload.php1,700 ▼15.52 ▼0.04142.70 ▼7.28183.59 ▼15.99
Adminimize /wp-admin/options-general.php?page=adminimize-options12,2743.8484.21331.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% 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 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
Almost there! Just fix the following items
  • 32× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/adminimize/inc-options/theme_options.php
    • > /wp-content/plugins/adminimize/inc-setup/admin-footer.php
    • > /wp-content/plugins/adminimize/inc-options/global_options.php
    • > /wp-content/plugins/adminimize/inc-options/write_cp_options.php
    • > /wp-content/plugins/adminimize/inc-setup/export.php
    • > /wp-content/plugins/adminimize/adminimize_page.php
    • > /wp-content/plugins/adminimize/inc-options/im_export_options.php
    • > /wp-content/plugins/adminimize/inc-setup/dashboard.php
    • > /wp-content/plugins/adminimize/inc-setup/widget.php
    • > /wp-content/plugins/adminimize/inc-setup/remove-admin-notices.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
The official readme.txt might help

adminimize/adminimize.php 85% from 13 tests

Analyzing the main PHP file in "Adminimize" version 1.11.7
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 371 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected5,719 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP338749385,506
CSS7238110
JavaScript111924103

PHP code Passed 2 tests

This is a short overview 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.47
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions80
▷ Named functions7796.25%
▷ Anonymous functions33.75%
Constants2
▷ Global constants2100.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